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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.488-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.488-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.488-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.488-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 903ba5d3c0fbdcb33342a14d308f2591c547e6264a0bac4f56d3aecd144e8a0a
MD5 b6391efe73ea488a10496f74edbfbb40
BLAKE2b-256 686108e3bf386202ffd3ee4d06d41bcaf9dec9fcefcaf4f1ef980632301e80f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.488-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.488-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 eb11a3a0a9e16accc44b0df6516bba051334c62f37ee2231651c2d1f0ab3cfb8
MD5 98709adeefa849846f55dbd9e985bfa6
BLAKE2b-256 243ce1e8556fd7124e26c500ef17420c6e355e0c47b08c2b0e9747c78e899607

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.488-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.488-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 950367b860c632acd63c94abb9ebf9a3bb924df1ebfae33b1b0e53396dbe6020
MD5 33f6a76eabdd776560d8e904eb527985
BLAKE2b-256 bd549471b99e79ae4d9988da5d0f2c6928a79cd575a2a6463f29da70c425f258

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.488-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8dcfd3acf19c9909117841a3edbe6875a5fa9d9fdd03b26b4d97d9256e09f75e
MD5 48f4c7b53fc8ad259655ed31a4dad81c
BLAKE2b-256 42f104a5b5ac64a25d7c0e2f8a8926ad5ec31e70fc58bfa7163ccb13e0193dea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.488-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5fd58d725fa914e9e02fd91c06a9061d60cd5cf4340f4d507b02a12bfad73c63
MD5 44823515c3b5a2f8317090407ccc6ad0
BLAKE2b-256 9afa05bb0410f9b0c1c5c7e7bfb39ef70f9bb8087d77c9b9670162787fe292c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.488-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.488-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dfdd1d0fec339fe079861d23170032ba815722a50145571ea9553ce1afae1669
MD5 16ac6b3dbff3f2c4cec8a29f0219114f
BLAKE2b-256 a83268d1c99c053afd3468f62218dddf8f040c448fd57d49977439e74f1541ac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.488-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.488-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a2360eb24a8f757a7d8d72078f6ea946c5026a8118d14b47ce269119cfd65bca
MD5 031c932b8dfaa7664ee9bbd881bf1177
BLAKE2b-256 0b5b3b920bc4c1f543c93b896816d1fd0d416783ae4b02bc9eb11b1b9b0eefa5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.488-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e785828d4b5c359886d90ce59c0e393317f2f1297324f47a26a1f333a3e81a98
MD5 9b1c2b9898b3dfe1486814cd5a574d2f
BLAKE2b-256 e7d8e33e731c02fefbb55472bee43bb7837661e89b52a39998181a7fee3d15fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.488-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1486dad19e183c70840f8e49927d4d038537324e9c6f098575e40a21e3228185
MD5 7f67bcba007bc3b99f9866a1f55e1693
BLAKE2b-256 4cb8cdb7845679e11206ec1c5c079b0bd8b90d9c3cf4198939e52f555ad31347

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.488-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.488-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2b0185e5f0c57e9d98abfbbbab18f4d3893c5b5e7ba0147084edd49599cc6d27
MD5 869762e6823219b17904f41918911d34
BLAKE2b-256 f6d4124f8fbbaeefda520de5f50e8654f3169b62b2b7fb9120d74468198c3448

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.488-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.488-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e79e11dedb865cf2c74ba1702bf8640a81823e100a698548c2848644d481f9ce
MD5 02f1710fee3f632db5b8213875b4784b
BLAKE2b-256 0ba02f5333a26a7b5ad7c782783be13b6b0e12123d4f37e0024f5c36a378f47c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.488-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7374325086b3019b7d0cdf8d75999fa5fb7b722a887dc8979bb1beab1b81265
MD5 c5b87c7cceb983bca57207eb67c7223f
BLAKE2b-256 f69ce67efaaa73e8fe17b868d54f52c5e34e468dfd5f365146c91af9c5af63cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.488-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.488-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5ab20d6e309a8a3e8bf30cfcdbfefd1749ebcfea6fcd29fea314d2a8e93ca772
MD5 4f243a0c4b50772091380ee350023234
BLAKE2b-256 248c15d433833f8c68bd72ccdc37458f04bdee75d0636f2d181ce4e36ab51b12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.488-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.488-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 978929b2b5c8898a91e5374529f435e27c21af4e123295760f732c0c051b4775
MD5 0a622c94b4f181ed3c95c1ed2f95b5b9
BLAKE2b-256 4663c6625d8a319ad11eae85edff0f91eacaa6adcc3c8e73c51e441bc5a66db0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.488-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.488-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ae9b3d5f92cc968c7d5f2f98d9a3b4b7cb6dfea470159a57c71f910cd49d0e1c
MD5 7f754dcd92becded67f035127a559dc5
BLAKE2b-256 9ec0a2e257f9a0b5cfd57303badf1c6dc11f597e7201f934a3552e6f4e2df4fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.488-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89c55ca0c9cedc5a3117e7505ac5ec546abe07d59d966922563d11f48ca0a9de
MD5 bae7bca4fda6e3194553b2037f07dfd7
BLAKE2b-256 3779233248b29bce2da77605cf24786f1f68f96c44ce1f5fc65b7cfa0025d94d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.488-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.488-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7d432f98d1fa3450eb540c9f6ccdc9a23540460ce5ce2f5c96d97dc3a6b2cc9f
MD5 c62d275110799252be5ac14f85faedb7
BLAKE2b-256 1c07c0f645b22f0c6cdf1733c6e661d4733bcbc57f48f3031a66d7da57be57ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.488-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.488-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 19c27eb2c68b48ca4eb77f1c08769660f7ca231be963f69c969d63923a8fbaf5
MD5 3771e4bcde40c9af9044be69f8682d22
BLAKE2b-256 9a81bede10d5abe85de1715a3d0ad47b05f5d8f3d9143e2b7c11f6f0df05c43a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.488-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.488-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c4fc6f17a0eab72cfd2bbef79659e0e3c90f10abe2db2bafd6c81927730bf18c
MD5 317a336d68c5cdfa4a9c223724c617a9
BLAKE2b-256 3094fbee814de651e5d30970d2051beb8cf2eb19580defd0bcfbab59125b5a6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.488-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 594883d14cfeeb19c98c6ee9131b4c9cca3ab737a0510859b3a4f4e9bcb73125
MD5 dc258f40f09db0220770cdc219ccffdc
BLAKE2b-256 4040a34c4166f5f03ae7714598cb20b6b39ce2834d34324e19af85697f9ee572

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