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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.779-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.779-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.779-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.779-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4638d6224aa7b02958479d8a9db8501cfed2747d845b9ebd8e340ff4d527c239
MD5 5de70adc94a1f8bcd27c1b971841ed85
BLAKE2b-256 43da03763d0a64e59a706e19e49189795050f8f3356a3df79e225cf1a1fb0a43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.779-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.779-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 840c8f90b1122948a95bf4f7a0a7d7b3bb941f489f0c1b328da933e046a7dc82
MD5 80a3ee72fbfe326a5788badfad76ece4
BLAKE2b-256 c64a343ffccfe5a63cfc81008b4e663b895d3a66294cac9c4449eff3d8b66188

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.779-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.779-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2476c6a0cf34d675102d2d10538e8dd2840ea767a98d888170cf29d21d34be39
MD5 80c78a40710ce50a6b78153593933a85
BLAKE2b-256 a3e91de77188db512b50a7aead1680a3eebce640abe05db9f824ee08d8f76edf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.779-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 06837d83bf48a1e3f84d71b3001adf24387b5f75bb8f50236abb05f2fd26a682
MD5 415b82acc8bfbbe1261350a02288085c
BLAKE2b-256 6917f9eb119c1c06f736a3314af3f20e1fa6fad084535d720ccb33d5127547b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.779-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 58c47c0fc9f08fbd2d5c87282fabe5793d019e0dffc9a5f6034aa584bf4ccba0
MD5 58645850184b81f0913d841b7dfc5152
BLAKE2b-256 6380541483749368018082b1febdd72f746ab2b64ed36e3dbac5b91d2fac734e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.779-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.779-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8892e143cb37831fb72c105c2c83886fe37ffad5ebbd758c880f2291e5b54ba9
MD5 287882d4aa311d79ca20613f267821e6
BLAKE2b-256 06326a574e411b178fdd162effb8aae54f72d366f84cee9cd3306cb1c2216180

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.779-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.779-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f3ba3539fd1a960a6d2cac140396f5b5bdbee4a6b13994d1d994c2212ba4972
MD5 bd123a127fccedc03ac33d29fc1ba9d3
BLAKE2b-256 8773795e4685cf644e9217aa390e4476a2d044ae989ce605dbf82f40beab5748

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.779-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82f4d14ed19dd79e8ae29d9a38ddeb378b08fd107eb1b3893d9cbf7c21af8ef1
MD5 0bdf32f2b91dfe565025f5853819621e
BLAKE2b-256 66b86f2e4359067cac2e6026460717dcbcf276fc97f7fb38e388c2d7620be35a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.779-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a5cbe789f734b7266687e6e1d0f9bbaa36055c14a5d0732176a8477fa25c5441
MD5 2b69f3a3daf43cb2c74e66d20280e463
BLAKE2b-256 00e900f236631bb0822386d1d99a820ddc20d9c6be6722a9fb6f3fc4069b553a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.779-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.779-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 89969d588caaf8784306faf2982bb2205bd235e7789ff42e643022e1e1703397
MD5 b5e508f843e7369776298b83e6664c0a
BLAKE2b-256 7a2f8206bc7bc42b5200086be3b82fd5091d36a4dc852683053b5d1bfa932d32

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.779-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.779-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 81b5eef9a5ca8c6d83823e98e38306db8e5fd877e09c04abd9ddc6005de4b766
MD5 37240076688360eeaf38d338327c6271
BLAKE2b-256 60c6e7ee8a026fe67916b5f73e872e39eb57e399c489798a38a4ba05c37a30ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.779-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e61210e996eb66419bcd429ced9e327d5d415461e176cfb5c30fb4c25fc6b9eb
MD5 b6d87918c303e2d69ea25ac50dbbd896
BLAKE2b-256 4098df71436bde5c51b70933a30a75742eab0af82bca02b0556c022c7c95dd3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.779-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.779-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0a9026757cd2c1ce4049594e5129fa5a55eec82c0c9182cca3bcc8552edb96fa
MD5 7657f389b303e5b733d86b6bc3da9348
BLAKE2b-256 a07918a0880eb2df58d09504d234496ffd76818ca1a71261ee3a2ec6795faabe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.779-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.779-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 51ee967d75ff3b2870d71d996ea3d3a4c4771acf150a03cb790f8fe8f14d8eb2
MD5 a9f2f65c3e6f1574bf66c633d488a5de
BLAKE2b-256 596ed3c4372cbf4d3e494af6c9fdd39d9f933b4dd3b63a81d3f0ad7dad4099ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.779-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.779-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bb368893d6773bf4d87e9b98d032ca79dcd97c7bbaaf49db276c6a0549b01038
MD5 ee9ba72f723fc422be258a44e87e1efc
BLAKE2b-256 20175bf3a8013f90e70f97f001f950e30e2f5066d899d382350434a9f45440c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.779-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c8c773f96d1a9715d2bf48a433a645c5b526d9984f51ecd52b6c8c01a2580fbd
MD5 0013112c1f83b53bfb87e1e62049485d
BLAKE2b-256 4245681fe1948b9548b053c5adfc5a1d7ccc36e8fb84a7012b53c0f81c5ff109

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.779-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.779-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 25207e5151f7ceb224bda01a20b4cc8838a54bbb43ee3b19d732aa94151f23a6
MD5 7e4abcaa90f3c46de88d08d79a7d7d9e
BLAKE2b-256 3411d7d2706b0c3aaa7bf8fd0b7dfce0d59edb62afd643461d76624c328093b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.779-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.779-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 03f5be711b86c85b42019e1b9fcd2d5c4d06bedb54cbde239b55e8eb996ce709
MD5 ee3f1e2745151b2e63f6087f21be9734
BLAKE2b-256 980a98b02319a383941197e81ba87be5bb8dc0807cd8be3b68a8dca2825030c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.779-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.779-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f35843fcb8745d076a5ff976504b16285db4412cf57fc97f4e6cc525a9476cc9
MD5 380170e5892f444646ad8493ae3e5ffc
BLAKE2b-256 01e129c4870571dc6f5cdb0e843604cc9d1361c47134c808267201102601df7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.779-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db708ad4676689d49ee1074523f097720073dc68b50bca8053647e5c74510900
MD5 7c73b78641a1b12204c4eb2bcacdcb3e
BLAKE2b-256 37d7cfdf0ccae1695846c72d90ff609751ad37625cfc74895ca107f55c27891c

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