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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.269-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.269-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.269-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.269-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 605ee2fefb4a232524adcc5a91410225f38e6e4f6857e268cf06c662ac8639a9
MD5 ecc2247bd50a1628708815a48e5ac7b8
BLAKE2b-256 028bec005d6a90a52411d06219682d18ce0857983a0dda60db44e0a98a8bfe45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.269-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.269-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 45e7aea89aef4fe17a33bbba5562645c13628f90f3b55c3b5641448a207681f8
MD5 f75fb4f227fef2b2a36ea52c4e3309bf
BLAKE2b-256 c11d03078ba12e52dc1f0f07c8c93016b8f305336157081afc6a076d5378b7ec

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.269-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.269-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 da38337e093024b322ec2b84a7b1ee6ef7859b50f1eaba6217f69b403f101358
MD5 6c8a67dc56f1ef71114dfec6b8856d40
BLAKE2b-256 6a52c24e23c30d882970809e03cc0c7f0e9666473c3238a243a6b687e5e9503e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.269-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d27f8aa6d69b313ed6c96e9e9459dae93a1713b24b06ac87df08e8073ad9f14c
MD5 9c5e17474dc09e4fc53b9f94cb2c8744
BLAKE2b-256 3a5272a3bb462469a8296892d66529f493f2d61ddc1a3ec9582954478946e761

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.269-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8df1de9dcf82172e7c742fe27bc4b466a5e1b14c9b0caa19e1f0d1ec9fc9f115
MD5 395b724f0ed1229457c2c45fe02397dc
BLAKE2b-256 01d4c4e2b7973361a938a05311cf96492d793c7ec2dfa3d27c39e1b9c280fbdf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.269-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.269-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5a10e30341b01c751216e2abe9f8feaac5b5ec122be855bbf619a9ca5f0d538d
MD5 e4e34f2266d376f2be317f3e413bfd3b
BLAKE2b-256 afb4c0d4e809f285dbb7a3fe13fd7c0e65b6e293f161a68f2196ac1768b983d5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.269-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.269-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 68c29260ec61ccad1eadf363296aae5301d13884d5fa1993df7b8acac349436c
MD5 88449e5a9bf59a78f10c04f6f8cbfe35
BLAKE2b-256 e1f6ece0985103a6e56d64872d65c90c2ac42a8757f59bcd9ebb2243f82415dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.269-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e722a3066239e4b7735037072bc1f6db96a6be641642fe3be3043b9da51a8a41
MD5 9fd01d3725edba6b92e7d97f07ba4af8
BLAKE2b-256 3ab96ab90c78bfcc4476a72fbbf715ae43b55e3a19f3df4895e69f6460f9d902

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.269-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2432a92f5cf30dd2399037eb06c889248e50a1afb61aa69488cda6693f70a912
MD5 24b4e1c731217c29a12ebca7c264e649
BLAKE2b-256 6bc34c45a39942a16c24c37f3309d5c9fa40827c80c1b37e3cb97c0875e69a8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.269-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.269-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d4a23a704e12b6300a7296ad3b3342d6ba21702e1ab40ed8e9beaeeee74deed3
MD5 261eb689690d5daea3ae4ea76c1a479b
BLAKE2b-256 c59fe03b271bf0e00022a92cf7de873c169e3636ac278027dd8f9ca65c0baa76

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.269-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.269-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 229700b761de442858e8842edd93bede9d11c4b413c2d731ca4e6b7c4a0f6932
MD5 aa8bb1d229a600f8fb6a980caf6a979d
BLAKE2b-256 126aaf748503026fb560feaadabdd9a2a59fd2be39bffa1aea5967f6fad0308c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.269-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbd943234a98ac5e49c36283d8323a596dc561052ef5d59b3f3c95d67f340fbe
MD5 76dbb12d82cc3fde98f7b8320c1df0f3
BLAKE2b-256 603304fed7524c2db045e786a3c61ea7adc95106294edff772f5191c888659f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.269-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.269-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 913abe07e4cf441467074325da7ae45a6b31429f73fc1fa219ede90d6b435e73
MD5 c42df1b69d3fdd9e845a556fd6247b4b
BLAKE2b-256 dea5ce2b5f5e969f8927d82780af337840c1eaf40925a23f56818313bf1ec604

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.269-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.269-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 90a0f9d02e15b3f25c7603fa5f2973e271c36d643b9cdd1156edb2d3025363fd
MD5 a07e018072333f532f0d572807f9aea7
BLAKE2b-256 38f4d541f1415fbcd2934131b11db5fd1d95d1a3a6d49dd93eebf05e969a7e40

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.269-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.269-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9ee42592153dbb5b03297b8f308f7eec50f247706aa75bdc3b6531703f407b35
MD5 477f5a496350e2947d4d1d358f383568
BLAKE2b-256 c7b249e57d1bd64dd8997a28c531a40d71aa352697b4234e594792f899b6d109

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.269-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52c493679ca7428f4d03a88e2bfd85751963f7bdf9bb5303df520fa4980437a3
MD5 5658135e18e0c0104a3bb1c7214866ae
BLAKE2b-256 869b91136802fdb757dbf08b6b73c34cf2e2cb8fa93a498d0c4f95b487fa9e0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.269-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.269-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 78cef5112f24dbe870a7918594fb87e7dab3940c254b6d90019e1e2a59ff9349
MD5 6fc8bddd103388cc0910e354d5744e86
BLAKE2b-256 3306ab36af0e9820cfdbd69100d14dce9a0f4a5e05581fcd8bae003a8d098ba0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.269-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.269-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 950931a692f5bde821b6c0760878a4e736a6ccd82bd90fece67f20ae9b60c4c0
MD5 20faa045781735947b859868316c9bd9
BLAKE2b-256 5b20e9b62d56666c228e1f37040173ee5750fee65d077a218308c0dfd4a87600

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.269-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.269-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3fb722b511d4f9682fb7e96a66d6efd06ad15715f6cc20f8f0db2efd27bd3854
MD5 6b051b62d8319b7b2dd5ad8deb7c34a5
BLAKE2b-256 642f04373f8270d01267efa4321538870f8decaa238f7756ca1e350dca4af9a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.269-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c94ff065c414cbcbb7bda2db22c154103c4ee9100789e17812789989e1fbf55d
MD5 2e15205b2d00e95be9f38cf680300be1
BLAKE2b-256 87b9f1c493186042f6d2a4b3b25412038604a6181e8eb63bd1bbccc12c54bc80

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