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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.824-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.824-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.824-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.824-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 83bb04d2b9113b795c939e1c157d1d6f8b337167f48afc907cd886f0c368ee26
MD5 52446f46d4cd02412d2d24b18635483f
BLAKE2b-256 71265ae361fc07def4991765bb6fc68305b3a516fef63632e2839bff85702196

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.824-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.824-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 dcadf02b74073f22f8e2688d07fcf1aa63bbd94f9295f9b78e3290753e017983
MD5 d4892fedc05d128603874b2932f06cab
BLAKE2b-256 5588be39dff2211876be36db20c64e679854419214b3e3d3eb031761d0c91d34

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.824-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.824-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c0d81ca9cb34189426ca3fcb1ee86873bb872d0a96527393dd175a5b80e69886
MD5 8b479718891f4e7032deafc04751ac89
BLAKE2b-256 628b390930d8b2d871f20a478ba7f871598ba7fa5691c8b618ad0a8b105ef949

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.824-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b742b49b1615ef50e24a69a909e5c27459c82e428d335a9efdfabcc2bb15f890
MD5 f353b5150629b1cfa807beb347dee837
BLAKE2b-256 f37c0d68d8986ce184d7962ab2574ffc935407b0ec37a27ba954eef9be52280c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.824-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0a174e5b27a350853b07e6c885355fa3e8ec7aab38da86a135814d3a54eab715
MD5 9f21928937a4ed1698e5354085be64a6
BLAKE2b-256 055fda375c5be063ac4e99f0099b690d4231405c7ea2b9763d5c3a6d236d85c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.824-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.824-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 39d449c3d4e0306eabd6aa288483b5529823969bc2935ec1d3882d9b5c9f8829
MD5 1e5dc4bf45223ea11e2dfc17a7caf1cd
BLAKE2b-256 719235a54f22f558fd7cc2ed96f794b63eff31a73190049e8fd5e7b1b898523c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.824-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.824-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 46b07015f8c5ed567c0526c4afbd0e4a7505222af387836beffca8ed554d1c70
MD5 2eb061dc3f074abc3499484e62fc77ee
BLAKE2b-256 8b7e31a426e9bf8048a5df6b9d9fb829e24c10b488e0b2176fec4b3602ca2ded

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.824-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a068485ad76a400deeade58fbee0de30f41000f37c9419451d2fd3d80ad5558
MD5 b5372dd754f4c727a560413536e1fe9c
BLAKE2b-256 5a27d1574397b67a27e344c0254127538357a49a4e538583af71849f700035ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.824-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9b553fdb7ee1ba1b589118890720c6b25c1f14269a2cef2c23ddb44275145738
MD5 ca07b8d16ebf37ed2840108809e7f4a8
BLAKE2b-256 a1427572fe5dbbd5afef3b55c8ebcdf4a009538d56d2f7a4f071ed4f428b8ea0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.824-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.824-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e84e255e9fe224107d30e84c8337c2960560e9d80d3e33fd8044207d32ea7a05
MD5 3da3cd704dd1523f657e84d562f88262
BLAKE2b-256 3dbf5b9eafbf4100911ce9bd931274782e6d6a1c9c10aabe586460e75a740745

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.824-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.824-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9b1c36f6112569a509df540e14cfd5ca244a07e3095f39d876344d42303a3f64
MD5 0a88cb65a4070a249c0f6b0bac698eb3
BLAKE2b-256 dbd89abd7f7afcc647907d4225c8bf0058da4f1b4bbf63101a4c3f79861dc316

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.824-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 405ae1770e1e416a06a53b97ec0be59f04054de56e99d20d62f875d4cfbb3ee7
MD5 9b116f9e343eaa31a967ab0273899757
BLAKE2b-256 2eef11841ee9b71938c9a6451a1548d0068a7c02f121d75b0b1c78b665b654a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.824-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.824-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 419a8c0704e61d05e22b29f9ed690f0bb02cff990a4d822d811a2fab14eebf04
MD5 07991a9dc01abb608d343e270f5e571b
BLAKE2b-256 7d870aabf43fe72de7a18b36ce583f1fd1a97904ab52e9782f8abb4482aa6804

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.824-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.824-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8580f5d26a1a2b92083c1fe42109bfcf1280ef2add05bafc425dcdd36768f8ef
MD5 e4c383bb753a75936c7fbd16a636ceeb
BLAKE2b-256 77fe45ca4f85c058adeb1cd9bdf20fe870dcac6fe2f7d789066c2775b38b5998

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.824-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.824-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4fbce3ea622edba861057c970728ba136aa157f20020b88b0a3081046d87d12f
MD5 7810488c76c9325e317b672df794090f
BLAKE2b-256 581edac2a31068a81a40c136bbf4e85f9d53956c6fa148adcb50b5affff1e115

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.824-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8923aee5427969b2ad79b0c30f7e6426a4d44037dbfbfc1db211ad61a98edfcd
MD5 fc303e5dd56b5bf813f736c1b001680c
BLAKE2b-256 9b39ea7587521b39c5203044d1b86e629a1f8f1e281d03a636e5b4384cdba670

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.824-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.824-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0ece348f4dae913af78f39874ccd5491b3057ba8518eb70c6a267a64dd93ad2a
MD5 321f3686d2c5d211dad89aaa1dbaae3f
BLAKE2b-256 88f2510c2aefd54ffac13944033819e4d38deca62a280fc691f3569c74a17467

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.824-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.824-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 793aef833b1a6209a5b9b1ab2d8e91b3afca7033b2956e290acaf77ca1186c0f
MD5 7f66c5b584c7a3b4dd2bae5eb5c5aea7
BLAKE2b-256 3b1e5107f746e196708702f6ad507ca882a595aa9219f810b0f82281336340b5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.824-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.824-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d64bf6140dda678710dea83ea7aec4681e1c955b8f4766084d4673af20c4568a
MD5 1326a11c4f8733032008b7ff3f85acf9
BLAKE2b-256 5269fa8ab927e76ed6aa3cb787b07e3627971cc63ba8ca38e8ff080e42d14b81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.824-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dac876721f137a2e5ce32b6ce265c070e641f9e3e633103f6e55b105362b03ae
MD5 2ab9dbfd0ac49e296a961ade68702b25
BLAKE2b-256 39df44f8c11912b28321d4af32e43e69d9e649b4b9235f8680729aa0b4d00247

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