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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.627-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.627-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.627-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.627-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 114146a39e2fe626ea04a5ab9aa43dff2efc281fc56f7bb5c9562484ff1353cb
MD5 fad312f06dba8c2482c6ad79895e2e8b
BLAKE2b-256 f6bfe8412642e575e9dc1018a3c820eed257362c1ee2d4cb7e229796a6c563ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.627-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.627-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bcc1f5a5443e8e0a70b3093b72364c3947069ce68c1071a2a877647c4f83b625
MD5 e01965a323d3c30501856c552199e756
BLAKE2b-256 1d411c8a9cfeaec55106022d847386c711a57063f39a66bab36a5ade1dcf76b7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.627-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.627-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5636b3072bb96a9dd98afb3f9b8a346f0eab8e61bc105d61816d96d75b37fd66
MD5 c00b45ba8071c2bd2cfda5e63060d8da
BLAKE2b-256 ebd5a5133a8de56df69d1d571f8659ad84f83e0f4825a69d7fc61dc01a7e753e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.627-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 390519abfe883c0161d51d933d678c8091019f6b6654083bb26a960df613683c
MD5 aa6d9ba32abf397042768e5d216c10dc
BLAKE2b-256 74716d6bc32d8b8113fa5726e4c70689c52098c19798514ead333bd1602235d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.627-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 043b123af2dfe2c228e290b261bbcb65a95f9d9ded082c1c56777b390a1a856a
MD5 810ca94cf22da65e9b4d7cee451eec64
BLAKE2b-256 b957faf8d093b91360f8d3721415aedabf4d83728e52916a5dfccc4f4e6d9ed7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.627-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.627-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 860c313511ad0c78038cd8a23866692d75f153443251c7149a48efcfaa72d829
MD5 875fb4e1d40eff420e5d7e2cb48b5978
BLAKE2b-256 ae44622c7efe9c2f00c445aa9a21d1d3d51e2b3902afa218a762eeeba94bee6a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.627-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.627-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 acb2bffcb78527eacbfd2bc465d3cf4176ccf9c9f838152cf9d5e0182f5cb824
MD5 6fa0c22012dedadda816d41487190b81
BLAKE2b-256 470ced1c8de8725bcdf2724e34c78f0110a127532d756e302203393545bb92f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.627-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76e57a82e80e9625d301401b39aebba8402d7541e15e5c36e5555b989c20ed59
MD5 e1de93ca876b6a6dfb8fde81ffd8f79c
BLAKE2b-256 6ec26fc2134d15c72bc2f9a73fe404d4d4cc20e13c4259838752465342eeed31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.627-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c53225c5646a5683523020f9ba803a7ddb2b989e9aad21103d463e40225737e0
MD5 55c8fa08055aa6ee6360208524d1bcf1
BLAKE2b-256 b1f0e908c916dee8022ba576913c47ea8e1932ae9dc8ec1b53fab4177fca4779

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.627-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.627-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1831b0443a408238c8b108a0312f99cb88cc9be591c2333a2eb2777dfb8af282
MD5 bad94ac8f0d76041b2ca77f00302da30
BLAKE2b-256 cffed62dab4005fdf10f354d13e9fc108afa0d9e15ab183604074dfb9250508b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.627-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.627-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 33531f29ee720902737b620e2c8250e06ae3fb622338dc43b6528b7976073623
MD5 add1d91c21ee4aa1ad0f38368d66e3e5
BLAKE2b-256 c1bc12a1d7378513cf8ba48ee53f5e4c01c7249429fa9f31076addee9a03a6a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.627-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2eda9e9f79601f7ae5457a0e9e6e55d0865bebd599516b29c5b23e73bf99029f
MD5 2a4de6cff6a37c38bd3c14d5ec38e188
BLAKE2b-256 781069634db43c53100f09ad9ff4df4a5276371e1ee8cf9ac43305cf3622708a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.627-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.627-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4330a7046a96de0fe00b0d72638392d8c12fcc198940a535bc77feb657ff1acc
MD5 3a81e8eed2b83a251560c563a5de1b7d
BLAKE2b-256 a6776ad6c241468c5baf232ee34f379b56390bd80656126f8cb062c091ef70fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.627-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.627-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 836432876c37234bc2dd479b202c001bfefefeb490a4bec76259295760c020fc
MD5 a044e1e05913116abc8bcc1a12bedc31
BLAKE2b-256 f68eef25d60ed73cbd50c9051cbce437d60d6737c66f61b26c1489fecdaa9a4c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.627-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.627-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 85c5ceb489099579d3f57529dc516e3cd7ab8be3185e44f1d728214fb8d8a428
MD5 f0250e1af898702ed43b789f3c9749bf
BLAKE2b-256 c132eb36b5851e3b09a9318d014f1688b157b206495f7cc87b7304dff2912325

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.627-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e28f60465cd08f02d3f7b88f3576ed63ac1e78e92062e9d4ea176b7017c870f
MD5 a4301f6e027b1ce80e7db60f8419987d
BLAKE2b-256 a7df498ddebe26523bcda8da5d6f4709d4cba46d6206d11cbf05d34c178e48c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.627-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.627-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2d62a5f3d1c74118fee03d4e62d2b098041e6006e68a61cb7b6ad01965748b22
MD5 87c81531eed82c66749b53fe8c420b96
BLAKE2b-256 eed0abbd2a7ede44d863282314ab4b2ef50d6fe90d33a15e7561201d0fa955bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.627-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.627-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 85246524aad06f3ff3e0755275fc2eec440c1d909f454e1669d74c970641c916
MD5 8ea56195c8e5c28dd41bdf00bfc2cae7
BLAKE2b-256 06e9d446444ff7b0ea43e5735a85da4de944e105e71853c01f06f74ecc8e29a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.627-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.627-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df149af25ed168bcdd1c61b7e03038720aa59ad64433205d0d50d5f6d182398f
MD5 60ab452628e6f9c8a1ca0c05a9e2aaf5
BLAKE2b-256 28f0fa443c9b6828afda5aea2406484f5d5bcd7aa50452edb7f65ee2d0efe87e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.627-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c76339c80d018638c55176565b52e49116f2a632e66856c82c8996069523153a
MD5 d38c1b4861465e88e1e47de458ea4543
BLAKE2b-256 fef04ef271a73f87c605f6d75a82748a64e52487ecbbc28f0529b94269c65d79

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