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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.697-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.697-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.697-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.697-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7ffa14104cf7aeb39907cc9fe0dfc7996448532a882436a67b29202186683864
MD5 66d183b8bc5197b11e1e6277347b4263
BLAKE2b-256 5897e770de4674d45bab1308ea4f7ccd8046a88c72ba515345df13ad4e9c4616

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.697-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.697-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 db1bdab0e00f60840185a3e8a05d174f2a18bcd606e1f309524a9ed2a4208948
MD5 4cf307b1e50026ae4e9d1efcc1dc99d9
BLAKE2b-256 c69220229e490b2be79cca7db00aa794fb5668d7722a1dc684a4e37e83e26b32

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.697-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.697-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4dd5cdcbde1fbc464dd4ddd6875ad3bff38014f6dfec8a976d1c22a1347511ba
MD5 050f3eeeb17dfeb7131ebf3295521851
BLAKE2b-256 b7be37f00531bb850661249fc8222e074a7f1a1b4ccfa6545b454a09d1a55975

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.697-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 debb33be7da16d1ce79096b5b285b403103a855ba410bb95f07490023a22bd1d
MD5 b36563a99f2e495fc521a3443588d9d7
BLAKE2b-256 dbf3be89b3e8b35a3ef36069cb4c079aab96eafa949e9f215e55d12b3285d068

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.697-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 99d89b7c57e935d1dbb18bbaab8271d9f35f56499d12de0bbe84af81bdf08b48
MD5 921b4caeebedae8a78ae2bc2c497f405
BLAKE2b-256 d25279cbce289433b416cc7f40a6fbdfcd6dfb66439f9cedf8f6359739f78a90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.697-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.697-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4d6e381d978100563b44dcf20735d8f39db72f878ee956f28470646b68b03326
MD5 3ec26a54e40ad5b07ae3f91297196dd0
BLAKE2b-256 8045f5a7cb84d2c506498f293a746dff9fcce318dbdb0a2ea316db4038c7b7b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.697-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.697-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7afeb7f8af7f41448b78ee756d0986500649812093f3e2e33e272480f4f87f5d
MD5 90b3e7020d199fd46249a33b9d9755ed
BLAKE2b-256 7e0e34009a1569d67d58c99fa0c810366d88803fd88e744775ec1fc3a0e3e93a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.697-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6b06db3b494f060da2a111ee18679e8850b535d23e11161a4f5fcd642ab006f
MD5 9eb601f67009eb87516d59db0732c9db
BLAKE2b-256 e04c658fb4ae41180576d487bfd9b61dab3a0e25c7e3f99f0e2ccb2c10968e2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.697-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 54037b0c2e015c0c505f3690e7be148d04dde2c5c0fda0187215ec38f3647a05
MD5 1e530b7c59fa875303ae968d760378d3
BLAKE2b-256 4965bae3edc6ca8edab999d0416a93887ae2c5e55dee1bd2141da77eed4b2fbe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.697-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.697-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a25502a948d220bae65bb9beec8b2230ef2c5ba7d9aa2caffbe36de30d1c6fc1
MD5 df4a86723453f08f69a1a491be4ebb0a
BLAKE2b-256 97f5d43ed3d2acc3c51e7571a91b4ae239f01465c2a008b602789e05c0a51573

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.697-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.697-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ab4fd4bfab6e51fa2d8839611dadec8270302e51a8e089debedbc81049b74b80
MD5 675a0b9d50e561db7e1e94692be53dee
BLAKE2b-256 9672d54fe7c291f651fb3d2662c5d59a5116c5ab099b464a00dff34822934d52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.697-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7622219f56e9882d4113adfd5aa9dbcf523fdc8835b66ea321b7b3c4af93a9ba
MD5 a8e6ee1cf54e3ec0c9b3a449deae8c9f
BLAKE2b-256 c89b037809442caf9d99c02a8c3e55b3bb54828064f3e1a7c1bfe28e7ff08bee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.697-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.697-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0a133e9f76ef0993776b91c5b1756f4ab982649c58d8ae52dc5f21403f7f6f13
MD5 3f6aa98edfbd009f8eafcf5956448110
BLAKE2b-256 344f3767c451586dbf8bf1b9bd65b6b19fd265831908669670d3cf9b34f45e74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.697-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.697-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f0e502beca5d38cc31c5991122b3658cec61e894437ea12c0661e46e208f0371
MD5 a9aa852ca0ad22d897fc5b3affc250bc
BLAKE2b-256 b7b08adf9f5a3a087f08a2a728ce648a7b5bb0b24e538d743631b18a552c4f3c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.697-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.697-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cd98f590db60b7d5d06356c666bef1c808329cafc026085730a647ae592b423b
MD5 fa0c83e2dc93b35c28f062ea82b46b47
BLAKE2b-256 d9ccdc01b864300a5b463d52ae7f4cf54ae069295587f32fb889e0f8996ee832

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.697-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 761139a6700e03d65d32c8feaa74b6a83898fdcb58c5578d6db7b75e4b263a5a
MD5 a30f3df11b85f7d00fcc252c8b5b3502
BLAKE2b-256 3aaefbd50f9d84fc2273ecab6ffbf21bd0e4dda562c3c53831303d509f4088b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.697-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.697-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a90f4dd9a844be363a51f38b3328d035762f2b9ab1f582f7649a684a1022da97
MD5 be24222d5eab2c5c2498deeaff1e11e9
BLAKE2b-256 cf42ea9d597b4875557b672b1f86557022d51fc80ce1c2be6c645b6d71c0ad6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.697-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.697-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 72a0a6d70c637efce1c8066ac771d952ced92324dcd5ac90a99f89b5a72d3a74
MD5 7c9b2ea80b7a1911491a81c539815632
BLAKE2b-256 c922b3645c0b5ea839e57f82ec069bfa47cfdf0f0d6750a821093c1d9236fe89

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.697-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.697-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0dd331f705537936c00aca268c3a68acca1e29807d32d790f248e22c6747d381
MD5 67d17d7080b585f5fa8b3a085466d8a0
BLAKE2b-256 bf3629177d82721bbb08b6618ebbaba25b66d61ea5f11ad52917799fefa4c2b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.697-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 427fae8fa77a3ec531e5d8633d5b7de3e8645b62728593c31190363cc7b8af6b
MD5 9fca86c77e73d2b316926fbac381bba4
BLAKE2b-256 db8fd823cffad102eeed39b4223b9e911a49b1182098696221a99b4bd406901d

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