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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.481-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.481-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.481-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.481-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 298b6435d6194fb79d8284f29ae69616bf0c198b0f38ed2965fc1eb0f20f6df8
MD5 da1587abfea5a5d48580521d7097b201
BLAKE2b-256 f383630b1c40a87bbda3e75dea873fc29fbc06be903670d9dbdac5a0fb15389e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.481-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.481-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d749292befd302b16d7d90ad94a72542c28007db5c2223364dd545d50caf587c
MD5 ad6f3949b0a06c3d3107b68162860cda
BLAKE2b-256 ea63fd248e3a572ac1888b04d8dcc139f375e0aeb3a21c9b3f0c4afbb01de568

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.481-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.481-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ee8862ead1cd12ba4776597c2b4d8b9cb089b6b48cc58fa77acbb02f8cc73d53
MD5 d56b8608a53a0cd531552be4629ab3c5
BLAKE2b-256 8ad60dee6cab30f564bfcc27e9b598159551b4c6dba0759368257126f4b5ba3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.481-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc9952ecb2c74324db9f727df4a2f7c4a3e240973587e069afd19089c59a3ddd
MD5 5d12658a046825e800358820aefc7ad1
BLAKE2b-256 6c4b70fb3307793d97d19a04f2245ad8125f365e7fa5bd9bdf7fc590cfcf8e40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.481-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a9c4ea3e965e5afec354af2c5936811cdee723b3e1d227c14e5d8fbb64dbdc14
MD5 ce38e2d97f742b0496777c60ccf20587
BLAKE2b-256 a2a9995c4e9d304a6a70fb253d6d981a2c0fb2b8705e4685d0856d2aa94d1349

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.481-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.481-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 886d47779aac95abae48e7d6ed18c6bec59e0eacfd4a5b6539c79b6d1252983d
MD5 dc5e9215583d1df07439631231fcf35f
BLAKE2b-256 e8f26b5f3d9081a599ba72cfff98ecad485cf72b6d532ea0f2622df59077aefb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.481-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.481-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 595a360ec6181968922b41cc10a326c863caa970396e749a3c7ae8a4bfdd804e
MD5 0675567d95d54d734531c5e99b138aba
BLAKE2b-256 a69fd147babe604c2b3684c1ffd3ec55ddb622dc21c8ac73d0eda96c188a744c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.481-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec16a9555dcb0de4f6bdd828a6cde150354ba230b5b7ea91848f81d7dcdc764d
MD5 2ae461053885df263dde1efff47f0152
BLAKE2b-256 de9f8d62db423d6761667a6b8f90d32ff0c670243c87f0a233a8d25ce2199582

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.481-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fc2ad17cd6cec3a94d4967b951c168ea07250fb43e8c098d2143f650aa918dfd
MD5 5dc9b6c1f5675504b2fda89bf89e3ee7
BLAKE2b-256 941988f88085e0685468dd04075898edfb6b581cd93ba1dd6f46f3a0355e452d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.481-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.481-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3393b7c5545c3e2a9c095f2c1aae09029f2d385fe692bacc8b1a42165477f802
MD5 33721e87b1046de26d44a3a4efc63839
BLAKE2b-256 56dd77b43feb4b12805d0116961c24090bc90a0c6f85f8d7f92a35e1daca409b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.481-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.481-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c849cd7c6b19c5859254ac1075363545b7750f0383013b12d2f2b20c338f70c
MD5 f2bb1547dd2b4a2e955e90dbc3ec6f9a
BLAKE2b-256 5e38305054f370fb4065f724a9714f7cfe5f9193498d0558f09b6e8b43940f42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.481-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 368ce9fbd0544ac37becc12bec4771b1ad5710eb756adb5fabf41f5789d4c878
MD5 e9a22001f3783fabd0e046f413ea9ace
BLAKE2b-256 ef3f03511ee5d306b93ac13e78eee22fae8fec1997d22a84ea96a5665c54483f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.481-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.481-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1ac14eb5ebde5bf10560a129c2d46910ba655b80789f76db16648b9b671d0c0d
MD5 a2d8c54430b9289fe9cd2955c7debf5e
BLAKE2b-256 3990f5b89c7d8f09503653e1b903beea904edb9c95cc0f81addc0766549d461b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.481-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.481-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 198bd0682498c240007425af448f47a1089dad3de7f51d536c555cf3b280d615
MD5 d2cb89968b277b0399da207191b177c1
BLAKE2b-256 7d0f4ecdafafa147095272bd434ba17c25b8793be4c0f281f154646eecd99116

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.481-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.481-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 05d52cb27b35454d0d525d01e67a5fcfb43fccf9f71ae50df9724d4db2486f72
MD5 c509e3d97c188e7142d2bdfcdb16283c
BLAKE2b-256 492af4e6f5fda17b8579eb4b651aca24c48e51e6ea44247ab3b883a34549517d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.481-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e9a10edb11ade4ba5abdcefabcd03db22574fc673137a47f4be7e8b0be5e50c
MD5 f0f3d131ec827ea7c30e107705266d8b
BLAKE2b-256 2c026485978e5ba31a693ddded721532eef3a0d4b656935e5b192830eb346f23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.481-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.481-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 93df805a607a52d2a222a02b4a1f6ea43dcb7103156b967e5c3bd71e1279a02f
MD5 40d14b4c6206e0e1e6acfca7d420161c
BLAKE2b-256 b1e1c4435267208a6f4b7a0c7c8595370965343b0fac882a6315a223fa84b967

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.481-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.481-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4b1e7486d98cdb3a60e1fea0cee103c1d991cec7725bc0bca31c0bd5b2c19737
MD5 899f6a2ae959038c4edee517c2856943
BLAKE2b-256 f08f66c10179549becfca019f25044333ac4910e5e397f19e7ff6e33600b56a9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.481-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.481-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 33533275c63f49c8143c39a6efc258110255fd6d62e8443d94535038bcd4df7c
MD5 0879df2cb99437edf50e26c43220d823
BLAKE2b-256 63d50c2215044e015b9343c0983c3c3f1af7da0d58c427049997645f1bf27cbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.481-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 935f4ecd24dc17709e662023fd40ab1cccd8ad2a7d2df524efe81b073cc35e97
MD5 c139303d060f8dc10049ee242ac38a91
BLAKE2b-256 e483f00d86bfe2dc973c29c617417f65a27bcf811bba324e401724bfae11249f

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