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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.579-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.579-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.579-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.579-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d6c8c0d2f51abf774a5104811cce773c1c5fe1f2b8c7ea8cbee2325c820c418f
MD5 1b6e68a7c4e208b13a82a19f7fef29a5
BLAKE2b-256 b60a2458548021bfa7103b5cddb3e69a9944f2f4f8f6985460da842f5c182db0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.579-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.579-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3d9a02dcd045688e0c99fc509c99bcf41f84409601310ae03ad08cb8306209b1
MD5 2223fe01914aca25cafcbb28ccb97c20
BLAKE2b-256 f992b366668ae28b83d87350f2b2188668d6b8be27ec134c544da4bfc302780e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.579-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.579-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fdae5e3dbc5efef72de5e0194a48ebdbbda26f69895b08115f752aa938a0e1db
MD5 d2e82b84a0558aadaef5838eba6ea9c7
BLAKE2b-256 990dfcd691fae201bb3cec72183b63320ca3eaf4ba3fce44f26080ec04a857a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.579-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 17722898e222e899dba4020f9db890408bdd6e8d60b696e101c36c4bf1fb67bf
MD5 473ab01fca0a6366b1259f63cd3838ef
BLAKE2b-256 891e09029b77441fa8f1221151ef0370fc5ce3b954c6262105d1e6259fca06e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.579-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e832654a3e21dca61a3d715a876ce961b6c5a42faa725a144db640b41ede1213
MD5 2507c426797be1b30859d00f20e17be7
BLAKE2b-256 0b33a9c2f884e64d6898090e329439ee0027092fbd57e46354ca6d398837f27f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.579-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.579-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fdbab0756aff2040f98739f716e0bb6c2ead0e6b71851030a155bd992152e5a5
MD5 9234eba0eab6decf39a44ad8c2265dcb
BLAKE2b-256 da94d834a80a282d251b0d4243ff7be537db1d689990ca0c3c6bc748b387e80f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.579-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.579-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 48e96d2f36bacbf31a4b34d0385d2aab7c7ae70160acc88c8a3ec5007403b8a4
MD5 3a186f7687af541b2ea84ee86b35535f
BLAKE2b-256 dc27617479a01e0c748f0b2e91fc32bc91651baf2b084a1f4a8d31e0dbba007b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.579-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81d682db015b4e08f1497c1ae93d98fa823c45533baabef10a350bb7c7e524fa
MD5 e4bf9c17274d1177f2cd057c09efbbe5
BLAKE2b-256 402dada89ddab4fee9eca410358b8e27c1af713dc8aaec42cd1d90bb42276e9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.579-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e243d09dd4847e9a40655397ec4879a3e7e593f2d42136aef5f2ada14cb08928
MD5 d56369f7ce94df0b26df0018d854e18e
BLAKE2b-256 75838118de1594f4dda25274d3569c999dfb365e09c14306f86c188333d68cdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.579-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.579-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 076cb4b4d495da7e376c16c9d6be9893aa4e8eb9f0374848f63ccd4a0592ca70
MD5 090b26d8dfbe6d405ac8e24fd01fe82f
BLAKE2b-256 e624ebe7870714dc4c43f5678e1248dc356a34519e78936f85dc13eb94b641a3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.579-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.579-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a7e4a3185659f7df64a682d93f3bc1458fe40c68162a45d92d105f12db87406d
MD5 7bc5a9c21d0efb9613ca865a2e6e65ac
BLAKE2b-256 068c26e5ebcafec4f7232097911bb66e5655ab21849c89c6c5e1004dfdda191d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.579-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 92aaccee575529d68dd9068d805bfecd619c46e8a1ef8a18f29260690b20f7fe
MD5 81f05b38eb3dc7ac0196ccb87b0d1e45
BLAKE2b-256 28138fcad86da0ef9fdd9bbf599eab42d9627f1a58df1b895390fd2909d44692

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.579-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.579-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 beb12ab92baaefe9d74f4e62f443d78c37f9e64c98c212662087d6f5ed8f7875
MD5 aca2d59a46ed72408890212576594a20
BLAKE2b-256 b035f891723154fc7521de00eb79cf424556d3b679708725779289b52b1adfd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.579-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.579-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ab627f3e82950fadf92f6f969d4a936fcc86e6ecc8a810d19369f23b4e9dadf2
MD5 4764db304a722aab007d689eea2acd04
BLAKE2b-256 8d24355e7942684edfa92b48e80098b94189fcb3efb9131897a7de2ef3385254

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.579-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.579-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bddd27dba219831f1967b72e0f81f6cb19e6ab89b73d9accc79691aee32277b7
MD5 ceff3398f2c30fb009ce5e39b25f5c94
BLAKE2b-256 858dcbfa9bbb4dc1d3d2a2075ebc88e8b4c0f01e2d0465ad9dcf4d53485ab0a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.579-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84d0babc8f2aa283def9e4e2be64c11366dc425b3a57eca892bf4a2affb8b98f
MD5 8903242cfa235b25f091ef2db2c21aeb
BLAKE2b-256 1c77d497cf4758bc9c5eb909b4863f3b5080e73322cc30b7866dc971ed7fbc92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.579-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.579-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 526f065537d4133ba16d1d174914b03fcfa6086b740e06ec09c379103587cb76
MD5 f0cd790e5a1be9e9053c17ec815d8283
BLAKE2b-256 e91e513f24197c1b07f915817d39b1a32d87cdccecae92f03086f54829d33ea7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.579-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.579-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 efd8905512341d7d4c52fc98c024cfb0868db02d14f4754705b72b5cc87b274d
MD5 3896e3024ed7eb5b9d87586c57e28d3f
BLAKE2b-256 29e523df74aec842f511aa6860eab02bb6f144cd787b0e27b6fb005539711e2d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.579-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.579-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ce22adf25da77a90025ec8615ba61b0a9a86586521efdb25c40fdce8ea3385f4
MD5 ae2c4dfdd578ddbd773339a2198a162d
BLAKE2b-256 747073a68c6c0a23d92466c9b92a8c6282164cfe8fb42776f4c62f4e0329f5c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.579-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 25199f205b51f6a65d15dc1f5828376b2f5c031320f755c14809d626ca4ed675
MD5 330fd148e26b14cca6e3eed412e67446
BLAKE2b-256 65f1473ee249df8afa2302732602d302b99d2a9ca577c0785238df4cb1b2e601

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