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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.794-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.794-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.794-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.794-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bd1018f23d016e52c94c5463ae92800e69829b239fcfc147685e8f16721e78e1
MD5 1c463044b23b340cb51a213d085584d0
BLAKE2b-256 9b06ce4a691f9c1a2771ff48b44c7c9e7fbebf4542bf60a3dad85aaba8a44336

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.794-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.794-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5dbea67ad545364265873b0f72583bed9cfecf8cf6008692bbc3a6b63e68373c
MD5 103aaa41eef7479456eb9867974c6b3e
BLAKE2b-256 76232ed10f0ec2d5fec25b823ebe23f3bb64a29b8e86e75cfa4dffb7eba72bc4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.794-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.794-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ee0a0edce60bf771e73f4a0ac39a634d0e1f2c57b093163416335be673d3fd92
MD5 628e8f0cddac77e7e675010cccb7f24a
BLAKE2b-256 3c17f1be67cf79d3fdd5529585edafaae93b37791a0dc2cfcf012d37848f354a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.794-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba4de3668bc82d58f90f61b2b3f0ba12de55e99a3a76c6a2ed2292a50be0b942
MD5 0b5cff0be533dc25769014f801969e29
BLAKE2b-256 0548d2b995d244285b5aad9c3e57ab3c125c323d7909f4dfdf2d9d93389a3784

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.794-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 af99145e32f7dbde6859397b1f5e2a33f393945dad2c92ce9e8e2c4999b846a7
MD5 dcf9e8ef5ce724d97eed94c3d5f3a0f2
BLAKE2b-256 8154fc566b09b15e0d8c43812fd9be7926c2dffb863d0ffd80f6a1194c03b841

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.794-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.794-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 57101c915301b20737e1e0ae643534ace8d0b1d5803f95fdbbe90e7af915b153
MD5 2a9e4a9371102180c6f6edd3c7102a06
BLAKE2b-256 dbce7b6b2296d393de9edbba10424ed5ec77e206e4eb1c0da20187db9d2644c9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.794-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.794-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4ef70c247d9d2cfd65eb9494d4cda9e6f0223e5133c6b1a70cef3dc6cfe68e8b
MD5 5922c6888d6a433b298abeb37c1dfa0a
BLAKE2b-256 54e39ba8d1ccfce1dbe295763dac425a070f248246b31e88a9b21b79071e9045

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.794-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8262594fbc01d97c00b1d4dfa6b374c181c419678c427f82749abe9fac88f947
MD5 bcc182017fedef742ee396648f996c8e
BLAKE2b-256 6b5ff5068a44a90473c262836f44be549e9b4f85c675281483ef87c84cb4ac60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.794-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 128cbadb23a59d203f06931899440a725c7f6f866d0d4e9e4028ab8218b572c8
MD5 911cdb4647d7ca05cb150c67992ede86
BLAKE2b-256 6a73c00a512feb77fd4695f2dbf1785eb2e2521b368ac312fc154d3c9743dfee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.794-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.794-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 62b56dd513790afbc0f3476eba5c73ed863d230a7f7a72fefe50fbf9479fee7c
MD5 c544cd9ebfe35cb99acb6f7ce3d59373
BLAKE2b-256 e8efbcaff4d09b297306cf5c9f531dadad9443402b4ddb141036ee38d6ef3bbe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.794-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.794-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 220943b9989204bbf2ba1ca5c45b74036067f9993a3891c531f4af2a5399e168
MD5 edfd487f9cfdd38ffc74ee584abbe14d
BLAKE2b-256 9ef25763c61d51fca771ee32751977fe7b3b65af709ab99bd0875f4f69652d36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.794-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e57367924a21895c9dc851941d3bdc9af78694accb446db8810534ebe9f1fc2
MD5 c46aedb177e8d76a3a277d22308fabd1
BLAKE2b-256 1231974baef25f20dc43e9a7cb8c1b0b8ce7d0518c8325ba4ee8467e714316f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.794-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.794-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 16543373793d57796acd5d161d5ac6061bf6bbced3af06d6070ddca0f23be9cb
MD5 80f1303e6c236bdd7872b3841b1be810
BLAKE2b-256 69ba1e2006bcdc3d53ae289a3764f397fef32034e27e1b874a686b5d99731878

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.794-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.794-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b052660327b211674b812708d288604a0c71e8784a1276209861f472926c7f68
MD5 88920da42c4bdbe34b321cd24683c65a
BLAKE2b-256 e0f0046e884ec988e0001e9c8ca57db484c00c396a0bcb49dab739af8c3e5baf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.794-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.794-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d341da79efa97a0436609cfb189052ac6688bbb988fe2a99d9e5d0143efae037
MD5 7eac811f7529c26470c181952a4b4ad3
BLAKE2b-256 a8735a6ed11c78686892287e8b8eb2884fcb4939dae8892f7064a483679dc70d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.794-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee3ef80f06aad3d3412eb3a992650575b379fb61faa37d2925d1146d857f00f8
MD5 26afc02ddf013506182f1cda6c1d35f2
BLAKE2b-256 7372d27e92ed1008d0a97b3bea42dae769e05daf3c3477960cdd75c1640626c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.794-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.794-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b17cccaaad4be838c3c4457a3312636c60c06360d0fa4463512050c182483165
MD5 da4e09f5711f3c4002b0a43c338e6a6c
BLAKE2b-256 13e4ad074ba918aeb2b68ed5a8b86c4e9945a9116e497e7ba3ce540d66b751a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.794-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.794-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c0fd98b8cf38a9d536a52fbded8f6f6b3d8c2d506f08671ee43d55bb79f6d348
MD5 91877bf5bac7bb94ef0ce5ddeb2217d0
BLAKE2b-256 f27cf140f85dbeb2ea0fe8acb354225f82e9f782297c0ff251f0de6346ccfed4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.794-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.794-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 071f6a916ba960013bb0682a7aa00a7f7c6b241c92dc847970ae2608abb5d206
MD5 dba550a594c884bdbf443d4f7a50b17a
BLAKE2b-256 8614d08508601d7eb65c0533ac1ee068431afaa7efe59f980facb5dd30e332e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.794-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a1472e0edf34321c2217d1c2fade2d035b7fdd8fb5af73ae4f0acb3952811b57
MD5 4d567fbc7bd0bff34b255ad35211e790
BLAKE2b-256 b32f2e70ae47778811b5c73562571965b36209454d2beeeeb8446c39079339bf

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