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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.17-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.17-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.17-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.17-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.17-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.17-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.17-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.17-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.17-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.17-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.17-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.17-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.17-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.17-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.17-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.17-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.17-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.17-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.17-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.17-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.17-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.12, 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.4.17-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b48a4a6d28730b0b86637d4571a9319283247f75828e3d31e4b3ba39d2dd02f4
MD5 5805af02a141d65e4d2969c525acbe21
BLAKE2b-256 351f4850e5d797cfe184a9198842a0e9bf8b92cf9f9387f24eea3984d2ebdc91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.17-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.17-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6a3683d8f10833f76fe8bf6789569d979e98a646a1d7f254280f4111e4ce210a
MD5 34260d05a8792d7cf99379f14087c66a
BLAKE2b-256 35742500497e630b1a9d2a79d39f41f422de4caa892f15f267cc4052ba993351

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.17-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.4.17-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b8c21aeff1b1452c31265cea27aa0ccbf9a753487524800aca82eaf42d9c9f34
MD5 2c9af3c9db9fe9ff8637d66d236184ac
BLAKE2b-256 bd17a8d3be74cf0c40391fdacd67f9e2935aa65d0b1f679a3ba0f43347eed6bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.17-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 418c5151dd36355d1d444d50dac42b392012b52d094de6f386a74063ed70ca15
MD5 4ad2206eebdf88759f206638914020f6
BLAKE2b-256 910d4858de43ede552e963642a26141a5c4315f8eedeeea18d0313eeaf54bdc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.17-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 kB
  • Tags: CPython 3.11, 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.4.17-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 43df9d30af965101f18d52dac2c0611baeace98a0234fd92f154af557f30ebff
MD5 68b78b4993987dd3418d6a83f7c7f1a2
BLAKE2b-256 8930fec49baba8579163ea720beeefb53cdf092e9432da148028023783066d85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.17-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.17-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8c4b7e4fccde139b332fe2f598a20ea5915a8193a0fe1af628eb6e72d4d8b691
MD5 d889061d69e1b9acd157cc611fa7f906
BLAKE2b-256 7768d43c5d23781b3f1060ce912443e0caa68e5f589e249a5d885bb2ef897c92

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.17-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.4.17-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 54aaf2ba856e581d77ff578b6025bc6969e610ea776fb528669703274fae07e8
MD5 2791f3c04e72cd98cf92ea0ded615328
BLAKE2b-256 adc251657ca3ca98ca9d3136c90b5a3b9616a45f64714f0aa86937865a4792df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.17-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 694bf3fcc9a1f138b1ee7dbe477757e29fdd4e59bb404e663a2efb3b20e584d9
MD5 365611abc005d516aa7ec1c4d866b3f6
BLAKE2b-256 8794c1ab1a71cd9e13e63f3c8a30437ffb088e68c2ac2a2717b5882663c31c81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.17-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 kB
  • Tags: CPython 3.10, 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.4.17-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dbd882c6d20baf4e57d0a9ef1b5e10018da29bbb0b205ee2f8b4004a11362c82
MD5 ee42ad80b61c792351a8539284adecb0
BLAKE2b-256 49ade6cb8b7d9d3bc2f703870582acf971b3a9a3fd649698c8e3081a96595ba2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.17-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.17-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1766cff866f0e29a8d42789656f29459050232281ded28eac777b96535b58362
MD5 faeca2057ddc4543ef276484ddbf69dc
BLAKE2b-256 aee8fc480cf984d94955ec6a96da4162767207a576aac21af27a8d57c90a7264

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.17-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.4.17-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f27d085442e6fdaa380159628e19cd891e5993799976b3141c345fd151ebb94b
MD5 869bca784814a1261990c3868ed65704
BLAKE2b-256 dd0b8cdb045983fe19a1a17322353002a4e8dc2f771376c9a72437c080cb935d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.17-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e668c8c65dceeac4511b49975867247a377abede6a42855ff3586f26a5bc5a91
MD5 4dc6458ad5669e11d3edca26077651ad
BLAKE2b-256 ef9f2436da599c7ea587364278d0d6c4f84820caebe5de1a9cb34afbb23bdc89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.17-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.17-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5af7a6c5d200dfa39061e3ea0e6541c05c09a203f61429431e0e9e79dc33a7ad
MD5 f31b07c904f13f11d17eea4e4026c426
BLAKE2b-256 d21258d6995c6ff1ee59ee417ea9888e15eabf855cc9e8b19a544f326379204d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.17-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.17-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 251e26b5be0739d46464f876627dc508c2136560c761e5f434d6cb94a42b91a7
MD5 c15868815aea86de4bec508a854a74fa
BLAKE2b-256 0f9dc08cd13aca542034a1d70fb30ca4e6b29e42ad2c2f5321503b94ae6de7fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.17-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.4.17-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cfbbdb30805aa617ef048bfe10088f75bfbb876442f84bf6a3ba5554dcc6dfff
MD5 cc4f46ae33c064ec8d138f2f46bbbd48
BLAKE2b-256 a776eaedd8a731c9242593f8ecdd099ad44d3d7706e5f8b03866b30e79220518

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.17-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85b533863c891668456ece3f075e456776f7e470e1226f76e57f1bcceebd0167
MD5 6eaf912e315cb3de8653cbbd6635a6e7
BLAKE2b-256 814a3b93f85993ed39beeaff4bbc4f6de53e748014154001d7cd384e4d5cb85e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.17-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.17-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7dee4e4f6c67b0532d0ae253b5437ae9ca9b83a65d4745cdd36692d21ea4201e
MD5 079a7a1019dbde29330c692c9a497fd7
BLAKE2b-256 b47460b96c4fcf68c8a2f3091fbb54445c386ebdf662796f1cfe0a639efd41fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.17-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.17-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b602916cc882f95eb8f3eb6d0e8d91421b9e654d5e8169b1d75e2f9a5b994db4
MD5 3d53071799f6126a3d3cf4643305e6d1
BLAKE2b-256 71012231cac60cd8677c9de58a8ea3de0133d4c622e85aed3dede6c8b7049641

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.17-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.4.17-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5e8f18e9edf46a11565ef62407336f25ea15786636c86586ccfa206721fe75bf
MD5 c94329a33792d8e43db551993881ba3f
BLAKE2b-256 8b0101bda71d80c1e3f68f54178d31e7430e0a211db89b41102ab4db6e7ffbf1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.17-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d0475d25e35103ce397d19eb29a4a9d401fb046f68e39de42e0626e070e86c1
MD5 d9ff7544bc61127cda24674b87b46769
BLAKE2b-256 ba879fda978a9d2a63080de75130bc8438bdd111fdab9d6c97e0af7c0c10eb19

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