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.684-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.684-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.684-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.3.684-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.684-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.3.684-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.684-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.684-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.684-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.684-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.684-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.684-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.684-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2917281a2bbbfa433c4189b1eb1fbcf2661ff24a50361a23a93eb2153fbd492d
MD5 25bd66c1f63773c9aa0584875ec25f2a
BLAKE2b-256 92508f07663ab472e993bbac17e04056ca3d099b8aab0cabaf599096221fa43a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.684-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.684-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 32c34b28db9a796e2282060aec65b8e20744def66897f137d084dfdd6c1887b5
MD5 e6981834d82c0a5e10bb9f7749b91625
BLAKE2b-256 a7d97f461039b5aca1092319b3836a7d7a44515a6690b12d854492cb8cd89335

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.684-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.684-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8329d8061423f854a513c7f9a78057dae26fc14ea80f1e6f28db7fa7df1d089b
MD5 8049ac6c71792fd9d193ba5a50186ba9
BLAKE2b-256 b9ffb562829dc556842582e0105d608c5292a722b17e0249b043df648f229d56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.684-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28e09e7fd98f64fe86ed2e02409dbda6ceb541ca488595ddab883edc59bcd81d
MD5 5719967d0a8975b3e0c429be979fb68f
BLAKE2b-256 ad34a5cefbb033f4a64335d66d4c83bf34307ebe544e32ccc2c682362da55971

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.684-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 90ac433b7e31a31f141478bf65de2bf07f5491c2766960a850b7f836aef21c53
MD5 2c8ce12118dce00be5cc66eaf9501850
BLAKE2b-256 b88a89a1d4c6f80409729e3eefaabc708de4b04899a9258157c0e1adbdcf46fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.684-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.684-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 baf635b6e1fd028f438b789649962f009d86290a5d1bf20ef314490aaf70638c
MD5 e992348b710f7e0032f8d8a511a7d9bb
BLAKE2b-256 6b02163e907fd1c3a9f53d687fcce8573839f6c4d27392d8e25be10c5646c167

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.684-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.684-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f628a1352326ac2b54f1773179b6aca86de7ed2b73864261b7579cf60fcc1c68
MD5 d9b7885d43a14d6d47553bc5635748aa
BLAKE2b-256 0ccdf5fd6b2ef1e1a0e23d8617ece89bb8dfed2cbeeacc78b28a57f0f1b99193

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.684-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95843702c176fd062aab6257c0c6440b4af84f52d68923ba2b011016e09e9c71
MD5 ee4357f5e89f069069d4b7381fb17eb0
BLAKE2b-256 aed4737679c8fbaf3c4e3eb048a8aaf84400c38b762552a916eafe8ef8e16e11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.684-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 75713fa6fa7969518b9c934db48ca13a7016e5c300b7666ca01fc0e23344f531
MD5 9317f9ee6d46930ba49a7d4f0d8c9cb6
BLAKE2b-256 85ca6b458df38f92aa4b0d517f03cdcc2f9a34f5d12c9713d586b483451945b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.684-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.684-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c5e5d6e1fe0f70a9daf8f9b15f2659c30a164b7c5034e1ea434dd087a4642ecb
MD5 8d0760cc767ad046e129406e00efb407
BLAKE2b-256 2827d9eb89384b0e616f71d292f1ae4ad3d063ebec62c99ac22a6767e742f9d9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.684-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.684-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e42ebcde0dabffd98fba630d50ac5bd28b876bb45a60fb2e0a4ceae67a59a8f6
MD5 95356f367a6df27fd32c49527ea6c159
BLAKE2b-256 c65e39322ae883a4b97020bcdde4ddd3a3d3d36970bf9fe71dc39dfa9f380504

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.684-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a3efef16ef368292e92143ff307db1ef9035e2617bc44459c7235b8e71c3aabf
MD5 bab81decdd619e4372d888965b39e6da
BLAKE2b-256 db8a769811a6263c91d05fc2e3a3581235e249f2e70eae4ceab72f08fa37a052

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.684-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.684-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 05ac8f64ada82c57df9b4191ddb3205dfdf4018c5beef590775181e8e83a0546
MD5 79cd8e6b2ce921c7cb32c5725127b7f4
BLAKE2b-256 d325d6ea029087155b3454938ecc8244ba67bc5d4dd689dde4afc6a73dc5804e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.684-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.684-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d7a18d025b0d60ea53733d359f6b6a1e51052c87be46a8a0d7847b364428dd7a
MD5 5cc97b490d4b81549fe3d36a1a0006cc
BLAKE2b-256 214d83eaa9b9182e28b53234fd3e029cc3e1c6a435990a0689ad8d882f69e14c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.684-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.684-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84d86530bde7fe9effda1f0d523aadb98c8755043520d0fa15743665269ba746
MD5 b4f5fb330331d35d8a3709d655a0dc68
BLAKE2b-256 0540da035702f7298f3b14ccac333b12c6fa6d5cfc4f453a55e01f7ddf1caf2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.684-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe8a07023646fa73b595036cc58823289c5004fb336043eea32858da03a74fc0
MD5 63a39a7550850f6525fc05f33dfc515d
BLAKE2b-256 05cb7920358a5db65757ba4495bbf76d6f16aa38a4330921282173ce913aff6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.684-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.684-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3636f3f2ce58d3336bc9e6637176a80bebe7003af828bef3926a600bbed9b12f
MD5 25c86201490ad24eff74ff328a077e34
BLAKE2b-256 5c9ee623a68cc1b73e0b1e4425193a8e16a0e33bd1f18aa37267e8951c953b12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.684-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.684-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0f49c350db77fde68560676eb023040778ed6a96b482e0afe7ccdcb4de190164
MD5 7719d8d97b17820b4073d61a5ce1f73e
BLAKE2b-256 a1d33a4f44783dec3267910dae0c4e0560e07c9ec111492ca690fa813adda3b7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.684-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.684-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6cdb883d3e74fd90dbc4e041dccf4b72de6e05819ad44ea49ad6e9ff92cbbe67
MD5 615b51de871103965a6371db22f57c10
BLAKE2b-256 f2f6339b557351de67220b317ead71c19022a33b2ab8337a763fbc87ce337215

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.684-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9978c136a50cbe554b649af399d9ddffda3e5e93830b4f4a5b8661e43b20c13c
MD5 46f0b72daf3440beaa3921cf3dcb953f
BLAKE2b-256 56386ea863dd9ef03fafc392fb51af49d327129ee76d799719128f49c19a80e7

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