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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.775-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.775-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.775-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.775-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.775-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2967c43194c2f17aaff43f1112674814096e15632bcfa33ee63b49a81e7892b6
MD5 f7a2329ecb379ddf6ba417f16aefbfcc
BLAKE2b-256 c1ea812f1443bd09760652e22b1995f5fe243e703b6be22672841ad76cb24596

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.775-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.775-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d6ac3d6463b2a0eebd2a051bcf512beea757329449d5dadb3ee649709b00a0ed
MD5 d3c188bffcc112dd2c7f74303e382904
BLAKE2b-256 4a5fbaccd68ae980196e5a8042d9579006b51e22636473720b1417f2064ee0c9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.775-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.775-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5060d335edf85a5a9a4c6ca85ca1f5b103abe27c270acb15949927c2df53c512
MD5 4df060ec78b445ac2512633db41be9dd
BLAKE2b-256 0265d8b31a75a20318c83ba61e08e89bfac54d84fb178fefb76f4300142f7728

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.775-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4dc22fbe1180cc87ac0ba6bf3a3610df921c166a591e27e94627dfc4fd9c2d56
MD5 a25f4df1dd94599e69d29e464def306f
BLAKE2b-256 c73d47cb5891261d25cf123ed1eba91faa00d0818db0049eb33c153ba1e4580a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.775-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fae63e6015df38ed00679c9a891279bc3e49ec55b7852bdba57e6c71e82cbdff
MD5 dff0e3364aa4ed8614c6dd3fba58f319
BLAKE2b-256 e17297f9a18d16eea8f8283f66c534ee28454ae941230b2df9c502c6b8f78d25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.775-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.775-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5eeaccf20e88fad8b7b8b74798a793a828d56961df2138edc448a8bd45db12f9
MD5 aea0aafd6242edd7ef4198f81192ba90
BLAKE2b-256 272264abc37ffb4e6f0026196d538cb0e29249713774ab67ad130d8000e808ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.775-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.775-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f656a2ee07b16f30c5a9ab082bf109d96e4a03e731e4d9f74bb21e70fa0311ff
MD5 708b805d8dae188d89b0ac9436bcb2ca
BLAKE2b-256 281fe69add0c1ac0b1e54d8070851a9e549ab08adaffed7bbbfcd276070c42a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.775-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41430c38012a1d3d044190c1967ef6c0d6652ff3e841098c3c1e05b5b0c93b0c
MD5 5443445887ad5addd716b1345dac41c7
BLAKE2b-256 b7e92b9971590176a2ece994b2b4ac6fa7369691873f5ffc15a8a89bd6bd2c02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.775-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 065b541aa81d8911a0f2f21a8acc9fd56b76c49cb12b4af12945ae3e760a81d9
MD5 bbdbbc654edee4f20bb2a2bad6552df6
BLAKE2b-256 0149bd7779bfa0512948f1e8bbde92af92a2aba407090f13c1644926f66a258c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.775-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.775-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 755cc81003a67669c7bdae7a995c4845165ac5e836d30c30f487eb8289f6facb
MD5 b38ab4dd98ece7c207bac1f97ccb9ca5
BLAKE2b-256 e58aaecc73fa45011849a225a509b56220e28b7a7ead1a57bd0a9f7b31f63916

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.775-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.775-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b2bb8b604c75e04a46cf90c3d295663fc0c215069145f3a03bcdf299f1df77f2
MD5 bf220f667a8cdb0ab34c2cd018fc33c9
BLAKE2b-256 410c03aa06030d342f52514f307384a6d2aa0b3600fa909cd3b4ff794491cb6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.775-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df69ec55e49c78467cab9bd315ce4f6af313d4a34ffb4ee2dc6864c6c8b14752
MD5 3f50ebe139bf68e8c65a462c837b130a
BLAKE2b-256 278fac8fbba60ce4b859d2c63b1aa1972118b0f5d3f3fc1d9dc336f718a6c8c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.775-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.775-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c4e747222e1870b2aa2675ebc77692460bd36cd6100e236d56009235cc835005
MD5 0f54cdd9d9cfab0df0d3a5f05bbba51f
BLAKE2b-256 aed24d8af5d68e1028d397a75f6e5e89020d90c5808b5c6e68e0d01c6d1173b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.775-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.775-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 210c724077c6fba66271790e3df808a45b708a220e6e6e19a0b95cbf601a0b48
MD5 be5595b1a037f862599b32e9e0a80acc
BLAKE2b-256 849ce841a8b944fb44af555527abef214e7b998819109ae3441bd09376ae6440

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.775-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.775-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 29f251e5cd523398cf820c6d303df9291390a4fcf99367e6c41eecc27ad40622
MD5 fb5ead8f1fd4d81e0d1a4e9c64d4380b
BLAKE2b-256 1acc03583a509a99ac11bda932f83845e578f2d1b674ccfe4f8d459bfa9b9b4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.775-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7411373dbbc6248067490173a645c98ff0366e68982c1e1d4e85ecd96a5ea04
MD5 d05feb068e6ec8bd999a16c6146e79cb
BLAKE2b-256 f38ef7b3fa7e36e60c6490a9e6c444ef79bd6d4f04f2aa834fcce6b9acd93a0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.775-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.775-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 451f576765c2a882546b801c894f3238b9b220b7270d2f8c59b155b92526edb8
MD5 72aae94d38f88ce821a5e0c7022991b7
BLAKE2b-256 434aed81f860252208e0e32d0c08626241b86615760f35056cd5b7929eec4aab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.775-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.775-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 105e8e0f5f3156a9ca092548f53e68b1f9f00432778f03d26f752244519a7389
MD5 3df776b0b5f6ea69d3701a609b5fc40c
BLAKE2b-256 c5473a6999eb5f7111c765f383fd9a98008a54dcda05bb5e929f0ebad1206ad6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.775-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.775-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8e17849824ba93794cb48650c4f58dd6ba9f2ec68f1df813afa880371f574de3
MD5 32d0be44e4430f3b399417f348f44a37
BLAKE2b-256 0ce93d0e27cea5b85b0a2c477991b7d086b284a4719ca9281618bab1e3288b01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.775-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c16f4bf16cef814329669129f8b4efcab79e2d7f37d3be6cd9b5be14f846eb4
MD5 8feb780292817abdd592f4b7ba27ed95
BLAKE2b-256 b9d8051621e0c0b7b73553ab8b6729c263840723920b30c325c6565de6a3ef3e

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