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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.808-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.808-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.808-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.808-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 778389965fe16aa02a2966d4a587747fa91cf2d2c917d516119ad8640ed2fcc5
MD5 d8d15e7854e3a00afa22b37a62d18a72
BLAKE2b-256 e00c3c554365b9c04bf3d6996dbb750bf54b76db996cf0394822243bd90eedf7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.808-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.808-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 de1edcc81b392a14fdef95d7d36d763abdadbd93c6424baf2e38dcb524d78249
MD5 f552fdfadf8cc4fc1428d6322f525393
BLAKE2b-256 97040048e608989221ef456abdf81a71d15255c221a455f77353bd6fc9f66335

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.808-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.808-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 42d80e31c837ced230667bd678856d06b700aaa160237e41e04c7b8666e50f48
MD5 935935cefd6fd791e1d476ee23842038
BLAKE2b-256 abba253452e9cbfb16c41e2531075702b19fc0f024e771a1006f963a91861bd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.808-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ce5045d80f7f229ba7e206ad40e16ca8d6ca86d0dee2e968ad857e9a5e1b821
MD5 8a8bb90d7b3020009870c9d8b9d896ba
BLAKE2b-256 529642a9830cede1c7f1c20c7490940d55fe061e6640628bdf69bac5f8bc63e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.808-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cb26c7254e244fc732a8334b91fb7ff1456319ce714f3ff97dd042751d991128
MD5 1241e57898a9be677024167991a311a4
BLAKE2b-256 0d4e07353e6f3cfd31f88351b4c563b5960033d22fcd030162ae081f92b22030

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.808-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.808-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 27884b9b8cad71159a7f33bb6270df2db5f02e88f8c49af0f6670f24b56d1c56
MD5 0c8487df6c80a1a5c8561cb268b0614e
BLAKE2b-256 5b24ff674f191550b1412c12ca74ceb6364a029016018a28a73ceedc5cea9147

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.808-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.808-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc8e0de5323db30518df4e35b77691918587d90478bf6cba115ec307665f6cbc
MD5 5acbfdf4828da41405bc427a5ff69e56
BLAKE2b-256 f14c3f84e223e5dccd143cf5f89a2dd542703471f6c45db3ef8a65573a21d0bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.808-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b85bce0aa84c033e1787b1e4040495375ace428caeda3b7b6a50cfe8be06d67
MD5 3ef7c3b3d987b02aa9b544fb4036e38d
BLAKE2b-256 f1ead24c31b1aff2cb7d2f773ef5f2c670c4712f818f78c61909683374dfd52e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.808-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8cf060f887a5f0228ca66c39cd93220c5700867845092c6dab108bc7b2aaf792
MD5 4bb066cc19b2b5b827d68ee93507e6a1
BLAKE2b-256 004e5664b7621d57c2aa365e772bf720866463102cdf002554694dcbc31e4e63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.808-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.808-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c655be61424e8d254221948fa6c3a1f8e5a7d968080cadc3d9a6baa29e0f451f
MD5 b2d6705a8b3e78ec6b67123ccee44f16
BLAKE2b-256 7e69258cd04b39078a49dbeabb3b7273dd31c54b6a6ee500c3e5dc8254a4744d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.808-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.808-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1d1fb1438dcf83ac537622cd2e35ee9b294edead2e42f9f4743792844d1c3c9f
MD5 73d20e7a49bf64da6abcc55b0ab140f4
BLAKE2b-256 148ebab0fbe7fff7ace9339664df2eda3c9119cd50030bde63f1309da24d0a9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.808-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d0eeb6797880b7e4a3e7ce5585f00d8a599947029cb8fc0ee0cde35c84bf7df
MD5 9737f1fe062fa9e86c18c092fc842226
BLAKE2b-256 540baa20b4e65dc8e8900bdd8e9433e756b7afffc7f22b573453bc2840ac5316

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.808-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.808-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ecc53aeca6af97b572ddc9e655b3f98b6e38191c5caa46c832d17c1efce67596
MD5 23df7b66704cfd9aab27114750dc0de8
BLAKE2b-256 40c303dee45e24a86e42291264829b7e1e1a28c8111e2a2662f6df6e8736ab4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.808-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.808-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 450e189690301b7aea7636a6bf20d956b5798e0171ec5aabc031d31508755229
MD5 b9629dc37e0e74f284f951790d5865fe
BLAKE2b-256 3f799c07ebb9f76af614452f48d7085fd866e111403cb6e60aed6b1c85047230

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.808-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.808-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d7de8f5902f9695ee5db56457ff7b2f94eb11f966ab72d5b8c31ed7bdcf2894
MD5 7dab0f0ab6923b39cc87a1202efd9033
BLAKE2b-256 3a71f7d709ff0d4e397e736e9cacaa7b5d3d4b62d69002ff42990456c1e29255

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.808-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5cfc958d7cf812760c805678f7c2e8692e36fc52b05ff0d8c5e828cdca1e376
MD5 bda18ae4dd66566089f43678df4815ff
BLAKE2b-256 918a421c101d138e22d6a9437ebf254981228da0d9698816becfc2db5d1933df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.808-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.808-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2d41a29c69b07b14ad8244c9a3280ef8de0edff53697495331eb10b36c7c6ffd
MD5 af033c11e8a1289051965c854a42306c
BLAKE2b-256 23c78c7e0d38bb74f24dc150f6533c4d72a1b14a48e04c0e5e337844ed39b62d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.808-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.808-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9430930de9008cda0a8fb548fd1f43ff89c0301ebba413e7d09a93c7d13b33f0
MD5 26f168ed37d503b9e0f6ebe4a77ebdae
BLAKE2b-256 d15a7a3657b3a00e824dfcb458b2abb5dc182e23354f091b0740978419cfa829

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.808-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.808-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2a1e3b5ebd290878ffd2fd03e9a330dc564b199ca899b159d34fc26cc4b33d0c
MD5 7b454e702eed98f41d606df50287fdb8
BLAKE2b-256 f65018f3a0bb7938ed2000656ffe6cfcc468599ad8ffb6d21e86ed34675b16ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.808-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d38b710d687ee2342da09492b515ef4de179842276f26f7fe79caf274b1c6755
MD5 5e4eb26978c7c708e3dda7d4bb60be17
BLAKE2b-256 de2eaf5b4eafe87a1d47ab164d9fd093136ab3ec1b3b03925b4cfce91d46cc5a

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