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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.816-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.816-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.816-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.816-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1ccfb1f3a8b53ded179e94d27ef2f7462691c9f380116fb1853419e26867a1f1
MD5 566919732aaa815e3246310ce11aa820
BLAKE2b-256 b6ec7a7e3bf647de87e51aeafac6900ff48b3e150bd18db2ab47e8cb782da5d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.816-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.816-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 deb278bd8a08e0634e06960407402bdeeacfd0140e84bd31cbc7c5c00e97edb3
MD5 0f1c10de25fef4091b7bfe8d51b1736d
BLAKE2b-256 0cad3f6165e690d1eab010888e28648fe0ee3dcb6aaa0810fc0d41b64db4fdf6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.816-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.816-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 953ee963515eeb984c7925341e8eee3657195085c165e11b27875dea0a44db5e
MD5 6256cd1de532cc12d6d5c11aa7111881
BLAKE2b-256 40564014cb93994560eeefe7e27d0c6a4075fa9d23aa4aee97eb2f5235d39e5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.816-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a888190dc1f552b6ac3b5f1a203692ae7b68ceaa841f23bd84582e08e0ec230
MD5 4dfdbe88fdcbb7e57fd5630f2f6df971
BLAKE2b-256 64cb1b6e2fa266365a99e468e731d70c58db3901cb9c289bab4e54deae992613

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.816-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 25bf3f9812a65cf0ee84a11d19df8a8b388a1cf5919b0fc489cfa813598f4427
MD5 8e38aebcc6427989579ee85bb65b47a0
BLAKE2b-256 66c28bff390519e6106027de17c3c826201a2d40459280dea7ecd42d41ff8656

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.816-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.816-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ce946be0e42ac4b44186ddaf6e2c18092ea74e2f0da3aa441e7fdf1a7fb22fc3
MD5 7d7484380e2404b655a21d6002a2b1a5
BLAKE2b-256 8c3f5f83a84d97be3f3b3f41fdb56aa6c77cc2a0120e63a4b16bd318e574ba8b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.816-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.816-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 11210ac9dfc7e7e53a319b886a55fcb311001e3ff12a46ec3fe80016a4bad6e0
MD5 b3823e7152ead0d0bbb2301548bc7d47
BLAKE2b-256 d8a12dd8b0f6c079d986950102364603ac53db8b3807e761c2fe9ceb1eb41dc2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.816-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 005f44a887f3bc612426f3035ee75989b92b68cfaef834df3b6dde873b6e401e
MD5 266659af3d39014387f145683104eb3d
BLAKE2b-256 34086e6b282bda8913ee0395d644a50bdf2cb6ad88548d25459d9ba67ff36a42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.816-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bf3f63614c4d4ecfcde2c3149ceea572a2bb391d56b78c8012c0beaeafa60ddc
MD5 65f8ee90d30847e1756eb1469f0b6deb
BLAKE2b-256 fafa0b084050a9c9b0eb44a09446ea2c26dc95ea407b35dbfd699f42c8217610

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.816-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.816-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9610c2b0dc56161e4b59d7ff4b34023532e1dc89f34f62e9d53ed9421279d0c2
MD5 d2e505b3a6731e62f1e8c98d73599ff4
BLAKE2b-256 0d4d491588d4e1dc5884cc08d1f1388abaea7ee3af363fb76ebf419a56919d01

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.816-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.816-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7877f927462606d25014c8662634e928a43b4b1eeca7d4edb0b4a383dfc606b6
MD5 b77934fd4838fcc0acf7128e4bc0d67e
BLAKE2b-256 7fc482114cc792070673ed2aa20aacccd09030fe617500304e81472e2fb8e4eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.816-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24a2c7fca3386c11a42ddd81de5e1f1f0bb34493a50484156bfcab4f33c4197f
MD5 3f2af3e05652a4d9889751c96eb53789
BLAKE2b-256 2c679dc993cd4333d0c2c65eed25d353cb270550868b78e232000cd101f02afa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.816-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.816-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7268b541e4c7dd76d7615c8768ab8bc8b2623c245cff08349b2a095a5c45607d
MD5 90211c9cf40bf78b96515989b4f3a626
BLAKE2b-256 7a15f9eff61b15f3e9d84dc1852eb4e267562a6f705b30ea7572afcce95e6ebe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.816-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.816-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 04ca8963e47273add0bcd21b5432e2b5ab04db2eb95f38d2c4cf82e16eb36346
MD5 8f74ef707a30d57bc1178843d885290f
BLAKE2b-256 6e2dc0e4225a150fc1f20f981fd17b7f95e80d1e35af87d53d516904f2819faa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.816-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.816-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e26b835415fab105239999c0534beea163d484018924a3b62b49a21642a5cf73
MD5 0844e90a6bc2f16b1cc7fd9d7bb4abbb
BLAKE2b-256 25b5b0437802c6b22bc2f03e713db7925b7172939cc984091b327f587a419a50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.816-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7372c547d96fd0814eb0bc853ba58bb2fecd2f70599b3b8789854a7bd868940d
MD5 5ef1890bdddfd6f12350044f5db96e28
BLAKE2b-256 1548fb4305a84f6f047afc26e9e52ad304d65eea9f07774e3e47ebbfedf02c4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.816-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.816-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8c4a8ee8f6f0aa33b11b5ef78bcbe1235b20164d4a96ee12fd32e88060f49309
MD5 5b7436c0af9ddd377e5e10eb9deeaea2
BLAKE2b-256 11d9dce77cb3710b7387ecfb566f98d0bba98a25caeec53c514fe240e4cbf894

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.816-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.816-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4dd329505e2dbb5d02c41a863f9f340145b053e3ed620fe81d5d5a477d60f044
MD5 ada5f169ed61035e4b42e65e9a6267a7
BLAKE2b-256 92a3963d91aa2881c038b69c3a87945abf76e844ffde7aa7f2b7b75cb07ce4f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.816-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.816-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7d64368b47e45f88a3050a1289c72f0b7a12c24df83f40010af08bc1c4651318
MD5 c64e3bbca18b5ed8a01721e4da4aa90a
BLAKE2b-256 5be5e05bfc15ad33897ac5e989c19da8c27878c85f4f52ee84d58265f68be55f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.816-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89954d445f5368468494ff78d63281f73038cf67f5b313ee4c52529cc0ff62ab
MD5 d6204ca1619cf70609da8b757b2a40ce
BLAKE2b-256 6845b7a7475936da0a74e940a9e872121a1917f669f693a8d0782190e8b9eba8

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