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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.377-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.377-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.377-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.377-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 03cdce38e8ec9f2114c61657fa7a304605c68f3ea381ab03230a2eaa27cc9cbf
MD5 e962e89eefe1747f940c9f247cba7690
BLAKE2b-256 b01617b81649f55f8acca3cc0324eae647a555a7f656e64ec6e6a15c39c109df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.377-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.377-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c7252462b08472a6347f4e7986f9672ad41d6262fe439a405c5c738ec13ab884
MD5 3d887dcf2402b766038bea1effcd496a
BLAKE2b-256 33d0b7bb1cc4eec5e82baaddb5160ee6543504be9b4ca6d75be40c6380ae427b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.377-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.377-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f8695fcc11bf4cd96836d58a6231578786ad836efed1f5f47ff2091b783fc4ac
MD5 45dcfc4005de4b29685a78be60be1e2f
BLAKE2b-256 5504aae2895cf50db0b1e8c2236a81241b98f30334e806d798bb29fe0d5c5b90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.377-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb616dcf989513afc44c1510187d3f2d588e46d3d4345d0db5ca7eae7eb2cb2f
MD5 157b51d80b9af63be9ed448e57d195f7
BLAKE2b-256 fdbba18066bc02968637d8335c00209e4a41eed51561b6de5433395b61ee9550

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.377-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0790e496ea0ad636d66727c8adf9dfde082610c8018857ef2b0462e295196991
MD5 c350ba082f0cd958dcc5db5b071d9700
BLAKE2b-256 a11bf872a0cbc26b1039be21a05febf27b86b5e8776f36e7391e1a2d3a0c5f3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.377-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.377-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d6708c1f36a2f1372a044021a0e475809a81ff3e5d36b0a6080936cae19e5dae
MD5 0aca702c3994ab31c079327332d72f9b
BLAKE2b-256 7b2a56b795270fa7a75fb5540ff14bee47deef4609c03d38cceeedcd2c895381

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.377-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.377-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 faf0dff377b54224aafee15dcf6f67240ad65ab5f2cf3ef2e4458d259f33abfe
MD5 e9043980eb0b05659a5d80d1dfb19619
BLAKE2b-256 7e6abcea52ff33e6360631d6b55db6c53ce681d67e0a5044aadc7178a47ed8e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.377-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee52636ef6c9745a80a915a189e6ec48d2f9a5e7f9247d8f6ddacea9d0c04692
MD5 dd43ae7cc105005950f144a19d5a13b0
BLAKE2b-256 afca6e60a10ea10afdd1aa65041f7a858307acaece83996588aeee67a0c7d546

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.377-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f1d0cdfdc97860887d86e999443eb9cd6badb6f9230ab271ffd8ae90ae3477b6
MD5 1c1fd8181459bd0e13617d4fa99fd0ee
BLAKE2b-256 9ec488274532c65603cc7ced382a62b15acdd344a9847ce4cea5a3a7dade7675

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.377-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.377-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d68ae1462d0345b5450581a8b234fcae4e7144323b23cbf9abf38e948490bcdf
MD5 7e1c57cade5bdfcab4b547ab386134d8
BLAKE2b-256 9c51a14fadabe457067df8a25cd06e8bcb57bdaf94379a6f1dc17e5226f95dfe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.377-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.377-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b6d9d263bc7c9b2482a34a03ccc9c5af7d5e4b86a1792cd50cb7fd477f84c048
MD5 dc485374a26459ac8a870a2cd4fc6391
BLAKE2b-256 629ed3c26c509fda71a5adf5acd641758099808d09bb568c2370f4ac27c3aba1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.377-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e5d8f1d203532455f4a6c68b85bf168410a856fdb1990f63b9692c15d90368a
MD5 7c9fcd337cd13a339c75bba50b98603c
BLAKE2b-256 2a7e30e4c6dfc527444ff8e78a6609d02f1a6ca45681ffe6fc7029e41db328db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.377-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.377-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 678a5ebb1b66fe95d8ff365c7eaa855fd3d27c81b8648d6ee8a0dac75cf76ef3
MD5 4e6198c8a6d498e3c010d160e9074663
BLAKE2b-256 9b0d996c93a06f7065fadaa4eb2fda472c69ac705aa94197626c082a9824513a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.377-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.377-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ab628d6a4514bd1d6778b7f296a2c1ad9ab9d8d900be84d9f2295f90bcf2bf96
MD5 9a6f9299a67fdbac3e0d34b686b76177
BLAKE2b-256 e098295a33c1e83053c4bd1fd5d0d26dd06b8bb245451abed1537e22d8e6ffc3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.377-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.377-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0167a0f947e99936b90fa5d228641f8a7c2923f7e5e45a24543e2c627b9bd288
MD5 1e0628cf9c9c4cdbe0493151af52aa17
BLAKE2b-256 1f96c785bbd1a29edc5244de3016bb5fa0697baaae911e4b11ddddbfccacdfae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.377-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 890ab9f73708dac44ca7f1bf717fb9862e336c750eab546bc94a7b170a88aa0c
MD5 36f640267deee359d6851b53330c7d89
BLAKE2b-256 1064f02eac15e36b4d88f07eab27dc33e0977e3f5221092729283bee2b409c46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.377-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.377-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3e68b6a2e51e0b5b9b65c4b27e19d20530d6e7eb747baa91001ba546c9fc9cdb
MD5 c5f10ff507c53310b9a9f7043eb0c6ad
BLAKE2b-256 6b0540b851c02f2c085cb866455dd0c44bc59017b29b8417e32756679c106b01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.377-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.377-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e7d0e2dda398f7336b89632e8725f50118905275d21adfdd544ce9523226bb79
MD5 cb504d4799d2753bf1cbce3b9316b76e
BLAKE2b-256 7adb548a51a6d2798ee35bcccbde1b20a3b1b7083a65288abce224f46453506e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.377-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.377-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 85b8d1d4b59e5e4d2207a3c4a63d2455bdb14b374b04b800c8ddeea1049f5ebd
MD5 d79f1a177d272ce62a30145d84ca04ea
BLAKE2b-256 432774f6a4c028425dac70e0d19f8baf049f1169dcb62ce0ddea528ed566f8ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.377-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe2ce2217217771168786823fd3dd86cea7c6bda026ae7bede7604f591fe7448
MD5 e0fa46bef4503d6c7ef911f46f4988c5
BLAKE2b-256 9f3b89627332fbaab57c1ae7d4cc7dd2307c606ef1133754444ed074f09acdf0

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