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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.594-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.594-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.594-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.594-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6a92887f8288c3dc55b8dc466df0a2d4bf25ffc6b5a119a5e0f88fb9e4b1195e
MD5 0c7e93830c05244ffc482c454863da7f
BLAKE2b-256 bbb3c30227c0eeef68fabfd10625fa29eeadf128b033ce7f3c2b21c519246c03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.594-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.594-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0d78b1d0c7c380cf36eff96e6041fde120d4f048190398c49e9f584fee911f56
MD5 43299e94b0c2e6f40c798053b7774461
BLAKE2b-256 9c3ce30dcd7dac33290ae85d6d21f585035bd1b5af8a54b59966bcd4df61baa4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.594-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.594-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 59ac924ffc7fac139fcfaca31a8194cbbcf6682de76712f17d905b4c4b9240dc
MD5 e232e97636f47866ce21891d2cda424c
BLAKE2b-256 2aafb50a46043c9498a86adfc28a8edbf31cc2a15368eff5a3d3c5f87eb5003d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.594-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02ed997e7aa8d9d5ae0a1283c796367f0d0e2f1ee8df69bb72b340a5e1cbcfd7
MD5 6917e80b8c00982f711897a41aa89f9b
BLAKE2b-256 4cc56aca3a62be7904bc3a89ecaad1dad90c8c715889596afb092524124ae719

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.594-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 50b7f5f2c4d01a7be21e498c541f8596e06643aabbf19d7e13ce25b7e77f4dc7
MD5 f539562e8abac1d889d0545303b9c8b8
BLAKE2b-256 b2b1b6fcda2b21165d707d8b4a66809b9be70bb81823a4e25a5d6535a75c0d7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.594-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.594-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 163fe45a5ea8d357ad43037e14785ee050be3038af55adf041d8958aa26dfcb0
MD5 a6a11008dededfe23d018eea4cfa2c16
BLAKE2b-256 873aacdc9ef92529b240e918ce056ae49af996256a00b27b2662abbee4998df2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.594-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.594-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7bba9407403fa527de6ab7cde2fb57eb55efc92bbb8a886589bc8ffbdf73a0f0
MD5 731c173d6c5d39694e3a12759b211978
BLAKE2b-256 6705393304993a6ae9ece75837fd0659de77a2ea0c67c2b61eaeac4430f88e99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.594-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ebc6724e97263e227f80c4b93172516939107949ec96cb3aa21671195d09de9
MD5 f7deca8be6677eecb0687f898b35f7b1
BLAKE2b-256 1b576eaa263a41806b5a27502818feeffe8b817ca527b4b4028541f232c1467c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.594-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ba8e5f221cd866a1ac44bbc4e257c09703f98a5a200a148744e7c3e63effcfd8
MD5 9743b21f1e9131b9d4f26000a6792333
BLAKE2b-256 09424902f7702d2c797bcc512f07b880f93bed9c75fb38365d9de601c1e4e156

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.594-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.594-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 517364170952ba41da5a78114f8f936a3bd9e70139fed7fdd818ca39878e4dba
MD5 0cc9788e3c4937c29a731730afdde6d0
BLAKE2b-256 92c0419af6c5ba63e1f951b5935e1ec87b355ca758d5c2db5fd8fee1254b01eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.594-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.594-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7f32bb5a923fc2b77f0286f6d61ca8795b9f77e2eb6f6bb41139438d71c0b8cc
MD5 9565126f6184f646ba26fef3be3da238
BLAKE2b-256 45bf4ecb4ce226414e019b26ded0c34601e3acb8c4429598903f3a47663ec6e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.594-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a6a97a15cb9f3c5a614d9328efd485b9f5918daafb5528ec4476d774ba010a7
MD5 bce88142e2cc6a72e986c6f3f6ce0808
BLAKE2b-256 cb3037ce7010afbc4087bd377fbbbaff2f2724ec86a31937e1b02430ed97a0c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.594-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.594-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2f332b19522c14f15be604ee31c96799436fba77dbdd128b7996437d0780a5f4
MD5 35690ff59595fa11d820202142fa15fc
BLAKE2b-256 d6b2caf82fbaaf90c0e654185f571b6a7239e51875689456289fab1b71722bb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.594-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.594-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4f35dd84c6db2932444488db9a32670b8e559551a6d65a9ba1dc2eba32dc6731
MD5 ec785448ba6ba94a82f60807d7251aed
BLAKE2b-256 62b7d32ac7712f1c995f378c58f46a33f05425b5ae219d5ff6be76cd46b026fd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.594-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.594-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3a3b0b0b8b19d08e3093de3b4aa2ea92bcaa99d03b157eca6c3cc0fedf774f52
MD5 f3dbf77fc4c932af2599dd7760aacb84
BLAKE2b-256 987937dd276293a15aa54079acbc69cbd0aeeeedeece7064cc0df8147ec1e103

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.594-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71375699bb37861ac2b759ad792311a55b3d15bf66e09d96172bce1d5cceaf45
MD5 53aef72679fc7ca976218ba38a5fc322
BLAKE2b-256 3a0d252dff9e3a72a7190ba3d2d2304eae802585be2e9d4f3c6accef5d29648d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.594-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.594-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 16b8c5a44e2622c00a19e97848a67b6b30b3d017f94e72b1570a1a5c52bb88ee
MD5 5bad5b5491862e9d93c5033c74d27ef9
BLAKE2b-256 dda10ce86800bb2a1bd16b38b13caecec5400bfda4b769e0bb514943433fb642

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.594-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.594-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6b1a6fca030bbb31469b88c1fad8932737f28dbed592068ed55677e08ed4e5be
MD5 e291b49980e6c12bb803efd4eab929bf
BLAKE2b-256 791cc29dacc5735ac7fad66f174d27feaaa6f9f5ea0a2c6847e8425d32173327

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.594-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.594-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 569263937bbb1a1ee5e61e85804e90b9194a76b7ff42298f8cde5ccfc7578674
MD5 c6e6b818a41964c8dde424b16a4c48c3
BLAKE2b-256 e63fd3bbb18b0d557aeaab5f883c93c46e33ba69203e7d6b66d0ea2d244f6dde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.594-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 26394d004d8e6988b9fc1e58046199c11c0b89ccd9590a90294fa1d9d7b88197
MD5 2c68de556e7107883cac04e3880b6570
BLAKE2b-256 81354d07f7caac6417d86d80d40086e707c7eb3357608a0968168d13a262272f

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