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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.453-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.453-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.453-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.453-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 848e20d95bc660e26b4df480b82c33fe5cdb24276db3f95ac99c790396315f1f
MD5 aa4baa144c56bea00f221125d89d45ef
BLAKE2b-256 d269bf385176d0420a7051eb1394ce2a292c945246985dc1287fd28ea6692881

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.453-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.453-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fdee751016a5a3af9e5ebbcbe71bec7eaef51eacbfdc5aaefd9461935975772f
MD5 99e407bd99c395803f4d334fab9bb9e0
BLAKE2b-256 051240e7c6a049b3bb8e844c657e3789ccb3beb06193a392757403aaab5cdedc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.453-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.453-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f8008cc72f9df95cca5e92ad25d09f4fcc559ea1e077e64f88364e934a9b3db5
MD5 8edcfb24964ae830f6bcb352822aa39e
BLAKE2b-256 a9a8b048986e0b6c693f6d36282f35edc3bfaeb783e6cd6932322831187b29a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.453-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c472e72ed1acb523e15caccf55e9a3d080c1c3aeaecb03bfa343c2481e1f766c
MD5 f8185a94ebf67736b57bb79df09834f9
BLAKE2b-256 c9fa0952dcfd55b6a92f05d2dc27760686761d7c96ace8b853d94e64e3897f04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.453-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e45c4e29fdadd5f25accfcbc0190ab338f4b43bc52fe29827a37102f743a8650
MD5 4a44eaf6acf3697716f5c30f8e0ab8fe
BLAKE2b-256 46e99392dbff1b6e79d6665dd29e658c63d5801728175c5c65076af2a8d7ae3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.453-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.453-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9ff6f9c644c877e78755673cf28ece4d70f2c1659082de3e1ac3015b8c490e8d
MD5 9b99256720096e33f6a1751bf8861bd4
BLAKE2b-256 d23903d9cb0c7e3ada8ad9a402a3ec751bb4c1c2c991ba110acd7225d86b3def

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.453-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.453-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fee22f02259ce26918b989f4b51b7fa2357ddf3eb7c96309b9a69d36f924e3ec
MD5 6e1a211db8664cddea0e05695936cb29
BLAKE2b-256 7ae1924900b18f794a96d6585a41a22ce067a856aeb4d57930b18ffb99732eea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.453-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64db3fb8b7d08beab458a5a942763870e796272abf8d213766b62a0c0ca36894
MD5 8cbdd094ff5a0ac47aaa4a27b088a1ef
BLAKE2b-256 7a86c1c217e7bb4c6c8c47e2ed32ab9b7ccdcd234a4bd6d759974061d668782d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.453-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 badff33514839014a6e25d6d5018f3c740a6935116a82be6219cf7a6a8397328
MD5 d3c3e0f6a4bc2fb3bf270936297de99f
BLAKE2b-256 eb01fc9b953bbc4428b2ea220228f615330b40b353c2f89f2c234b20ae0a49ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.453-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.453-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2ad2e425eeb520240d13617adddba83cb7f6adef4be3bfb29c217a3cdc31f2f6
MD5 021c9634c19adfb9c3a287d82c198af6
BLAKE2b-256 05fa7497552d555cac7e8507c01f9addcaf67bfb1649523fe576a527f876da73

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.453-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.453-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e29f642e34b152eb3fef4a55ef3f2f7b54635a29fb180a8f1ab18920f4408f77
MD5 706711f86d7ca7b351f76254db4f9762
BLAKE2b-256 4e57194d735e266e29717ee1770f7c26762445664a4a87411451c7e952322ff7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.453-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce8b7074bfa880ca0d80897b4eb078cd15f157b651d61df09fe482476011ae55
MD5 1bdc2b157b2faec776c962423ae7adf7
BLAKE2b-256 0fad256b8a1abbeb11fd6f4b9b30b4320dc75e9d8d1c7d8f83f70281d4729f9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.453-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.453-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ea412c1837e65c85828f853061bedb2028ff1a0fcd6af6724d0bb5de9c9a047f
MD5 64d52a85374b329eae0c2c56e8fa4f77
BLAKE2b-256 70f65de1072eff1648e2f5f0d6845293e3960fa87f907f3d19ef9efd3dedf4fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.453-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.453-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8c8fc067c09c9d90606d9686514d2f8b0851fa809a89657411518f05fedd17b0
MD5 781008fed953fef1b1ed2eb183127ec8
BLAKE2b-256 7deca7c088e1ef80e343ed36a98d902795a3d270a1af5ee329babcb969e98935

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.453-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.453-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0e6ec9698aba34e5455160cef0eb651a0743ff5ee47f507467b4157a5716d4ce
MD5 ed2d263ad2749a2efa04ab493848323d
BLAKE2b-256 4f6a605bc30e5f4657a00769744f9030dc4a60a184a6e94916f274f8e79ef178

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.453-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8718cad3923814ae4c95e9d935a14bd6d928f7f37d5d98618ed2b7c636d2dcd
MD5 06ae8b35d7e6916f37ec36e25eaecc05
BLAKE2b-256 38c15bf344b6dfd7f4a2d2947328949a916ab043dbcd41fc2a3d628c308b6a87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.453-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.453-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0856d90fcab77c814b2626adbaeb577c5f596d84d585f02308cfd9178e95d947
MD5 226702bd36921dd30a29019294e5bacd
BLAKE2b-256 267a3c57e70e1c2b1a7e4510d9886a50572a054b9d01b7241c31530ffaee4e8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.453-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.453-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 883eb6b1e63e83e99fa1e07b37a8221b4b614e8fe3bd035d901f7516b5c3e50b
MD5 40d8539e3f5f6067210bd581d0303157
BLAKE2b-256 e2f67e4b8a69bdc0c6e624b36ec8ba00f5a0fab08a2f3ee7755adc2dd65036ea

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.453-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.453-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8f87f84963d16c4fe4f32c525ac61993f0bbec291c99c39bbcf9e7833af4acf8
MD5 1e6e3e1e81bd20f048e66a783f5d482b
BLAKE2b-256 71faca534fdf483b9590888f4c5de9ebdba8716cb2c9f74d29d0772b288bdfd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.453-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 095c3753e7bdc47628f1ea68b5f496a54b6f57921e9fd517f9f187bf737cf209
MD5 3a5b74dcf590e064411452e0a3df1f0c
BLAKE2b-256 691d19484d5c1bbedec19df6060042e99286758f714b2dff6bdcdbe2648a6b2b

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