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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.388-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.388-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.388-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.388-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 394248d8729fbd6b420af01f9aa25ee3c2f330411e2be377171349a656d4e7b8
MD5 d30fd31d1aced560c9e667ff52b1e233
BLAKE2b-256 ca6c16a2fbb85ebaa1cccdde38981c504b26715730c101d86d96f06c258e35d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.388-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.388-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b0d74094a98434264b7d6d02bcc33e15db4b2aba289bc3ee3f41490e3016b420
MD5 1fafe22aa8d4f7a80fd1f3cd0de89167
BLAKE2b-256 edcdfaf6a37e3b7341f2b472d7d26b7ff1ae1047ab62ce68932a5546a3c7f665

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.388-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.388-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 783121d11d8d54b2f7f187c7a1578864ae8d6d8bc26585b2a72688095e4a8bd0
MD5 40e9a7ec262a03432e129293c539f012
BLAKE2b-256 d97c219d059a76fa8c561a7c41e4a3d753a098ea078ae8abcec1443de5a5edf2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.388-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed99fb20b05f3f503c6592603eaba2825c3c11855f799f389d2091c5a10332ac
MD5 44848fcc581d30c1a7585926e8360949
BLAKE2b-256 f3d083a902997c44ef3010dd7c03ca8a08f1d08edf4331eb934fec1df5f0a603

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.388-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4efc59a1d27fcde859ff1d9a617aed18a992a23717bb9f1e1ede206f0a881b60
MD5 784805b812e7420ad035ef3d9a2317fb
BLAKE2b-256 4cbae4ca31c00fb10467fb8d48fd39c7771b1738c77a0c1d581f83923d5762ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.388-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.388-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0a009591c7a9c3a6981b136149b79c7efd40c698f768b6477b0ba395c55684cd
MD5 504e35cd7478057652cd2136c110835d
BLAKE2b-256 dd6974efc3e3e583e2f3e6c520bf03a58ea49de1565834f4a1e5732034335799

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.388-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.388-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6935530da3d8859f726ee1613f9c4cc5bca8739612e69bcbdeb957376a35ed69
MD5 c65a745ede687907d167be8477a67737
BLAKE2b-256 ebb4e40c1d7ada2a9e392132e367ae78cbab62fabcd6cb7ade151ae4bc9bfda2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.388-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6281cfcdf69142884a2a2309951f77e0b8d5282f7ac96a0abc1a036c867a6b3
MD5 f7b987e45fff6cbd87777f320cfeadc3
BLAKE2b-256 1d756621f5fdbaf898776503bdaac638bc4c5aef9cd9e221e918862d4e532ed5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.388-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 306f9070d09d2687c031b31d16b7b982e811d3278808dff0f80c3577360a1275
MD5 4b909a5664a71d17a50a769b29e4c8f1
BLAKE2b-256 9a0f0991a05566a5c39f0c3f455b29de3e7dfe4fbaa014b75d7f9d49084bb5d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.388-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.388-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6d74e8fbfbb3eed724d0bfd936c75de399b4121addccae5b03b253b2464ee5ac
MD5 8b20c22d5ed5a2caf571990e6ba9b0c3
BLAKE2b-256 f8447ea7623fed966fa4a41cc2ed99547ffc827d1b8d9815adce0df5ad780c3d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.388-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.388-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dca5c0899bedbb6bfb6fa0ca06eec8a5a6dfa69c9196011535a56335c608394b
MD5 11a0c2ce98936159cfd8ba0a10a97e43
BLAKE2b-256 47bd8ebc14390b65f00e5c7ebe4234fbbef18db89f74416ef3e30e544eee3c03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.388-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9d19dddcab8bff438b1b7a3f064df5dabc6592a693b78ebdf8483a8deea875a
MD5 ebc610f6c355c3e3a8c06ee953823c50
BLAKE2b-256 ac1b10eac348c01fe9c3a2487080b7b9bb1e46c7aa3943678726641f99fdbe76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.388-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.388-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 938a5e4712ba3ec4bab7e17def58a1ad3b5d30649cba8b4af033be89cfc48f89
MD5 923b590a28087cd77d12129d31d0e2cd
BLAKE2b-256 1f5e93eaca56e76d38060d99f8f17feb0393952c856245785e9bd954012b3998

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.388-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.388-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e16cb6ca8d0bac35add22b0cb971eec95c0505191e4cd6d7f747ad4925e01536
MD5 cf566ad45ba052c84a448212b0941b9f
BLAKE2b-256 e7d7abc6da682d1da4fd1b49856e85d74c6db986a671969a5d276206fede62ce

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.388-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.388-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d7d84715a6e66cf490f9eca91dd408cc7ddc28d3ac01633de9bd7c2553e3a602
MD5 6b44d9a6c7b1e33457aac7f2742c7ef6
BLAKE2b-256 43445cd5df486247986738268e86614dabeb208e6496b15f8fe3dac161e03408

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.388-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a91c45256bf6b3374d4ef1c23e3d35e5939e238e8496ca61df066e36e3d74cd
MD5 86edffba28689ec489eec848f12e9157
BLAKE2b-256 a873fc8aa325802356a58bd9ad53338c221757d98a5f7028f77ca5501e182307

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.388-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.388-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ee78aed5f447aa88974e54025dacee8231176f96c747ddcb88df99b8a4d53b9b
MD5 ca48979c7311f1588a59ccd920a7d0b0
BLAKE2b-256 78d541d58080e79e9b7e7c221ceeb15702838db0fca248e3c299329f9c05f660

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.388-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.388-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8d24299829c7d2b8ca0145c65a39e3c30782a160daa9d187cc12c6913172b26d
MD5 1701efa2309e4a9a2e82a155b3fefd08
BLAKE2b-256 b2c0b0c638fdec07d74d59677dae5bff2bcdd3494cdec7070a407f2d09a8e3fd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.388-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.388-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1dfc3dc4a80a6d9437d7572ee0409537226427e45b508066a87a1805f7677842
MD5 83081b706a607ea3ee8cd6bf5e8dde17
BLAKE2b-256 10ab4aaa09ef6b443dc7d8233bf361cecf23418a67b8a3f16099a2f20cafd2f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.388-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e56d16e62e9006d887d64e8130a5a0ad0cf934e27711635de84c92dc9c7bd9e
MD5 41b94482e9bf466e7ed0f388d252eeff
BLAKE2b-256 50933e8f6e25143598943bbca481976396428ddb335bdd0e243fa485d3b522f5

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