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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.694-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.694-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.694-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.694-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 66fd60ac56844e6ac953ff0aa124e1d7fea89e7eba08c0a60a938372cbaf93f0
MD5 aaf7dd24c42a282862c9b230a44df4d9
BLAKE2b-256 45a791ffb37f610d81c9f1ae9dbfde392bfa63fef9f34cce16fda369cbc37566

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.694-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.694-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e5fd0e54d64f117c9b53b19fef32121591ff4fcd1d27adf73dacdded69aada0c
MD5 092479457911f01c3e154b846eacbbfe
BLAKE2b-256 aef8185b7558c01fa7f1743818e5995638704fc13811f8924d5786e785bc192f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.694-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.694-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 269e0f65c62fc2c61d5cc09284b9c8fe921483fecdf6b59d94063ed971301662
MD5 0c6e5eeeba1db0cde4a19a8bf75d4544
BLAKE2b-256 2806796252320daf8bf726931685b8d1b384defe3eb198a08d49d10bf1d6a34e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.694-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c18a4a35a368893614604aa6aa0d85ffe5aaaabc29da136e36c99b268c1d944
MD5 24172fbd4bff3ecfec859520c9020a98
BLAKE2b-256 28121345541b9bdb20124b54eb91f170465f237021e9b7a983bbc80ea0a6e66b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.694-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1789cbd511753fd70a3bc8bfbab080140ce6dffee2db842ffd5de358c1d58b0c
MD5 95db7d82f28b898f62ebb68205bae1f3
BLAKE2b-256 f97a816463c09b15b51b7844bb8816d856d9a6a07bee4516eba4f24ebbd380e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.694-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.694-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1019843b56cfb7a24b0c787887a10b9fcb05af86a07e4756643fac006d31a8f5
MD5 7f2c82ccc8f88481c8a76715d5eefea7
BLAKE2b-256 810196000335e294ef6f180994f26368767b8c1d16bb5114a1a65a512aa3f231

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.694-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.694-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 456074f02b4c00ee77d454fb5dc06b998640776b6489b04047d1cbc0e9b2db5d
MD5 af3931ab4fd0e5c7c145372a2046838c
BLAKE2b-256 e1c9cbf03bd3ee8624dde1ddeb703a1cf65f2930df703976fe282fd4a5746e98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.694-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33eaac42d7e7c5be340a5cd84d4e05cdd977be8dd2a8caeff980164dd2238308
MD5 4ff0c4de137708e1c1245c65d62a2c47
BLAKE2b-256 2bcda1fe97c5b1b23833b513cc373da847b5c347f335109f6d79187509c2535a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.694-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 eaad4fede3c1052fa03f58eb5e416c8efe7fde2e8f827041b37a16b2e84da111
MD5 7d9dc94b4143977eaada60ff4448405c
BLAKE2b-256 025c3e9ffe947cb3654c07a88a2177721a36f1c6ffe88b353f60cdb70b18011f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.694-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.694-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d2fb33b6f6c781c0ae89c926b3f8550f16bfeaac8c287fc2b999c8dcdb888101
MD5 c24be12ebd4ce1b08bf4d2f26582f280
BLAKE2b-256 934f0083b0f7eb2b491dabc0220aa6883154bcf5c56cbad820605efe2c4b56ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.694-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.694-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c589c3d42f64226f9173e5dd6f55c8d45f7d09dd3db753f1b09aa27e2d5dc7cf
MD5 c75fdd79a87a456b29c0f26503a407ca
BLAKE2b-256 efc5abb755944ca8960a0a4c7782850b9dd894e974bbcb8c17f88329328f1bce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.694-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d99c45bf1b31c74334ab36a4f894aef371da19e43557aa89646239fd88e27509
MD5 af05adabf9e2f0caeb07839af0dec119
BLAKE2b-256 dc02bfe0e96cee09908a779795e8a4736c2a335b79152cfa434ff62267227218

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.694-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.694-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9ab1b0ea72df53dd1d4a4d93e3eb6f7f1cf07de0d77bff6a93cd7c47bb534965
MD5 1ebc8adce386f99ae3fea06859836da2
BLAKE2b-256 7cd06b976eb32f02118a6efb15b62a4d744917b72086ef43a7b4da0d2b207d75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.694-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.694-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5e01e7575b23653963199c748c49f4b36af1afa778ea21575b3d0a8de3b6ab1e
MD5 957956bf9c2a0abdca85b3b10ea3c719
BLAKE2b-256 5026b2869912608a5eafe703af33862cf12413459d6f59fd551c0c74da2cb163

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.694-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.694-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3cb23d54cf3c5af61edcc4569b96b6ea5825e3c3dfa925e48dcdaecf5377e760
MD5 7224425a4064d4dcecf0ec7f85a89102
BLAKE2b-256 de266e909e45f99ac0ae67ca20476f4d42b4638c04a7e328d75c2314f0c1b894

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.694-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ae8684b7d5e742e64caeb72ea43a9e8ead7972568dd77941eeba43a4626aa1c
MD5 35ac26df7d6c6b3fc4b294999c2fc266
BLAKE2b-256 0eed5c192eaa6056e5d08a1d911ade2e6c9786140ef455a8115609e7b1d404a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.694-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.694-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c8f262fe88f039d7edc2c07acc50f1561236d686ecf3cbc58a7497293f9b9374
MD5 0bcccd75e178cb15c1e31f70d865a42b
BLAKE2b-256 b2772e94909acbde655bf3005416a729ee7e2a482afd65feaea9f06c84d26747

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.694-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.694-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fcdb98f70ed80aabd014d437c4a5741a1ec3448dcd86ed59aafc492fff2ee339
MD5 5cd6f51d2d8b40b01c5a3ef202940d46
BLAKE2b-256 5aae77a059c0adeb7952c643b9465453dd5a611ecfd4bfcb51b2a205c2ca63b0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.694-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.694-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fa70e42d5261bd7a2b365127c376688fa7499d2ea06b39e729118da16fdc018f
MD5 986cf9358f4a245ca0b2c05885fc517f
BLAKE2b-256 de11e099d42b48467b0a90c917535cb29884695d72101fa8f5315cc5068f0f94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.694-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec6f056defc11217238c2f188106e977977f31daa1cef67af748a642c8543158
MD5 e3eb1d0d9cbab706e05f5d1a7ee6b7bf
BLAKE2b-256 131e422c124ad95e42eb8efea844f19d5f379a3e11b9a90c3f530eb202435b2a

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