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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.185-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.185-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.185-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.185-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f59bad3b0797dfbf2af781c26c7e7099174518b7fb8672b9052a97e5cb39dc1f
MD5 6dce3a8816ed589825ad251868caeef3
BLAKE2b-256 545e72304ec21bc902b72c70457ed27fc1004b00c38eff3a9e679dfa76c39981

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.185-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.185-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 efaa2f43a6be4d9d0b435556da9978d1ea40be160251b59931f36583bc26b5c5
MD5 d8e202ae4c8171b4d76a799792d3620e
BLAKE2b-256 2cebb9623655d78bbbb404c8f99da859591756aaa59f40c4fdf17886a96dea2c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.185-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.185-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 950e6dc6f2408144cea882c1db1e463dcd72524aceabfd1e5e46cf62daff07e0
MD5 d62caa517214311b94396353287f723d
BLAKE2b-256 63090a46ee544dc5b807a97131f6c3482ed6e326deb32cf6c520ebeefaec924a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.185-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 937f13d50d75766bb926602cf230e16a405c4c9e519d643313673b94530dc5f3
MD5 0c824b1540978996c6dd3a4faeb93734
BLAKE2b-256 df988988eeb4a28b6b31cde1f6e4a58961133fa559cbd46552dbd3952268ef02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.185-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c50ac2c0eda5768d641562c9b51b3b45d79e9a3945cbd4d105037fbf1220a901
MD5 3dae1ed484601d1014ee1b7a6874974a
BLAKE2b-256 cf72dcc84809844a8373bfab9c018ae06eb082348e205c5346d85194d88ce6af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.185-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.185-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d1f8f9667e595c5fb090f2f69bab902d284b4097d2482b516981b2aa37819f51
MD5 61f35e7d0578bf9a66b5c10d02eff378
BLAKE2b-256 1ebbbb1968e3d26abeabe7cc7d182adfd10892b2c21b5fed343a7b28b062d17f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.185-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.185-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5e3bd12351321ccd925be1f6eec4faed66bd627268bdd9472cd3d400422745e3
MD5 18046e28bc9bf585a46360da1d93ac4c
BLAKE2b-256 0f3beed6259f1d5a40da49b0e645edbac3759a8ea3bd322cfdf00c949c994d4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.185-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79bccdd52e765779dfe4af579a02f2c51400c8ebcfec137968b40c4c6a927d18
MD5 f6f3bb723af598e390bf1f02256ead15
BLAKE2b-256 87c6857f9300952b17ac1e18d9f3c39242b5b470312e39d91be8a7cf37241ff8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.185-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 733ff482994ec2b4b9234faaf3bb77257af326aa26cf7ee75accf723779d15f8
MD5 eca46a1491e588caee81438a8a5d5565
BLAKE2b-256 b17c2a48a0d6e10a92d58df8d2a7098414c96a668400b5639420a43227d8a6a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.185-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.185-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 682acdd60da627540a3f2fca15fd148404dbdde4aa399ab8243d7f2372046216
MD5 fdba6a72f6151b5d93578bc19f31a04d
BLAKE2b-256 c59f2b42633679f88684f13998439546c4df20d0509106e3539f5654aa011cd5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.185-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.185-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b1c334af967568695fe7eff1dee8690e4970f326359261669ccfef6904e2431
MD5 320d80e2c06c9854ed73a55942f36534
BLAKE2b-256 157e329ff3707699c6fe850962d0b6b9ea7e2ca2f7e30d618df0212d663c1f31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.185-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f2d60ed7fc5c420ddd6b01019f8b3fc20fb1d99dd367f2d67182edc37a4a219
MD5 f4601a8dd7529e201ef03fddca7f8f4f
BLAKE2b-256 f2546b7d9f04f1ed8977031846f5c919b20e3984a33b510460cb39dd24d6bc86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.185-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.185-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 971aadcb9bb881d42aa82251bf4ed0779d101b2ba6821a6c6189408a99e17fd1
MD5 9c0af3aca6d5d7ba3b9831e4657a4b6b
BLAKE2b-256 044f08afdfbd195c61019353b7817de8b4f424167368bd2357a58426798b0a0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.185-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.185-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 30b48aeda186e1f3e49d1033ab14258eb9339fae8c7e5e98b568b43cf39a306b
MD5 9d57897b264faabd6d58bc568ec01c19
BLAKE2b-256 b9fe7ab164c5a7b85d710294bcf4a7d3b8d0194291427b184e73b109e9dc19f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.185-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.185-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f89d407322d94ef5873fe27d98eb7656b3617a20705e7365623180da257ddfcb
MD5 6ac2ad142ea0a3a8940e4ec144a4d440
BLAKE2b-256 60f5a2d1c0b4780771def66ec12ffe87884d859f713759ec7a78b07244a85416

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.185-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 134e2c8d27ee7d413f584fbea998c086c14586c048b62372b2c135ba3d23607f
MD5 875768fe44f8a0da07c96155522dbd77
BLAKE2b-256 4eef66ca251060390ed9048f6d25a1c5b24134263bcbea946f43562c50264530

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.185-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.185-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0743f9c35c9e9122b3ed1a008d6d0895571b7e6b10bd552768f7c11ebf712177
MD5 1b6dcc38628364c11c0f1bba697492d7
BLAKE2b-256 37dec9c17395247aefec180c4d9988a4276f36b8ae89fd1bb6ce509788fc2ec0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.185-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.185-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4c28f61888b5130e41916b7e43f7817ab0977491855c5f8ea8d72b71eed21bb5
MD5 aa1ef51987ed72e193b6de30f86014e8
BLAKE2b-256 6290d289d09e002a3c7a7c0ca862636f574c612577d3686172fa7b01d5a39e0a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.185-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.185-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 766b26874f405bb220f75f8106f6dc6136e17f0b0cff10eb85c621afad22ec68
MD5 e4fcc56667a75eb674e999a55c1a0751
BLAKE2b-256 36e12c912dbe4fcfd5f07e852b9ab914a89b366fea2ba03abc9798cbdbcea71f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.185-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7fc9289ce38ed6b2e26beb8f25e8498f77d71b1303b51c5c277fa0eb7f0488bd
MD5 1b0c0e7165792c222bbcea6b82350b59
BLAKE2b-256 59c8bb6769db8ebb846a8643df9252ff3e278b1c8c12bf4f79c8ca434c45ed68

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