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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.239-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.239-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.239-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.239-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 21f2c030bcef7a9b5b442a0fb9f3499087927745ce67ae22c80d220c4ad7fc47
MD5 d0a7d1a7c9b780ef752e1f0389a4d715
BLAKE2b-256 8ce6f0266a4e0d0a0eea79bf402b257ecc6d25a4fa0b5f9afc1390c080fa8872

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.239-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.239-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 632790e922cee0389f5036ff054d6258838dab5cb38f53fb6da3f71113e293ab
MD5 0cce2030c150c78af86ad4909b9a4e90
BLAKE2b-256 35af41a8ae72c69c546bf50fbf15dada9426c4f979d23250e3d42671bbddd066

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.239-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.239-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 63e49be8b807f953279bcb8a4c63455d9dafbb40298b6c46d98f8a84e26d92eb
MD5 7b57e2f94b8f4b30d26fdfcf62cd66ac
BLAKE2b-256 46323ccb99d1dd0cd390f46cbfbf61b6a7eeb66a468dd7a418dc9c1554cca72e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.239-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ffb37ff25fbf5f707102544d57d4dc5e98824f04789bf3d0a0519c829c2362e2
MD5 7ddc55c7c4bf3e83ebfdfd20772b7551
BLAKE2b-256 7c06876f67080aa15168bed9ba003c11bfcf0ee40f69e97c854ba1b3871471fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.239-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 20c8431588a457737ebe7bf48ed55236b9d7cb2de42156c006e8b413cff16fa6
MD5 2071f9c8cbb7eab1a3cec185749c28c4
BLAKE2b-256 dbb7266a0d30c069e316a1c0297ecb5c53d856cfc41112508d6cd2f2bfe283ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.239-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.239-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3159625c9c9b678e9f929ece58464d88b9311af322af4d9628c04a3e4225c418
MD5 22a2cc2baea8e83026ca939c010d4a01
BLAKE2b-256 942e25156af80909945859aedab4ae456ab72b5c6a2e079ab02637022f2db891

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.239-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.239-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fe3d2cd36c2f214abfa3432fc71a895e748cb1b052d8f5fd63e30fafed514c76
MD5 aa1f0f6bad1b9bffa7dd4f00cc60f9c1
BLAKE2b-256 1126f8ebf43e53c6dd6126867948628359a731af773185356ed1e6644a2151ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.239-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4985d025074077c9a79ee304fb95fb463629a97c6949af57d17c84aa8f7c3453
MD5 1ce74990ea48acd6ac8ae72311b0a4e6
BLAKE2b-256 51d19d25e0b5cf992d0222269851a0dfa40d38d381d793fab52ea1a7c4395935

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.239-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e7eefe8c4baadaeca808fd3e942032d2a296f839b8bff211a62b19deed20c4c3
MD5 f718de57a4f99b9e8fb782cbfa73f51e
BLAKE2b-256 66a9eea6d8f770b68ed01e2b515e1668bfda633defbb3f45a96e29bd82adbd6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.239-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.239-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cb2d39b2e2ee0c59d57f330cea81952ea9c666f0f52c84bd2547396ee17156e2
MD5 660ddbb4a96b49a1e57002d549e6eb35
BLAKE2b-256 1479e4ab8b235b5f84c113b36cf145504d6a2577e929603676f2608248c5f1b9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.239-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.239-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b3bed095350ad40a2b8c9f82891aad9a5ddfd6e338b2a56877b6f3fe879cacaa
MD5 853691dd65ae730305a670b3065c54ac
BLAKE2b-256 8697cf4bd28f93b1f03a342e2351413df6b340e02f77ff43e5f4b9d4e650c0f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.239-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 071494cc2f9aaf06958d348ab6b798db6b3f744fb4cfb5e19e4e3299dfc18b59
MD5 6528c7886f58adee3e92856fea3c428f
BLAKE2b-256 56cf909a2de6e9cde819b60ffa72b620d9fc213a11b3371aba78cd0d1b2da873

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.239-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.239-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e09cab46a5874516182f8fc6b39a8c3866465ffdac06c5f0ea75b569d9909a60
MD5 7003c5aa22b72659805a48514683bfe6
BLAKE2b-256 9681c36b2abd00f02945cdf2da87db2a6699531c042a8b745042a08bf310ea79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.239-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.239-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 70f143c9646327571b1c1ff25d52c3d99bf60fd593612668852fbb770bb2c276
MD5 222c5ddc89a9a849a2d43ce0b5d97d35
BLAKE2b-256 9373c3264f51cba47197c2211eeefe34e6308a4993ba5833b1aa167d68ee5d38

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.239-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.239-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2531a4f1731d163e3d47f7c017b119a902e4e5f2508bb1824dc93446089fa2ab
MD5 def69ac12fb03cee498afecec4cd2f4a
BLAKE2b-256 45c45c8d7d56baff176c54a0324a94e0d8bee1991c462c8ce2fd226531f2d997

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.239-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0443349c220b486c5437c7b2e37d036a2de401349b46d9559240c32e1939740c
MD5 0f597272eae206d3feffc6092b5c2002
BLAKE2b-256 d27c5ceb2ea809253aed0a693e39ca41193ef82261d0a6d8af6749872810fdf6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.239-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.239-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8f9db8841ca615c57bf017a78f4234833755d283341743df058afcdcd13197db
MD5 2fc9791793aef2113750ea96f5a4937a
BLAKE2b-256 9ba6b01dbd65ff7a0c2023320a38a6c8f2c3db9c4567408752ac4d4717da1fc9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.239-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.239-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6c2ea55e9e6e71cd2db63be4b0f37a04dae15e55682c9731c8480581d0621919
MD5 dd6b30fafed950d54554d25ac6ce91b2
BLAKE2b-256 2ebee073f61af9ffd4a8be394a4bc7be4a4e2a06dd86099e1cf04c0ef1f1e44f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.239-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.239-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 53fc0336fda1b60bd9ac68832c1751e3c76d5431ff177d8637b719058b3eea7d
MD5 0e0a9c4ae60b0e9975172b335ff29d2a
BLAKE2b-256 f375b5dc823f093d4a43a8206dac3814ae48af6208c337a570e926e312aeabaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.239-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 756de6f20fa505c82968e531e813329cb7c887f23a4293e93371a7dc744fd239
MD5 265d93d8d3ad9d91be6be321dfd05cd9
BLAKE2b-256 e915e3bf02b9436de440e8b41755d951c57f44075450817164c40ee6218a320c

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