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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.573-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.573-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.573-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.573-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e38e8466e08b74cb1d1ea9da544dee078467dcb82a3928b94c2676774d3e31b8
MD5 6af20fa61c1484648aad194af1775c94
BLAKE2b-256 e440380419c6d71b8dd0d9d6b49c7a741ca08c5ef9ec9c748c3a3b0ba5a009ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.573-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.573-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3e969399aae4401d23838e7846954ed3c2bc4d861dca460abeb05afa3ee7cf06
MD5 0bd1ff67fee228da309c3d423fb109ae
BLAKE2b-256 8ad0be464e5dc7b35273e30c14b3f148bd644b66cdfee4de08e6cecaa96310c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.573-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.573-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c0071fe7ae7a668462248f6d81fa8caaaa775f8ea1258c526ef660958629844
MD5 321fff0971b0fa03a15773ef45e3a872
BLAKE2b-256 8677f66399c24654f663ea671e2547feaab79531e7e0917acefea344953a398c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.573-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 412a48bab51341a47d32d35de98bf328b6f64346ba79471aeadcbacaca9cae0e
MD5 b87b48248e4569746f7fca32496f5844
BLAKE2b-256 17156aa9aa84cd6e1b5347d5ffeb5dfbe6d8f17616cc4ea856be075e446a2bbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.573-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1cbf187557a12b8ed45aca38a23f7709afee044490489df877e022a7f1c6958a
MD5 c617616b760de6cc8e5467e954cd83cc
BLAKE2b-256 35dc79b993d2578050a5a2f2fd7375304079d11d3c03d4f7c599ee8ca238bdc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.573-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.573-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1d36f6ee6b2928f4d2f2ca494112fc287d79c37903d5c6178746f912cb7d298d
MD5 c6ea432629bdd09f47de3d3438bed026
BLAKE2b-256 1bea6f642e741c3cd0181cc0bb79349ab775d71e1bb94eb94314a8584c370bd6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.573-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.573-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 07e45e4b4162db35c86a169a7520f585aa72c477f46896af59ff4970571df986
MD5 cd76dd8ea3a790e844c03755ec3f1584
BLAKE2b-256 399053fde0a7120d57557a959479c083ab7ab3d5ca368fcf4762d712ccabd0a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.573-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9374b10d2acc6b4540795a8922d4c8805dad1dc15a34418634fa69f1dd754194
MD5 4e881b5826749a81081da26cfb1ca0cf
BLAKE2b-256 a05e55de807e618eb50b34fda585e6c89be6df5da980f5ffa15343c24c4af177

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.573-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c946c8ea5eb305a90a91863a5712f2f7b377e794ae6c846bbae5884c08a45d17
MD5 fb866d6491371db29fbbd00542a6cd4e
BLAKE2b-256 35f20e422a459e9643b29c8883878a8b755c37e2d7c4a1a1c8010eebc8468aa5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.573-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.573-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f86d8f301aff98fb74eb92605f5e7b88e6b1ab3d4dcaefd97879e8be2ccc6303
MD5 d8f420d56362648950a14f37953bab38
BLAKE2b-256 e1c6de5142398e510887b39f0e925d93106f04958fdd30d57c192a6c89fec975

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.573-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.573-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 90d00ca512d8de3806d285519dc9e57e1a71cfb290c0b5829bf14056468451c9
MD5 1cbd1ea9d46a2623bd5957a222881396
BLAKE2b-256 e3fe629d9d94aff3ab07dbab3001ff8dbf846517f7ffcf08a2a08eb9a6e70d39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.573-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0eb32af165eb0fe2529f73e42740ffbb6494bdc042d9861a7b09cfe7f062985
MD5 8c22a3cd8dbc6dbdcdfcf7e70f43e88e
BLAKE2b-256 35f10b1fe547256a8b95c95593c7c0f9e6a0fc78dccabe72631f1eebdf4328d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.573-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.573-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 81e8da7b3a53899ce7c02e7a2b35eae66ec280b77d0e2fcd4ff49c63dd889564
MD5 5684a096f15770507b32fd82cb00b3f7
BLAKE2b-256 8be51daf0809c4d820e04dcf4e393bf226b1c106203d6cc6718681964cb47970

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.573-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.573-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 66bd93779396e405fc9e71d0cdf2203a987f3bdf0d0580126cee18737bc98b0e
MD5 52655ced918d0cc7d3e0a9b3305ee342
BLAKE2b-256 3a0c2eb4dc740616fb9c20329fd94d4353e9e1c724e8235029517b745c5f3d09

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.573-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.573-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2501331abda3afbfa5b09d161b2f5df853a8597fbdd2a216d2527bb719c336f6
MD5 ce1599a6e0f5b45f252d4720622ae065
BLAKE2b-256 ca9234934bd6aae7b988130f8c33f362ea7e58a5b110c49bfd95476107b3e2f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.573-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6452c5b45a2d73217db9322afbcbd149e85943ec39a9b788f4a1b51a9fe939c2
MD5 54e73582bbba3184f986789dac1f4f0a
BLAKE2b-256 30b8636a337298d302a76dafac062bcb03522df5655f93591a02530a69da7c31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.573-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.573-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 943511ee6539f663d5088e591484d96530071b8426b99a651616cd205dcebfec
MD5 20aa43dd8864bf702b87d6d04687eeaf
BLAKE2b-256 adb634aa7d3646b1dfe83b4c001b7cd85b915df4c76bbe284c2e4ccfa007f6d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.573-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.573-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 818194a0bdd16191305693f7a9904de368421b4f24be8bc245e9d083abe945d0
MD5 731f8390c400af6a5dcac4f369c6cbc3
BLAKE2b-256 0a48a4c678b66c328f7942fa6e7510ce2944531238aa2c4ab5d5ba058217041d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.573-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.573-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fe80b4bde46e717f20b6affeaf88137cf03dca06b2e39ff4b59c246d6929909d
MD5 8e72a02ca986d9b8d8fcfb46e5076e25
BLAKE2b-256 9aad4579e0d475bcd60b26e31648e625573c5970a63e5bc2d09b3ca6f17ec109

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.573-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 249dbffbcb068faf7f29d6ba8b204e0e8c89dbde4a4230c2a72430e00e28a328
MD5 c7c4016346f466ac6b3afef431ae7ee2
BLAKE2b-256 fa58ecf26f3f68ae877d4962bf653d3217992a9bbc803cec17285baa45f1b15c

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