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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.132-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.132-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.132-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.132-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 93672e456333d47b3eb01f2c770c541679c7a262cf69eff1ead9140dac0bea3d
MD5 5c166d0d3683d6919002a4e632390e26
BLAKE2b-256 6412fdc31c26271a21e475381300854558fedc6c05937110c07aa0ba79fe3474

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.132-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.132-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ffe38be251d9230ae6f706b5643fc660903a2d64b53b46d250ce521bc34dff36
MD5 8dbe2dcdb219e040e3d9d5c5690813ef
BLAKE2b-256 6cbda733b6afedfdea09aaae199b399b036878b70472732cad86b95e6a6f91ec

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.132-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.132-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 80ab31ad332d2245c2841ecf87bedb8b29ed95594cb4566cbd3dbe792addecfb
MD5 51b8681a7e7d725d84c8ad0ed7992b78
BLAKE2b-256 caed7f6ae5dc8c0bada0aa137fb84d0b21b8878ada405ab9434bb925130fe3c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.132-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 824f3da17749624bc4b8304da042a9374b8bf6a2582ab9ab4b999581fcb55c39
MD5 a6b0d740aabb629fb782e604a0b7ecca
BLAKE2b-256 07f7058681a8b57a4aa847d526031746a552086f7711975b5694e451283794da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.132-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 de60604009d74b8f398ca4ee3f2fde7c83082f219b39a94ccec027bf0107d789
MD5 f835e0721ee709daca77d0eabf4b1fb9
BLAKE2b-256 88e1ab7b278332213c99acbeecd2f1b2046b922d8bbd015f951eb930bba0ce64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.132-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.132-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8823eafdce18b25141b8bc55dab46663028b11a04d18e934ff6698cdf349a74a
MD5 d363d0870e2a6eb92de4847bb7a80257
BLAKE2b-256 4034806046c7ccfff905ffab62e31f67bed746b66d9b646e460f62614df6d788

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.132-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.132-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14bd7a3f565696adde20650c94790121d22d58e718438bf1c346fc701f62a4c2
MD5 5f67125e01f10f3a6b6d5485b1d6312a
BLAKE2b-256 5e72ae67eff51028dfcdf3d60f1bb581873ab6bd423e23a49840d986b65b6c31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.132-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac2a202e93484c9bcbb529f4f48406788b9322d71657383bf3139a43cb0f09a8
MD5 6f8c1e474a9bc87c72decaf5c0cf82a2
BLAKE2b-256 fcaa927c8b30e6bd2e067b7451be24ebe3c249bfaba218c3ff7862f239a70075

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.132-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 17cb79004951b802093ce29054043a253e8949138a932cb1da37b298352dde1f
MD5 2a3534752a70afeb8907fac7951c8769
BLAKE2b-256 51884104a0cc393bb50e2788de5b9f85734a6f403b61944b89477b8ade37998d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.132-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.132-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4ae95ea9b1e29d362ae7ac9bb6b9e862e38bc478904337733b0ce45fb2fb363f
MD5 eb597f511570837ee04cdf3652572d62
BLAKE2b-256 bf08e82e735d9cfce3cdbc529bbe5db3489f105b56b192f1bc60a6513a70912d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.132-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.132-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7270d1d8c9c3a2c2c6f612cecfc791de918368f7732899864217c76739bb4b4a
MD5 b07d890d4888ea592bcc9af19574a86a
BLAKE2b-256 807035c24473eafbdbc825537ee563921e057660c2526c37f58f5723f286a803

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.132-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 493550dd14b07fcf5ff9f6f338aea6c12fcb16a2b9389a992641272bc1f50114
MD5 ebc65aab8630642e035dc881dfeecaf1
BLAKE2b-256 352953e5f5f6fc6fcfbd838c7758d9a37ffba49b9f53f4ce4e43b16109aab798

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.132-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.132-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8a632b3ed4d935966ca0fa08ed1294ca262ae3bc06cfca395da7b4e0dd54ffcd
MD5 8bd6884a7b948ff88e5cacfe53136bc8
BLAKE2b-256 06ad15945f31ff71ef2e0d157650daf210cdbf7f86aea5e232f5252d826dc809

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.132-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.132-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2549aed22f1aecf222edbe0b4c2235cff6ce4f2c2fe9add148ae86ef7b2492b4
MD5 443b714149eddfac84b5d7c28739a6da
BLAKE2b-256 1b9ec33ee2484b331255344096d190b88e8d22a93625549b7a05918ddc239b94

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.132-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.132-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 843b70dc65d157c7e7603859ef23a224ac32b30c8f5875eb411675bc9a3132ca
MD5 1f29847b2e6557ec7b494d80cb11792a
BLAKE2b-256 f5f7ee463871070f2b19ea092a3a54fa5ba9ebf9ce5e41cf1b7ff4e38c1ceaaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.132-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27884254b475b2947d2d05366a47fcaf6012c5837804f6196b13098a12cd6183
MD5 79a04c273678eb2e174081fa7b5fd098
BLAKE2b-256 0e6272aa573c32c53b65fc22a0ea80b8800964a02114b11668e5e73c3cb0c778

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.132-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.132-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 54fea8de0f4d14795c880b6b0db4e057be786d0f5fc3a6f1ef94ecf5b10c11ab
MD5 7fb06eea8005c8d4d034267037dc6265
BLAKE2b-256 f6256a751181adcd026759ffd84a051a2c098e37b8bf0e32e606bcc961f7872a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.132-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.132-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bc935513000a28e17b51086857e7ca2bb7f3463c2da90ae7fc8c3fe9c20aeccf
MD5 01a78a8541b81e4ad9ad824730c7b6bb
BLAKE2b-256 dc3e134e7e5417b708a801b982c5969789e23f1ae360d540fc0b1a8a27742ab3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.132-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.132-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c92e415072a03bdfd97606db79f43d42485e56fa17c5593869be4ca70ac4300
MD5 021c2beff0b88af3fc1e50d79e3300b8
BLAKE2b-256 fe31cb8073e745223b4e6d34bc2b3aa94c03769e710d7f7bbbc2d109088c9b67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.132-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 835828ac741dff0f2d1aaee4a0503e3476cbb4a1fe81feb44a7f2230d8820dd4
MD5 93107d4c2aa4661637638b41e1b1f8f3
BLAKE2b-256 0a8c816c7a61edbd9b6e77a14302ea9607aa8bcef47699414abc514e6ebddec9

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