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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.445-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.445-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.445-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.445-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d1c35a95947075aaf9458f8d91661b72a2c08ad6dc7e1398fe12295766c6e0ac
MD5 8c2af9e53d613691a85f76cc7a88c7c0
BLAKE2b-256 3799e928d75416141660d67e762bda2364f7005388c1d3320a93481d76e292e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.445-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.445-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6f823bc3daba0c6cbf4d6c3e38466fc710e292d698cf90ff1df076a49d42c4de
MD5 7c5fd820453af2911276d5d58ed960d4
BLAKE2b-256 fac5e0036fb692144db2374c2d7410bd35a35d59332b39fe3857e31ba8f82f24

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.445-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.445-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c8d109b465e848686c09358c40c4475d73aacf38d3de29a3f311686749e67c06
MD5 aad3ac4399e146f91fc9b93e483db34d
BLAKE2b-256 0042a07c7f320d48919e05aed12267b1080282cececacdd826cdabbc4bb69bbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.445-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f781d180b090c753d0f3342da5a29d94d625b1b640799fa59966912f711c06ef
MD5 73608404a4a8c0ab86b145f8074fcf7d
BLAKE2b-256 8d995d7987f514a7196cc2d5b8bceb86401db55a84b1ea25b26a477597550d7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.445-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 89814d9136c1ca4d9c7a914b130c7d3afd54d072b7fbf7b07302dc139a375a66
MD5 ddb11e4d74c76b98b8077d28c1347dc9
BLAKE2b-256 97dd1bf1735c9cf44424dd74db86b1218e45f808774103a1da834c8cdb4e4637

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.445-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.445-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 113b03803f2cd25e7f3e4ffb5ba0ebec1313cd8c9d941909e2c3a761d1d48341
MD5 1426ab8af2501e501f0c6b61dca90ffc
BLAKE2b-256 362564bcbf1dd6466fa0c6e3e663d08d65847880f42ff2d39772f930b5c6d38c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.445-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.445-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e99652c0f32c9936a508feebfd04c369786b64f9a6c13bc507614ab5e4ac6839
MD5 1535bf0ce6b4430d8f9cbaa5ab493dc6
BLAKE2b-256 51902fe0c2a6ef94192317d1b95ad8aef34e8b196a7d399158ee9a56ed8b2eed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.445-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8270d86e533aeb06adf7babaf2d61296f027d9f54d6554ad64608ae7c2095fbb
MD5 c747ff05383a3e61ff28f1182635dcbf
BLAKE2b-256 4ede588fbb26b171175600292af9d69f18014ddbff242d791a2906489847a8a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.445-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 df1f46f8e682e85fcfccfd327bae4d2590222f4927030a1896e8c0e5e00a845b
MD5 598a1f794570b70777c88deca2e837bc
BLAKE2b-256 d738d3f37bce3a800bfd3859bed1be1c24a529512949c188af7388b6de29a7f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.445-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.445-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 404cdb2f9a8e6c1ad63f4bb25ee5041b9f906554d4fe48255c8242aff8885fa3
MD5 be7055d8ef9a61b424e8d49b70fbc480
BLAKE2b-256 0b7573d2cdce74d13140672adf589c456a0aa49a045070aefdd6adf639b816d1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.445-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.445-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b5c63d4b504e706d14a76ace53afa779bce6f9cbaf44a1a23f17aae36779376
MD5 b59f4c245146b050943b2dae178aacb2
BLAKE2b-256 4f1a52c82c3313e76a94f3da2c6404c6af97e87ec47526cfa1a7e35288e3fe8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.445-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a3e729c4c39e600ac6618179ba917d3b89d733c639052963dd5db812993a404
MD5 4bdc8303e396ec8d9766a12cd57996da
BLAKE2b-256 e76af546ad287ced08978f9479dfb21f7bde33ed4304b25c00c6da99c05590ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.445-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.445-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b6375109cb00bd3f1b651c3bf37140adaf43f8fb3b63d1a95e460f2aa39c43e5
MD5 bc435e109472e7719ee5fd6d19150e47
BLAKE2b-256 51ba55a7f3b26d266f4f5e65d2115176e55c9fd3eb2053d87bc5d88c9b46fe63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.445-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.445-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b7acdfcc1a9644f8acf7596c1d8a3f5721c4014196ea3dfa3953a8543c53c86e
MD5 6a8cbc244d0341f1573e9db577df0a22
BLAKE2b-256 cd7d6296ba151e6d8644c93312d7b18466df34a876d8140e44f5a2a61b74b0fc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.445-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.445-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f6f41ef964ba305355649c6ca6f75a220a2a0bf894e24ab1f3864e48e218b1fd
MD5 b09831a8ed5b29beae42a263d8c8d4f8
BLAKE2b-256 113bb25527e261adbb37fc4cae6cffa119dc020d4fcf4ed32bb63a9ab60173ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.445-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c118a69dd9074fae5148b9e29622c99f73fa4f183dfa598a689170e7c19c87b
MD5 5d9314afda9cd8eac84e07a5748e79a5
BLAKE2b-256 d56061a0f22413e07d1aed1f15509db7284daf68e2d0dab865e0361e56e22add

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.445-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.445-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3d6c33893350070e2aa67d20c854d60942b2fdb2bb338449c2a51e4e2cc68016
MD5 5b878c17518233dea23978ca1265909b
BLAKE2b-256 a063c9de732d71d35ebe893b3ac73540cd23cbd0aeb396189250df834232d9b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.445-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.445-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c5a94eded6604dc2e486565f37e3a16412b17018869eec5414c27d8d1f3a5c4f
MD5 c48dbd1e945e2a325ea77fb77ebe54d2
BLAKE2b-256 157fd3b679f08d1d5fa9adb96bf85a0e2fe10c410796eb9a19c0520ec0ded974

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.445-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.445-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2314a15e08e42c382dd97c8b1cbf1240f7b9b3dc38becc82bac253b700527f43
MD5 b5c41b86186ce21ba4014d8471961477
BLAKE2b-256 e2019fced2bbba76da06ee670b7e3336bd95dc9108b1f6003b967005db93458c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.445-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c779626c150b2e7167fa4566e5a1974d415500df077bf7a98f588083406aad7
MD5 2497827d1c683d98de787a88df56dc66
BLAKE2b-256 390602e42953c26fa9aa90e20dc5fe74a2765eec3c1653575c4ec81861ed19ec

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