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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.442-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.442-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.442-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.442-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a65312cd489fb643350098f5e59af0a1bb020770f8fe4c6c9303b393f8f6b215
MD5 99e353cff2ad7d43e936b6e4dff8db2a
BLAKE2b-256 23db1cf404d0d07415d884cbc58721790ede908758afae065ed0f76df470bf88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.442-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.442-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 533b49b4e4470f1be878d4b03abd75f37ae08ba44e0819c13f4ca6cbffd3dd83
MD5 2b5dbf238a0ed5fd440a241fe3ab19fb
BLAKE2b-256 b5e32a1fafe3f6882fe51b4041c42891022749f87c12a78aec41d9a263bd5959

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.442-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.442-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0346f62e48d52bc7f4ad1cd93b439b001d1f1c6364493f9da6c3fa11edc3a945
MD5 6227c420234d2b7cc809d2f63e2a8839
BLAKE2b-256 fead980c313368504a388acade300880fe90319c94258345ccc1311b92d52ef1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.442-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d0d4314258cae85435c7809f2aed154ce62da8a9a7065d6279db641b2ff7deb
MD5 5b2d8c42a17d739144051c10f8f4c0cc
BLAKE2b-256 315fa3a16723a6dcf2224aaf1d8d93d736aeede8bc05dbd3db0c452a4c8f9c41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.442-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c15966106ce867f1eb4809623d21c4b7bb2c5b3642491c001466d2a82538f85a
MD5 c749aaed582c988a17224fcb99a5d916
BLAKE2b-256 358f656146bcbe589a20c2aed9a3c0ec8e3654cdcc65a3a1b2890d199648f2e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.442-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.442-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0cd53c50a55747d940c7aa7713d3f631e5ec058a76507d3983dadaf3c39b421b
MD5 5c8950eb0eabdf179b0dc59c4ca851e6
BLAKE2b-256 8683aab1347eaacf630313566ce7c47ea411cdc6ef0cb9d25f0d529b6d389f50

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.442-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.442-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4223ed596fe916fa7c284c3c394afb435380aac4fdf7d4ade896bd13cadb9ff1
MD5 da77267044130ae01a90d13a0b29e2ef
BLAKE2b-256 044359bb6c97df66c961bd8297a56f26c79591747325f746ae45d2dc0b251436

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.442-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0784741345408531310c7db4842ba085f58e4bef40e4cb2468f65ad2678fde48
MD5 e0ab6ddb2e19e5192c09f057f50efced
BLAKE2b-256 a95ebe226783e1f570e20bf292c7586bc5c35ec2399b5309150640342ab57319

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.442-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fc92d07fde6a39145d477c13f63d0c2a74ccda37fee56f395a5e63c4908a84ea
MD5 8568751c4115bcd2645bbb26986e761a
BLAKE2b-256 8023b7b9a41d21ca2d2aff25b3a0ecbcf6a9e683c9e762308a706159511c3456

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.442-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.442-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 21dc60c4b6b4ac8d138200d467980367c31395d0fcd43ba6386f47225610cca8
MD5 25f977c9fffd8eba4ab12c3052ab052c
BLAKE2b-256 8c11465e48c9b88a7adcf62b8cc76d360889ab4f828232dadf8be2942ed74dae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.442-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.442-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2d8b339a65710499b36043eb80f3f66f1ebc7e217e010e98febeab3567a2acd9
MD5 70cdf43db52efcb4fc0cb819d524e387
BLAKE2b-256 374268f179fd549ad07155c0c8f41149f3d10cced049980f32287a2919356707

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.442-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19608efa95dfe984b70a3423dea064d077fa2121af5cdd1b0eef6fcbc9078dae
MD5 7bbc51ac63b108086cb227cc23b98bda
BLAKE2b-256 f9f8fd79391008121ea52afad9e9436670424218e6a504c6f72f7962203e95e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.442-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.442-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d0abd704de8a9a3515cf548cdce0fd0e4b3fad0aa7998a2713f52c032c6323c5
MD5 529bf38db121375334e763bc62b5002c
BLAKE2b-256 bea0e0ffc4d386d7074729af7c5e5b1e7791a8f0ac1829d4ab2b1806b4689e6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.442-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.442-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8ccaab7b658a40b26494a48564b4b01160cf576299560947affcb33c7cf22ad6
MD5 4626531dcd9d6b3d884245d49a153b1d
BLAKE2b-256 a48f847367f8773c2fae3e2332505a3c05aeadda70d140ca1d0ec27390c5bfb1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.442-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.442-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e939d7de788a9be017e702f382cc4a4bc220adcdf77fb7fb98a62b945761c8d3
MD5 c93c9cf209393c4c85f2a0cf7daecc7b
BLAKE2b-256 9476658cefee693add2d78cfd482d9461e61b85019d44830bb5236f125f2aacc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.442-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c821aadaeb6935bc774204febc25e62c8fb099b023e4b427898e07b0646ffd3d
MD5 8eac32697763c6f8b42a17c2c4f9460f
BLAKE2b-256 d5754479aa01d3316903181c82278b9087c7fd5928976dc7f5769c67a3fcc05d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.442-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.442-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 57b98878508f52542c91d358ffc1f09482f7c97be45b27d2922e8362c8fdd4b4
MD5 cd23ef4177e6941bf396daadd9695f8c
BLAKE2b-256 a27b64dafccf9aab10d8c8d0b7f530d5fad4f799ed72a83fc5f86f73ba1a9bce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.442-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.442-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4d872b0b1aeb885152eba4b7cc0eebad15dd84215eb6e920544936e47f484167
MD5 909cd48d1d2ba91c73ae0fa541a70f4a
BLAKE2b-256 11bc6241d1eb39b96770d5a6c272917f4d581f3082524e5e0359b8e1dc0f4e59

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.442-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.442-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5bbd410f39f540759a079de6aa4292a2a5259e2e92c515d7cdf7ca7484345356
MD5 9237bf3278832b038dbfe323176e27c2
BLAKE2b-256 067bc961dd0def04a0dba6851e18ae01b106a7c5b974de095c06a20324a361a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.442-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f5c08a2a333747704c5e51d476a2108564644abbcfde52a813f82c461891d60
MD5 8e500ba0a770e98d83821a075ab9e032
BLAKE2b-256 7fe642b63ff79dde84f3c9045e8fd8a1f397e583f1b4bd55381ff58b68f9dcb7

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