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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.177-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.177-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.177-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.177-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5d35fbaa3c03ffcafff95774a21a7a4f29578360408934c183b6dc5dda80f6da
MD5 3ab74e172dd69ba66e16b7d67367a9be
BLAKE2b-256 6260b4b319722e139e8b59981d27e679dbd7518d2f6aa4f0716b7280df5e98e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.177-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.177-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c4dab498d2405b4fec33f13509c7ab056e19d33c11e465f4d578c7e04ddd9d76
MD5 125dd60d264eed2d713543d080cea86e
BLAKE2b-256 2ec29482ec514b335375195998e3ef68323709c0b5f69cfdeea41518893dcf50

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.177-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.177-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 abc1c5f65051d7b8f6f20dc031eb1d466c8503693de1fef159c9264a28baf3c9
MD5 aba6da13eb215393c4d8a960ebdb05ea
BLAKE2b-256 88e9acc6af545c8a2ac226524a0199c7e9fb41888459ddda15b04bd74531d08d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.177-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 508fde0bdecec06d33705720cff0578f00a0979dbb6f254a319c48333c522cd1
MD5 5c5120a5828c589de959385623511d95
BLAKE2b-256 cac58a2c3481f9c17435c456c3aa6799318531b8b6b7f6b56f9e5e31409d58f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.177-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 236a4ce47fc62457438c400f929dc9c4aa0bb1560aeaee02807b527048b816e6
MD5 f21ce130a49706557fb0665fd4980ed2
BLAKE2b-256 652b208d37f361ac0a83a03aede4719fecc07e897a8fafc58413334a4af3d51a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.177-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.177-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c45c95eee37f901d1ff294b74b9ecb77ea8b12834010d17cfd9250f342c05f8e
MD5 9611166f87af085de294e5233cd19d46
BLAKE2b-256 52e53851fb4117b4ba6fee322a174aa10b02eb09fcd6ec6a5b0862cbe17ca879

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.177-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.177-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bbfd7075eb1bc13cc62d445e5b7787fa25ea73e3d8c51033aabaaa442d027994
MD5 5f31420eda290739bd8da131930b28aa
BLAKE2b-256 a21ac3a3d445e2591c0ee2bdebdded42ae1ca4e03418e8577b7896d12fd39739

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.177-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d7ab1cd65177951ae41083ef7a6db08a0185e8bc6f0f6a240bdcd810d6a1cab
MD5 4d64a98d76966594565e489475193948
BLAKE2b-256 d1eae14516865867940c163cc0403bd823aabba781aa6c1b80aff73f9cba985e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.177-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9d673b48e4141e1b4e75bce83914e01fd46871de692805f2f4946b288cc5bd62
MD5 188674228762160c8901ed38e4b372bb
BLAKE2b-256 862a13881e9b133139394fcb240888364da0b237173f6017fd10cc8ccdd2e072

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.177-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.177-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 36a2732b73ddbf2167fde5c903adba32b3409b89d746ec1b3e37cea3e0a6e5c1
MD5 633050fdaaccb8992fba2ca8c3fa33b8
BLAKE2b-256 f4cef8e2e6f88a776d7de8e691bf5447f7c0c09a60442a1bb02706990395b310

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.177-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.177-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cd7ba3faf8d276103e0c242ea7ed7e3f9285fdd422e68c6c62cd577e431d910f
MD5 f8210f9b9789efbad7ffce8a6fcc8083
BLAKE2b-256 9b4a8c409a0491a5ad253dcd61bb4b782e8a11f5c3fe4bfa056595087e6f5cba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.177-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c04ffbf278b0a54f7d41f401595bd9db2367dc920d7c9992c3c7ecc9b561bdc
MD5 f5b393e37fd2a2f66264afd5248b45df
BLAKE2b-256 afbfdf3560462c9d577385330df134d81822e7de9387f0aa18dac970ea534774

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.177-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.177-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 399e70432965cd9431fcd45739714118781b86185311fb9ef8c99928e0cfc8f8
MD5 d66090957eeb0568881460e0ddad622e
BLAKE2b-256 15ce1d81ce32704dae20b98380d3a63bba1bbc1227c220ee8168cf8c6099c72e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.177-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.177-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f71ce8b27ec15728cbe678838f6ea5db79d71335ca15a82ea7a7e30165c20735
MD5 1b6ba9d1d1ce320858171718c8ee8296
BLAKE2b-256 8034f81555370268269c2ce500fd872d061de9ed1c27cde99e8ec154838dc72f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.177-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.177-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f203a7525b6af68b9053bab9821eb8d8ea79ca917f715664464948a94ff4bc2b
MD5 143539e9a066f53535bcb6fc00300160
BLAKE2b-256 84296be2651c9f28b72d4b2682a06a4266a4c8ed65f8df9ab852c4da090f18b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.177-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba3d9db56c2c80de9e923b3738be311f59e4de756fdad69985119a86b2d4e141
MD5 60889f7384a0c588c75d32cafd91d95e
BLAKE2b-256 e078516d7684df550ef5796af4bb32fdc656059e9ee57206dea7635474895198

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.177-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.177-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e2b92457b2b9004d75e56995e5aaf5421fa96f1085278fa458535827095aaee0
MD5 30479db667244727bea9a1c5b9b0c799
BLAKE2b-256 188ea2b48b6573fffaa6c393723bb217cdb78a9122d113d5dc1a8a221938054e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.177-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.177-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6700a85ae5ebf7eca39f459b103e8963efbd0b2fa1bf3a0d2e33ddebde388601
MD5 decb80eebd2abafa9799a2f4aae922e6
BLAKE2b-256 4b35609c8afe9a895208f65c0cab1cb92a479e1b35cbc15c59006f5bce784edd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.177-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.177-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9575365cc947a2f4888bc42684e840bef0d864c256f240c039fb7584c5d1b07b
MD5 01f27e2c84cca8abc2eabe6c0b182d98
BLAKE2b-256 76480d8994e00ce65999380e413be8223a46b14e7e19d7134642ae9c3ebfeda2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.177-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d4323558c9367988a6a27e85d522a92644d776e8810f6c3f19fd587b7621473
MD5 847ce48db44a7b774036a53c69e9d875
BLAKE2b-256 545d73a5f5f694037ff11012ee566c1ce38489f14b3913ace39dd7b75404ac95

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