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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.37-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.37-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.37-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.37-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.37-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.37-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.37-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 19b641a1edb0c1d4469732a0dbba078bb909f2147fbb57c8627f99d809b38b68
MD5 edd7c1ea3317e9c5d083a742defa0330
BLAKE2b-256 cf9ecda98bab974ae32cfa063f3df218bd8f115fc49d38c95d1fb7e67aed4002

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.37-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.37-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 93960e1205ede30e2a7a2f1429bb366e24c8a7784cad1880830a358deeefbbfa
MD5 1b0a97b01c8db50db8e734810502849b
BLAKE2b-256 e4cef7de903055ab0ada1d5dd7b26149cd6cfc2e244d15bf43ee577f9bec9888

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.37-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.37-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7926d9937bb9bd8aca084fedf0f1e63db0afa2ac5a6e123a4198f54be7adf276
MD5 d940c06f7bcdaf6f138e5064cba0a0ab
BLAKE2b-256 8877a59780b9c9a484fed45dd41006d3f1ad8662a12ebdf5a94fce161ec55771

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.37-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca1fe8569ac6a1e768dbb6399f54537d88957cd841f3f15a2ac77f085730d132
MD5 e88b6beffce5e5fa59793a127e364e5e
BLAKE2b-256 d3a735fcea3ad954366c86acd17a3122c3fe0ceba8c38873a1587576563d202d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.37-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.37-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6f4d10b02c90da8d14c6adb0c5c0640df1ed3380ff9541a08557d1ba497dd069
MD5 cb21e5c228325d64f9b42c4d66e6b3aa
BLAKE2b-256 23c60fd0eb84335bcfbc2d0691a16c90c14ca320052de8236b74d9adf06f167b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.37-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.37-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 42f43a2150d38533aac342b718f2b2ebd36949890dedc85decf2b480cb8cda85
MD5 1d257761b23ab1d2dc484c2e3e00590c
BLAKE2b-256 e1b9aa39418e5f0fdb3fe7385773d84f08d5d5256142f1a93719d94f9d8bc241

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.37-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.37-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c6fcd1ebaaa8ef5535f44e1b231cfd29ab8c2015489df4a09474ff7713199e84
MD5 c3ac63c89b227836365abadfd84efbd2
BLAKE2b-256 3e10a2e2a5b00db11c5d920ad7aaa61147b0f1443159bfff6d318c6c949531bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.37-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95e8e9585e3f7fc873a216e52b2d24e07cb00fb17b90dda69703e0aa4a5c933a
MD5 0042dec018c7383ff087665fee8e300a
BLAKE2b-256 981298e30bdf9baaf923a8d58eaa733a0010ad0752a7b99f8099804a31e8b12b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.37-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.37-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 42e999dc49e037e330f18974d83a3e296888abb365bda632338590157724a9fa
MD5 0ae4f22f28ea9e957096452734a34ddb
BLAKE2b-256 5f7691c0a553e97d00a7b4b91f06b3562d139ce8bd81a724a1c3e9304b37dd1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.37-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.37-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f27e44f7e2f50849752ecf3c30254ea38e23af586c684edceb5798b5a4282569
MD5 47c3d789af0f02b8fa7a66b22781b670
BLAKE2b-256 5084101aa44f3d2b2cefde9bf3967ae9e50f81f29407e18507959c349c54efa4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.37-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.37-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b0c3ef69f7640ed69c8af61eadfce08d7c21d2bbd9d9a632f40555c2233dae42
MD5 df0fc1426683e01b5b21f94aa66fbc1b
BLAKE2b-256 e992247c651e417cf4690c6fa9f9b8aaaa2f3c5e4ce3208ddd3507d0ed87cb49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.37-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9842701d0fee738989760326368a46bafacff725d496aa488b5c1d50347407b1
MD5 95c64ac6d3062e3e3d793ece791ca663
BLAKE2b-256 ef9bd233fca93de1ac3f8942da94add09b0d2d56a278bac9afc01963853fe933

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.37-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.37-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3fba7e9fb5f92f94c60c0a14f37b5352de9fdcd1859733f91c8d5f481324e2ae
MD5 fcff4eefcdd78a7d85950f8d1910dcdd
BLAKE2b-256 b14c4d4fe0d4b72f8c85b68eb726d17150f9e33076c4800532692d167a27a746

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.37-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.37-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cf0be0a52583b04706a12da45c102567cfa43c6884f727350803db82a8f88c5c
MD5 c4286510f3ff61b714fa3906f4f2435d
BLAKE2b-256 ae82adf2544d0e27aaefaf0eb8e06f5b5e0b569654df5c3cfb84f391545c4730

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.37-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.37-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b870f405288996801987198ecbbaae5fd763b8d6613c96c2315183b6d53d1a8b
MD5 785a194315be05885b06481efe6e5029
BLAKE2b-256 ed9fd47921767881f64ba9bee10d5574da88164211c3dec8452cc320a76d4cab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.37-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a97929d359470982a03fc0e2b7cedf6a3d1e8935006037047867d9bc84b7266c
MD5 3f9682432c56393ce80375dfb5b1ea5e
BLAKE2b-256 52a29c999b9aeadb4b8abf404f34bb7c4c8d7a106cdd91300dc09b5892712de7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.37-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.37-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 720ca81b749464c149d3c47e4ca44c7bba515cba1fa4e1942bd7634475c60053
MD5 89581af696ce76460198782d311914fe
BLAKE2b-256 d018eb01738b8f15158e0ab1a49c95afd3e59e0542777bf25bcdee81ff580b1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.37-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.37-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 262e69ae2ec0e93d044191150661fa915f838b7ecd9d94bcdd4667b8cf0aea00
MD5 4d1a56d414d2c7484ae9f8471d5dcdd6
BLAKE2b-256 8b039143a5cb006e1db3836e2d2a51855619d919decf9cf5e93af2fc1f762876

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.37-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.37-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b5ddd1486fbb290cfc2200638e80b7c3983565390d5febfdf8252446f35621a0
MD5 6eccdc27ad31810050b6ee22a00c3246
BLAKE2b-256 ecb58df72691172d0403cc682f88133c058d754a4b1465a75c6235fdc89e4fac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.37-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d20c0951038369f755faabcc50c8ea86e36b64adc5d6b674157680418fbdb8ed
MD5 5e4040df33668ff8ee0100fd21da9d5e
BLAKE2b-256 530283da18e55b11b86a02a1182a11c896deb3924d5cae061783ece647acebf1

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