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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.435-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.435-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.435-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.435-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 91456d7a7cd95db6e8769cae79c2b8a687d2a478ac246a8ea2ba5ebbea9fa51a
MD5 a84d50c20c1c1dccc3423afec14e1125
BLAKE2b-256 d23151ee734f1fbba939c0a4fc5ac9603b59443c76bf1c22e7c5e627ddcce1bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.435-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.435-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ccc4d4672d3070c6c080fa37ef871971e4018e164d099a59a45fb92b6b98f7cc
MD5 bc6b9d8e469efcfc8385b7e88fb89283
BLAKE2b-256 4e3cb7af29386f718812e2be9b85a1f78a45f292a42d17522fe5eb1c1857b8d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.435-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.435-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4816a2b4fe554b1d3709f2f0b96efdf3f2dfcd47e5db3b5811fa01d3c60edd93
MD5 75dfb950a428698dd252a70060ae3a12
BLAKE2b-256 923f2cdeb703ce32e7085d3534761f87c99181466430204d0972075d33b70a4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.435-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 abcc2878c55440bc2590f585b74ce40c1fc6e1339320c83e687d98ecb1c5f53d
MD5 9cc9a12e8e45cd75a2509ee80cc41a5a
BLAKE2b-256 2449dc15a4a0141b300503bab2ecc00819c1f6c96c71cfb5047329a37a701d67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.435-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 541d0e32562dcf5be588bdd906e1f5b61b3755104ae3f9679cc82df0813757a1
MD5 92bf65b60018d4c6fd0f1127c5b77d8b
BLAKE2b-256 203c0a2c2927281a7f4d6b3e35f07f1cb59dbc46764e39ad025e9c74f940c2a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.435-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.435-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 795c8138c81d0cca9b702581aef25efb339750415d2138d56e9add47b03a3696
MD5 ec39473a8d3ed3adf5c1b6156a49d669
BLAKE2b-256 f8b049d0f0c914297fbabd7e08bb9ede18b1708d977f13b9ff79b8090784df95

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.435-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.435-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 597bbff0a57f1fef3c9227aead9619bdc593f92ae9efe22d27c9c492a7203f1c
MD5 3777f983da3188032f06475c74f227c1
BLAKE2b-256 859ab5abd839ca12426ef7cc8fd3fe6aad9f114566948f2193d986ce100f1f2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.435-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3391119f9cffbe4f25ec5989fb616c676333803abaa93b550fab4238c75f976
MD5 2846c63d5959b5b2c60aa574c94055b8
BLAKE2b-256 e9ad7fc1d4d4eb4baef8c2888cee4da6e5de2308725f7ee4183a9070523f2873

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.435-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cc863a8411bfa732210e7e69d38dc61f2105008e96721b1afddbd903aca4e090
MD5 bfc954699205bb0d5678cdbd28d3e718
BLAKE2b-256 26f05177dcf6a49cb5216ca46da6d61d42854ef0c1e2f627c834e59ddf655748

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.435-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.435-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 eb3a742275ffcadf68740f79b0d0f36cb2ac16b18af16bc3065112efb790ade9
MD5 5afb7ab9801f11c84ece74228e42541b
BLAKE2b-256 0a51847100810b026c572eb3f85b41a5dace97c56cab6e6a556bd70d2c3590fb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.435-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.435-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d0e67e9dcf1a5fb4ac5b711f63733544eee4f0262db12b3dc9f4c27691f8df18
MD5 6ea8671535572fa2c669b28ec68b968b
BLAKE2b-256 59708a638816dc27af751c4d17e80f75c2f1bbc807820301f655d8c430b5a0b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.435-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 923ad59095d6ef8946c3aad0fe0bd79f3064d99c2d98ecf5fb4fd91f950f87d5
MD5 29009d562eb6c1820b9d59c6abc305cc
BLAKE2b-256 a848aae828bd79ab2b5211070925852b474d508a0e00bf75f545b1a59896cb3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.435-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.435-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 899e5a90995fb9eb2eb84f0ba39ca25afb657e032bbdecefca42086d377dbf7a
MD5 ce316cd51a8232a81c057f02f26dbd88
BLAKE2b-256 51439ae7df6b6157e2f041400375e03a6e0bc7367a536a5e2cf6454673e990ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.435-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.435-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b1da0e6e51e8af190b4bdc2ffa814969361beb7422783229e6d8a700b246f335
MD5 3b3d4e4465f379e8706bc58d0b5c40ff
BLAKE2b-256 577f8fe8d60d66890b4fe3dc70e150ed3f5edc78bb440076637d23cdfd10fcd2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.435-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.435-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef1e7728a7b5e7a9285cbc69cab0aeec94b456be423172c20c278a6519773fba
MD5 3b2a221f9db52ef40cad504e8b9408f3
BLAKE2b-256 ac5f03304e19dee95ac0a02ea0c286d8fb0dc0e6af9f8e04dd9ddfbcb9da4502

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.435-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11059daa115bf8b61fd02b4cb2d51a2c6285d8b09daa105826c5402da4d0b391
MD5 3cbf81f5d8af3f2bae86aee48c837b5c
BLAKE2b-256 744a6d11ba4adcb3e103bdd0cc8bd1550a6ebd70a587d7b8529f85aae62ad429

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.435-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.435-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8fe80d9e6b5f5832c139a9ef5c2b0bb630a778417e85826b6b2232b33fc6fede
MD5 efaea50d2cdb77040e08268e2e1518d2
BLAKE2b-256 456aeb78993422ab3049e26c2ca3788fff697253ff11926d07f42b03ea39fd9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.435-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.435-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 993bac1e5df6becfd4e2c85ac231a5a9ae9f7a13c3be768c71d9df596b2576d1
MD5 c041218afffc4182e2f5ba38d708e0d6
BLAKE2b-256 782bf4f99f021f1efae83cbd9a4ac7a4a8b0cb4d8cab46d58c67946c35b88ca0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.435-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.435-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e7a95a310f4c76287c094553700ed39e8321d0803446ae0269bfb52141fd4ea5
MD5 70ca507a4b560322013e36fd49320512
BLAKE2b-256 b03835479b8438fff28630c68abc6fbdfd53914ca87f62ac0857d89df213b139

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.435-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85f95162d6bd485ee6415f28e9e036a75cee40e5314c9cfdf30d15f8d5d53aae
MD5 d96b95981cf9c99c73bc30ceff93dbfb
BLAKE2b-256 a0fc25bc65a010ed66fc8e4d41285ba8e9a5d6eba28479d0583a404d3579b31d

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