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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.491-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.491-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.491-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.491-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 62e91d9301e0525de47c6efacd0f13e64aa746caa3922e82ed7904bb2895f822
MD5 81fa723dc4e052709f7c79069b8eda4b
BLAKE2b-256 0408d4064cfece7eca456ad585bdc2c20632cd184a6f885d5a47de4e06543e8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.491-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.491-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a22b7adf56f62a9ab8bb7f69737a5e95b1c454edacf004cc556da2b4b6a5e89e
MD5 cdb0b72f82fc14f5d568b0612cb65f0f
BLAKE2b-256 e7f7b10757b49758414421dbc102754dbe8a1f43e48ea7d305ada18e8e32b9a2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.491-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.491-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b171cb2142cf1a2b87c28a4707bc6a9a94e3422f45b89ad93b4ab4522573b008
MD5 cd6c071174465870d349f4d84740d5d7
BLAKE2b-256 8da20214613424c41cfe9cf6f0085e1bc45f02fd5b818af9e601629472707f3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.491-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ed0315b935fa5d2571dce15537ae6c2931783c3c937ed11ee54d8720955131e
MD5 27c36446d3e23dac5a104fc67a26e416
BLAKE2b-256 f3cf662e62f81583f5b0081a1008d830ca1d1740d6d9851fdea0344b4474ae73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.491-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8ed702f9b667027a57a4dafac64ff4b3ec2d34bf4d33a4665fea74c37ce7ea97
MD5 197f1386a723ee79403ceef7e51ea4ed
BLAKE2b-256 a7a595fb6f0c7714901df04abafe4708dd457abcbeeb0d9444043b895e2b140f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.491-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.491-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 999490aefd720878da47cc72acc196248d174ab1f635650ee5aaa920982948c6
MD5 40faca1af8fde997d4c6cf655d8d0343
BLAKE2b-256 4966140e47bda2a7dc9f41bf98efd6189634aea5f65d412e63e6bd181151ad74

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.491-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.491-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e839dd0b5e11099fad7b4a32d44c64150cb8691ee727b2befa71b0857d076c87
MD5 036152b60c6cd2913bd93fa2ce6448f0
BLAKE2b-256 a48c2661a81e9dc95249e58779fc7335d6e8234cc99566a55c3f8c551c8a511d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.491-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95b0d9b963402fd90dc63afc158386409d19fc4f709634007a80e4d8d00538e7
MD5 98512ff8dd0692b777eb7070bed165be
BLAKE2b-256 c3d03406213760a8acf7014012a5ffed70b312f09f0b218ada3c2d141f3ef941

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.491-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 031bde60a8a8d93e378954fe4b91803d3504abacdbd23de47242df44435b9393
MD5 8f1393c0c4dbc27a5c89bbb9923bce6e
BLAKE2b-256 b9ea8ac4a332681e7e61c0cc126043446655f763384aaf0c6486da93ae9dff88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.491-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.491-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e84b88fe132e533686351e92da8b18b39176a1984dcc915687e04ae0dff217ec
MD5 102c65f973ad975dc8e47aeda1985abd
BLAKE2b-256 d8cb8cb0f4d098ca816937086a9941e9b943163953ef07049374c13e17cf98fe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.491-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.491-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1b7fef44ae8eb73e942d45345f45e05d12186fe585d050ef9ef7f6b074cb896b
MD5 e0630490da64feff0f07cc639b9c1382
BLAKE2b-256 eabad688a7687fad5489717959b9090040d752a2c4f4969d7dff62ec06085a41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.491-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 543cacc69e06d3c5a95c96a8bf881f92cadbf7c608d52c1e69f2fa0351b97264
MD5 a234967f0d389ef3c9f26c300aa5b4c6
BLAKE2b-256 60de368f5f73e56742e2f21d532d0f441b4229d69eb96d3187f1685a0a5a4fed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.491-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.491-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e294078f00529ee4a03d4c3a94c456ccffce34392eeff927c980dfad1f636699
MD5 2674dd024c2e83eade609fea4808c3a0
BLAKE2b-256 a602d6f581ba984dbdf6fff244c62d8e2212568d03293cdd6d4b803732fa2e98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.491-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.491-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 76061b0c5f5c36ec7ab5e8b500283ffed074221afa679599cc5c5ae01971c6da
MD5 c5a88e1cc63879322d0b889c84c4fd18
BLAKE2b-256 6a8dc68c38d93e8e0cba3e82414bf2148adc6885630e3957d7d8e9dd85fdcf03

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.491-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.491-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 57377b64cee9bfaf1f9720d9e55eeb1b405170dda5c70188be2683920001db71
MD5 5df08f59c9e9a646222834f5659a465a
BLAKE2b-256 298e146ff6c3aeb798d95ed8138f1d95138e4cd63ea8ffc70c89000ba365e2a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.491-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 83caa5937d149525c7d5eeb417a455bd6a8ce3a61fb6d44c4e68b06e122f7fa1
MD5 4a7e1b47fcbf776057db2c4553d6e1ae
BLAKE2b-256 e6d6bbe9ba7371c24aabc7b0251671060d7d980c13cc36f9fd6a22a6e77804f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.491-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.491-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 68d1708f730d6c125804d4b5f1963365edd492d407758a379ee032be42707a63
MD5 e669d3b850f57d684a00f8581cef4d6d
BLAKE2b-256 24e4dc26967fb1784329ea5a048b9e852a952a00b0bfe239905e513ccb449aea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.491-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.491-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 db44a5a41095e408e642c899284e0a6ffde6871c96150b1457b4bdd9bdc2d944
MD5 997df67eeb673bd8b0c0964937383da2
BLAKE2b-256 5d961cba219cdae7d9ff4685ce90fa26b5c3a8dc1dc353a6e49e2fa5f3debaa2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.491-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.491-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ea4b58e14dabfb464ef12fefde83d2aa9dab7d2c76ba451eba09548a144549ad
MD5 dd33c2bd5de362b018ba642694b2d04e
BLAKE2b-256 cf1e419dc22390b8a68d2c28747a5048d51dbe2a4f16b69c425b568797d6dbf0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.491-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e70951e2bf5d7252010ab0a604f10c81aaa28ba17db5963ff3e993510bc4b6c9
MD5 7d299a207122f959217380ef175017d8
BLAKE2b-256 e39715f69b3ec07f93e2d5ddb410a76f717a72e1e4f9008c8c44544a631b62b0

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