Skip to main content

An open source library containing multiple known STEM equations in a functional form.

Project description

simple-equ

An open source library containing multiple known STEM equations in a functional form.

Installation

pip install simple-equ

(For versions 3.8 or newer)

Optional: Use a venv (virtual environment).

Usage

simple-equ is simple, yet practical. That is the problem it solves. Sure, someone with some knowledge in their field can implement this library's functionality. But, let's look at how that would realistically look like:

a = 3
b = 4
c = 4

"""
Here is an example of implementing a basic quadratic equation
"""
import math

delta = b**2 - 4 * a * c
solution1 = (-b + math.sqrt(delta)) / (2 * a)
solution2 = (-b - math.sqrt(delta)) / (2 * a)

"""
Here, just an import and a function call is needed!
"""

import simple_equ.math_general.algebra as sa

result = sa.basic_quadratic(a,b,c)
Looking to calculate the sin of an angle?
Well... here is the algorithm to do this, in pseudo-code

function sin_taylor(x, n_terms):
    result = 0
    sign = 1             # alternates between + and -

    for i from 0 to n_terms-1:
        term_exponent = 2*i + 1
        term_factorial = factorial(term_exponent)
        term = sign * (x ^ term_exponent) / term_factorial
        result = result + term
        sign = -sign     # flip the sign for next term

    return result

function factorial(k):
    if k == 0 or k == 1:
        return 1
    else:
        f = 1
        for j from 2 to k:
            f = f * j
        return f

"""

import simple_equ.math_general.geometry as sg
sin30 = sg.sin(30) # In case you didn't notice, this is the same thing in simple_equ
"""
Normally, we would put a linear regression here. But it is pretty monstrous.
Worry not though. This is how to do it with simple-equ:
"""

import simple_equ.economics.statistics as se

se.linear_regression([3, 4, 6],[4, 6, 7])

You just import the field of your liking, and then boom!

Structure

The library is structured into fields. These fields have their own folder, aka modules. However, a field can have multiple subsets. These subsets are usually present in the form of python files. For example: algebra.py and geometry.py, are examples of subfields of the general math field called math_general.

To import something in a practical sense in simple_equ, the structure looks like this:

import simple_equ.field.subfield as ...

Practical examples include: import simple_equ.math_general.geometry as sg import simple_equ.economics.statistics as se

Contributing

Contributions are always welcome!

The project encourages a community-driven approach. Everyone can contribute. Be sure to be kind and respectful. Do not assume that something is known to the contributor you are talking to just because you know it and do not be rude or even make comments about their skill. This behaviour is not welcome here.

See contributing.md for ways to get started.

Features

  • Community driven and open
  • Functions from different fields
  • Reusable
  • Highly accurate
  • Simple yet practical

Do not forget to star the repo if you like it! It means a lot! Thank you for reading this document and getting involved with our community :)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

simple_equ-1.3.839-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.3.839-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.3.839-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.839-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.839-cp311-cp311-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.3.839-cp311-cp311-win32.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.3.839-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.839-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.839-cp310-cp310-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.839-cp310-cp310-win32.whl (115.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.3.839-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.839-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.839-cp39-cp39-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.839-cp39-cp39-win32.whl (116.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.3.839-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (298.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.839-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.3.839-cp38-cp38-win_amd64.whl (118.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.3.839-cp38-cp38-win32.whl (116.6 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.3.839-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.839-cp38-cp38-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.3.839-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.839-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ec5dd8e0b34a17582c92e23d1a86b51219066084f0ed02772c11482058aa99b3
MD5 beb82247c94d62d623078a0b690f5434
BLAKE2b-256 440aaa8725d22075721eaafb0deefb3e9baef7a125cb141ff497e8853939a13b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp312-cp312-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.839-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.839-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2a37a6cb6d622771806b1c2236b3a82b85ede10056af6f5d0fee039dec08ede4
MD5 c359d18ebb7a61e871c4e9806288ef2f
BLAKE2b-256 ee8946f147dc730c268fdf87e3b908c828174fb1dac4e1f9ab02e833d190bc7e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.839-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 27c2a76c9880cd17edc4218d64a0bc6cbed2d83c406ee757d3b1b4d35c94aedb
MD5 1d2276f3bc1642c2aafdbd79dd222a24
BLAKE2b-256 3d9c18aa542c95c77eedfb2e187084218f8c90a97dc359282946ba2f4a0fbeda

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.839-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5c276cbd9ab80eff4d34007e6093b952c545f0337738ae904d7eafb0b218fbd
MD5 40d8959762c5e7b949edbbdb04585c6d
BLAKE2b-256 0c35b9eb1116022df2a16a0e3b42870238143ca048d1fac3fb19f3d0a14aed50

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.839-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 86c3737944b17718e6839405bcf97e85866a193caa41f5a4b1783e1245d9584a
MD5 3c22fa8774990b8d180e051bb5376cef
BLAKE2b-256 676ffa286fd73b1c44985a256c2287acbbbe46a2e176afbec5d775c71000634f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp311-cp311-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.839-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.839-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d30d56439a2496df24be3539c0b0a4066f2f7ecb2636286c4ce6008ed09cac09
MD5 208582c8918aa06d6aef744cf496973b
BLAKE2b-256 cda9e2f1fd3e5437bf22ef85449cb931b082cd7d7fb758af8624da031576a2b9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.839-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 708e16a977eb28b948be48b4b662564f56ab307fc89de3bb75abaed9ec179cb7
MD5 ccff537d144b605d9be2a29384f3d2c1
BLAKE2b-256 b6e5a42fd1986a8fe7a3076eff528ca350497b9302eb24b5a8f38aa3be84c8e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.839-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e9a5f352482b96311a4cd555a43ec3a5e7c09aad817059d36b1d422d5712e54
MD5 1fddf0274603430e9c3662c9b04991fd
BLAKE2b-256 2af2af4053f4910606804c11c329c9bae774f94b612f7cd79c15fff8890b4f5e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.839-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 78dcd4ba30f766078e16ac788e6e43811d942ae6b0bc1d739e94a396422d2f7b
MD5 67b34df7ce06090e58b9d25aa3fd971e
BLAKE2b-256 1da665e6f94b1aacc913625063007127e88ac003bd75815ba5d16029301957e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp310-cp310-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.839-cp310-cp310-win32.whl
  • Upload date:
  • Size: 115.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.839-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2df88ccf53875fc4900980ee733eb7dcb3f8df993a10442239451a8bafdf06da
MD5 0230e59797724558a7adfc773c24b8f1
BLAKE2b-256 a4f00d39eb0c1c94414709f3d74b6e83101444ad86a807e119085d3e6e0d6aa5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.839-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 542adf4b01d1a3db7fdebfc139896bfcd4d4850a1d105fd361e23f76a61e4b04
MD5 3c5530a452ab66544b40cfce9f5cec5d
BLAKE2b-256 baa36af2ad61371638c3c6598e4e520de9e3b3a81c531a6988e8f6ad720602c4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.839-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09b570ec2b773c0218de93cab9ae875713b0065a6089e638d86dee0bbbe674c2
MD5 b6ecae73c7daeb486ac528d433c7ef1a
BLAKE2b-256 d0496664158086295ade159225a24fcf07383b0ed0ff9b70eeef19a15779d9f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.839-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.839-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 864afaa41c7a4822ff10a89edb36acbd60fdde6614f344b3d7239cb29b91d1fb
MD5 3a0d2488929f53f3da4d24212c588de7
BLAKE2b-256 86b9b31f218b0ecdfef65596f3e4877bca23b9b812aee7756417082e56ddc84b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp39-cp39-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.839-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.839-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0155662a759126eccabd8ce36b27472b4cda32f9e00d82a960d03637c327d0bf
MD5 b10ee119fc6deff0c68a8cb7291c620c
BLAKE2b-256 759eda821caa9b85eb8d5cd0acf53ec2cada1b4e43fbc74f7b8214105f8cd5aa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.839-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c0ed4600ca77eb4d54de7cffdbc43ee56562ddb96eed0178d4747a4b06b7d5e4
MD5 a55790bdc47a7e386f36d0381f28defc
BLAKE2b-256 fd67b3db18037512b1f3655f6158f28e217ec70c980e7b9c4c1528646f3206f5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.839-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09556dcca40528603cabf10e397c36292d5323e96294c813d97afb1212c3809e
MD5 9c19067f756c2094e2e644995f430acd
BLAKE2b-256 607f1619f217e82b36942d4f9dc549ff1742b9475ace872c950354b34416c87f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.839-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.839-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 52cd9b0adcd6e8f9588616558e4fcee9597e4f8fec3f916223547295cfac5321
MD5 cca2083f36495d543fa8d645b36c0622
BLAKE2b-256 283b3ccbbe3051c1875b97e3f38121adf1ae2dfef36911adaeef663e6ca0ef1d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp38-cp38-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.839-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.839-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 04bf99e20fe3fc38d69625a316dfb10b1dfea7acdcb083d6e17a3abe0c36920f
MD5 cfde1709a27534bd64719417cecaafca
BLAKE2b-256 795e6e53d285878cf2b1e5bc05772c63ef91fa04b1d2ae4eb0f4de0da95a36c0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.839-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e9c37803fe80573cda368ba9964f2a1e80ee276069530a10919f981556c34336
MD5 b5e779242d66aa5324191bebcea58f66
BLAKE2b-256 af2110257c24db6b1c43dcfe863c1f6e4093a40a08120fe78d796504f0dc7cab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.839-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.839-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e2fff89300d7f19205fc6ee9aae3e1117496e7304e4b3cb998f298afc01fc25d
MD5 ec270ab90595bdb53853546a2c90d8cc
BLAKE2b-256 baab1286b9a01483d19fbde226a5f4a39b459a6534df559e3ddef8bb7826fd6b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page