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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.669-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.669-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.669-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.669-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3ac4ba65f8955a182605b9ee893e3f55f565397f8766398878eca8e872743d51
MD5 8ec3cc8fb13db0c8eea0e6a605aa8474
BLAKE2b-256 965102f494db7f765d15fbbe44ad3b2d792ace9c60a8b92e916a1abfdb06f437

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.669-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.669-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bb05c051f31a56761c4587ad5b3daa8961eec0883eadbd4fa271e9bd4a1d0bbf
MD5 a48bb2f0fb4226560811a8c79e156930
BLAKE2b-256 7c874f1b1b457253618c736383f96ded8f76931f6e43e02a85119e33c6bc87ed

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.669-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.669-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c972719bc2d8382d9293aa2a950df75d884c2ab2fe8d008f7c1cac9b580341d2
MD5 adbcf92b35e35cb3e6eb9fe77fdcaf23
BLAKE2b-256 7dfffdd5dedd74fd6949df4550d727579c5e3994d12f0c4cb1b120198c079486

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.669-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fdfd50899dffd5347f1031e47f71f4d3ee35b9d35fd335ad81089a7bbf6a31e6
MD5 7b15d4e563b049615d4dc799c758f2bc
BLAKE2b-256 0abd8143669b4884c6fc6dbeb55a38c906654c72ddf6dd3643fd1fd36c9f9095

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.669-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b348141a30fac812bec2f144458f9f40bafdedeb87af61fbddfbd723d3eb5416
MD5 5afed52ce9411baf9262b7ea4a601283
BLAKE2b-256 d24bdfdf834481f35a3e14c642e880c68152edb2a80b38989c4069b6f636e316

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.669-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.669-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 17852861f4ce4916478342ddaf835b3f2c678616d895974df74e8c7c4fd0ed8f
MD5 755f7b6e5018c49f5108f79170ecd982
BLAKE2b-256 662f53d8ae3e65398e2d85995f776b61f9e296fb7c506c549ad02da5aa4bcc1c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.669-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.669-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 55bef273b7fe61ddf40ecca04c0095263d4d0311f6c501b7a351eca1afd6848c
MD5 148a7dd47d3a929bf52576366126014c
BLAKE2b-256 7909a9d0f8aea3a694e5d4e4957d0910dd4e417199cd1b4a8785f87a48d84676

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.669-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9264bea6f1870476f1345a9950d0931b6a64c8316020929b7f61d98feb75dfa4
MD5 0414084094c603664d875507e53cceab
BLAKE2b-256 de3cccc8eb2de3ac93d4ecb641b2846b1128d375bfb40bf44b4f859c93e38622

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.669-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 401b76d517073ececaa9edc7eaf46c14acc18dce566dc47477009993532bcae4
MD5 39d72f5e9a44a7a844e88294f03ee3a0
BLAKE2b-256 27c4ccefb2ec6a56e178322489da3539700783f89ca04eeeae9ad240270138d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.669-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.669-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a31e0e73957fa19f7847b62b7474bb51844f172dbb24ea27b383095e2af98cc7
MD5 dc2e857d737fef7961705d5dd57f0552
BLAKE2b-256 1c5e5415fb2be0ffe2f3540e1563093188848bc5256937f1e6fcd17d4527b712

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.669-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.669-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be9bb80a35bcad37bebf92ce4110eeb0c799e545b95a298040f01a6b0351be65
MD5 c7fc5d38de31c9ed86b356ba5d40e543
BLAKE2b-256 76014a61d2c9a4ceb8d342d8127e14805c2e6d931f152a8fbb77b38cfee19db2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.669-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8827c21b0b556fc60842a31ad1054875714f26180d81bec815d8e00eedb95137
MD5 19587c8b8f85fa11e8134c929d9f3de5
BLAKE2b-256 e7d92b20623b866528f52824aa076d7cfb33d00d4ab857bc0f87c98e132c3c41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.669-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.669-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4011439441ee8b6347edc11309d005f634c4e594bee4efd14ea4f27599701d53
MD5 481be973ab3f96015ca7e3ea15ea5c54
BLAKE2b-256 6aa355ba384468a0106071c06eee3d51682bbc3e34e2461b1dc6e035d42c3c08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.669-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.669-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 976101049d3089947473d17eb9c897ec5d231ce054db9a1aaff93664430e04ce
MD5 4dc6fbc5b348d6df5553290d5d88ecd4
BLAKE2b-256 665c306d0e2a1810c8cb79c8bb14065dfbc556cf61349d86db87b6b563b0f008

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.669-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.669-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e15e79f28f512b491d797022d7400459292a7203131ab29e862876d0b2ddbad3
MD5 b0029aaae483dc713c521dd293333875
BLAKE2b-256 08008cf34f1fd93310cebe0e81344d7db732407a341cafc650049474ae7337e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.669-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af923b923bce62ca775177b195a48a61e0d795e22372cf000172188ea90ff640
MD5 51a4b0aa0b0f09e6cb9e2e914d7fff25
BLAKE2b-256 bfe0bf971396fb6b5cd780483d74d9f5389d614fe793ac668d07ca2b4ff5c2b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.669-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.669-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a96b6dfeac3f9f8725ffcbdb63c30f00823dc1333131e0417f01de91ce383b4c
MD5 ed1815abc97d04235ad4a83c9ca8c86f
BLAKE2b-256 8fdaf83ea20629c27934ad5f795b8a80aa67562d1a614471b4fa88be7634444d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.669-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.669-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 15e9e2ae6f8a3500ad02c06b7817e619049bccf1d9e49a0e3285640df402aee3
MD5 44ea7570da4b60f9e94d0e011649cdbf
BLAKE2b-256 dab9eb2b8e28a30f99d26d7f7490848dd07cdf82d6fc3acff5cabc19d51651b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.669-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.669-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b76c4ace02be607e57582220d4dc5dcff918e6d31a900ec8b2659669a148537f
MD5 b341e97eb1074563a1df2943c14192f5
BLAKE2b-256 f512423fcbd587cbcdaaa8f6f611ef1730f0560ec5e27fbe6ac9f27b665fa22c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.669-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6e0469b9ced40952a97351f51b19887cc5c00627d72ab16b2d26918fc503b2b
MD5 1aacfd397608832a6956f57dafbc0608
BLAKE2b-256 cf11e4acc5cf180774fa2e6deea603a6b9bc6492bf0dcfa2fa02adb1bfe7ae7a

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