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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.829-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.829-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.829-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.829-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e35507bca0afa77f7d16273fcf9ca40a436f8e38cc57441ab49acb402553af43
MD5 6bd9918ef798abda6931201f847f9580
BLAKE2b-256 58dabdb3b8ca53a3ad76f70a331b8e903cf87f513d43132033af3284f4938791

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.829-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.829-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7d1b6dd15f162c8207e531b3b921f766a329c16e0d59323331e246f6e92b5e7a
MD5 d8e3374145ccfc25d82cddd26e7d5f69
BLAKE2b-256 0dfb620bcd09a0fd65d47cebba444158d54f7141163684ac9b32e26b0764abbf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.829-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.829-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 65bebb06f17432d2080ae9e430f2a9d73422488c57be255256619c8187be3b83
MD5 7a14e0cba4ce60be01e32a43ec62ce79
BLAKE2b-256 98783561215c5d65a94a6796cc30dd8826fd835a90cb79ad01e4bddba4c57692

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.829-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b099cc16e69f587b9b9391aa2745ec9c7f10ed61f7e8d205a29578984ca42dfd
MD5 a4c9a29130cd1ed696ec27769188fc7e
BLAKE2b-256 ce41dd7743948ff7ca1a501fa8bbe5303647f9e702708551a80d134e5d2c8428

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.829-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cf5bf08d040dfe12604c36334173b5caad67144e8dcaf6f6c8005798a9ff99be
MD5 19bab81c468506011142297a46fe8776
BLAKE2b-256 e99caaeba0e0f4adc23bc160cf5529190c82f68f5fe16e00d21c2c9e85fae288

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.829-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.829-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 67c800d28bc2840a1cf7f2a7a687232b719c4e8e1569e29cdf7edd351791aeb8
MD5 69c72f5e779bc9eb37f27e526770e79a
BLAKE2b-256 e1c897ec8be2c60299bcc9376a8574f6fda6cd3db770e71267716986f7bc5d3b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.829-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.829-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 50287dfe6e01c7dcef6906764b28b8453588a6ba2ad37a3965120a72fd468da7
MD5 47d943e6fc47ba586623f7331b2f1f08
BLAKE2b-256 7f9cbdabac619cb0feb19491bbbbaff61bafa42983ef2360d7e55180c484ae53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.829-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ea00961a2d41cbe9b1f66e831abca44fe1685a5457b89c8042103b376396481
MD5 dde6fa9ade6995b3a35addfb54fe2c0a
BLAKE2b-256 957eef17c0fa55466e598face85f0a2d3302254fb89135894c44da1056ff31a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.829-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2eb61d43c27cbc990155bdf6f97f8f8b4f1a845c3fd7cc3787708f84ab4550be
MD5 a6b8c99f9302e2d224f79ffc71218f81
BLAKE2b-256 03bae2aa9fa80def945ebc7fc121bd93f341afcbd6ae469174b05fe9b1e527bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.829-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.829-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f5b1d1cbd6b81a91d97b923b8e9c4b84790da685538299d507950e26abf364c2
MD5 1a1a31b016745b6ee24962d2e005b416
BLAKE2b-256 36a1435e4f134d6c91d1469c2d31fa2fb34503e7de891f9fe78792bc5b5af06c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.829-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.829-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 457944b51fd5cf5f46efffe1748236457d062aee51a6a8b0e0ee28b754b46bb0
MD5 cea79892314a38a0e8fc57ee1162cd93
BLAKE2b-256 cfa5cd8ace2551f8b1e93370b9ec6f98eab86b925d107059c57953b6e0cbe45b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.829-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dbea2774446d7d3c09802549bbc8f1944fcc66602b203e01d9e996741e9abde5
MD5 3f906b8e4794217351db2661b0660dc7
BLAKE2b-256 8c831eedd0e698ea4deddb1b61d1731037302e2309047327f8ac1a28eb729cc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.829-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.829-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 20becac50f954675539facb318be6d40423f43561ce6fa92cfd710689209b8f1
MD5 39ebe775224ebf1a32bfb8d3c0a99181
BLAKE2b-256 c476a9a3f5b9e8253097b888c6cc724c205394a33d7d7e792943406e399412c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.829-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.829-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9d50fc9e1eaba32546c426d1c2ef89e53a854cbdca272546f5ea5fd730f9f4ea
MD5 f1d6c19e62b102ce27dc3b282f934a96
BLAKE2b-256 e79755e263ffd359f0bacd6c2714a69419c4c817535dab15604cc2440caaf264

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.829-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.829-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 42bf73e6b2a553df47205c3d3e40bcba6ee6bfd53e17709315d55cad84894ddb
MD5 f5ed1a76eec434880414f84c3be0bf91
BLAKE2b-256 0b1cbed2af2587bec8a189ebc4e76f3389d7c5b148f6618b57cdbaa07bbcbe85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.829-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5f3ee8b6bf445aab1252fcbe8a8212db476ce080e46dc84d292de15b9c4ff70
MD5 4821913d4630cd8d435d22b5bba8f15a
BLAKE2b-256 ff10290221faf3a5e3c0027186c16e0e0314a6ddd012f18623ad5e2a92505253

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.829-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.829-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6da2a24886a51849c8f4d88d2729c0b88a9487b30d70e0a370a3103818c45408
MD5 9e48eca6ef1f429a45c8d5db672ab3a9
BLAKE2b-256 45dafdcbea46c9471f63bac262418de2c48f16d33c311d7ef9c28b7e9688b82c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.829-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.829-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 17eeb9c00e2cf4f57f615c49a9f128c7026c036c6348aa41fc28f3690d9ff745
MD5 ec3b60bf899bd4352204eb045820ed91
BLAKE2b-256 012a19f2263acd7fa996fb56f9827fb4af2e1df9628bf2599eb5bea6aff70ae7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.829-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.829-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 68dc81da6a63bc7c297e7d83d0bc6b806343a26f8d4f4937f555bc489ba7b0b3
MD5 5201975859dedc7b105b121482681d5e
BLAKE2b-256 cd57f6f1122714a3b6d7a105ff417645dae84c9e06955fcaeb109d308e2ae791

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.829-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e541f2d80cc403c64b59b7466fca0e4f7448f75e69ca8869f4d5bebd6300646
MD5 5e326f3914ca94d5639badf027e66037
BLAKE2b-256 73516bb74f8e944fa6d23ac4a763da18ae4b9f8aea5471594b9d6d03468da20a

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