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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.66-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.66-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.66-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.66-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.66-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.66-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.66-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d6e2b29053485b78921ac4dbd2a62d34e603447c31e12fdfafd8a7ec711ca6fb
MD5 9eb21f9114c3e6874b9318202cc2548d
BLAKE2b-256 ead7582ab4ecb433d0d320c8ca61d3273ca91577fefd9a59e7f9cf32d056d613

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.66-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.66-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b2e03fe224fa7322875600c04ebeae988a2677becd311aa58551d49b87283d4e
MD5 a1cb377bfdc5d5547e55c30ddf9762b7
BLAKE2b-256 450d0d34ea679f57516a1ca3512170cd19760b89bdaea5940ad5d214b863db15

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.66-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.66-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 534ad2a4be6c4ca72d7345be6bbcc137a60467b9c651ebd4bfb907221fc3719f
MD5 58c7b982eabc08a41f3be3b1d2b654f6
BLAKE2b-256 6f8bec7a9048e9227e2cfc9eb514afb30d1eec6479906d56eb34bc71ee53981c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.66-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 025eaf99058e92a85ad87cf47360628d33ba27bc6f18f0fec3cbed8793840dc1
MD5 632aefca65e11352b43733e8f1538842
BLAKE2b-256 acdf098336ed8909549601923d320615e8819c196026c1dd3258afa1d02bae19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.66-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.66-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3cd4de3b907625daa4cfc1954cd2eca7409bdd606d8bf06473b218351b0dbd0b
MD5 6edd9c030dba3de74332faece3bc82a9
BLAKE2b-256 1f93fbdf49bfcad6145e09e80672058f8b607789194dc924202c6fce5457ec26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.66-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.66-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4403c9ba99cecc748b370e84dad2d2d456d3d3b89bfa36250a50b07593eabab6
MD5 4c74c40d6368fc9e20eb40a14a70177a
BLAKE2b-256 5e2abf76619b651e12df07255c32299c9fb47775da85fa451f4e7acfff0fb863

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.66-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.66-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d98b3705391d9f8640b54e6f94c46b544f5e269793c4e253a1c14679cb97a768
MD5 673174f29ea5ddb6900dee43269a25d2
BLAKE2b-256 74dbde0933cb5ad90a173b2885f778534506e3a3ae74b075d1884a3737c8581d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.66-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eece872a86e0b89a23ada53e3c0f85e3ab4057fff7cbe474aa10ab3d28e89359
MD5 83f178a8ad6c4da26ae34ee76c810239
BLAKE2b-256 a6d0c55d1c531f4307eec76f59cfcf2fedfdd032700bda2cefe3c6ff843d1ebc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.66-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.66-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8c2b79ef7a28ab4fc312b0129a71ade75acb6d3d789050f7437fcde82dbfa78f
MD5 f424cc0d150371e37c1020cdeda7a83f
BLAKE2b-256 dba6beedeb3b92cd5037effaf2e3c4acb95af400b4df519d2c3066b86f7543c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.66-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.66-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0f8360a36a9d3f466a943b26071709ff14923e71e053f2447ccce80958f249b4
MD5 097d0a1c318c21c324fc1e696be3a10a
BLAKE2b-256 1b205946f28700c0a119793cb9443d5fbdc7c914fa7da7348cddad08b71bc526

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.66-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.66-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff7de254bfc4f96dacad4a913b45f718ab3ed6d6b23ba56a4501e78fbc4124b6
MD5 34fefd9b442276c7921ebc77ea4b1741
BLAKE2b-256 7913bf55ef7f5bb4dd56d16522ecc7f8ae5260666e354acb44e6d46127d0f94b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.66-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14628540ed7d6540a69d592389e58bfafaa9f9b97f73c8f42b010663330e4981
MD5 15cb6578f051d81f103dbd514665cbc7
BLAKE2b-256 fa781dcb1cfac23bc5cb1f7e58a0f5082fea4f70989a3bdfcce8cdb3affd89fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.66-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.66-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c56406d6f13e7d867ad4afc1df1aedf04b5649eae3830fb635ab7ef63bb689f4
MD5 5e69add3e9f20a198db21a66c8c5d75a
BLAKE2b-256 840b60d98ab825e786d75dc17925f88b89c7d4330f4186c4e8daeb3501a8c613

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.66-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.66-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 abcdc5e93c6cb5a8b1b7d838379fe5a539025756245d385c7f883ce06c4d026c
MD5 be2445d55a5e58f138315d838cac8aea
BLAKE2b-256 901b2130fb5325f9da953712470d0601dfa49bd548372c202b3e2f97ac9a7719

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.66-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.66-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 db8c83c100a2141d6885b409f723d6c2853c8b327b1dae55767669cd48fd668d
MD5 f895051b9a12869ea6a571b243643e4d
BLAKE2b-256 56a7699efbbfba4c9d23754e2abf78d4209928f7cf9f1805f02267d5f7b9f1a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.66-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71e0389dfc94393fc0c5459369e4ef6b4539ed7009482fa2260a7711f82d7aa0
MD5 04ccd8b546a98e839368b439ac51190c
BLAKE2b-256 824ed4c4395a032ec869f8cbb167ef1be3bd19470f09d736131989878c67f62d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.66-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.66-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3a0adffc3ee6e99ff398e99ae37897464988060779d4709e3221731921d867ae
MD5 6a76e89a07613a671f4cc0e73db3d0d4
BLAKE2b-256 de939c259ca5fad42f0ac2c4c3518949af22e60e343d6e1a54aaad2c7bd0efe4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.66-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.66-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f8e8e0d8fbcf831b7f45a457441eaba354bee53c2399c0981e97a5af188899a4
MD5 e69116445b164477a5d424701952334c
BLAKE2b-256 e0eb3c36eb61a19742b75f7c5205a45ea466eae04fbe4c1ce37e415339265b59

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.66-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.66-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b67f616c67169567a367b391bc2f35022fbbfa6f4c6aaa8fb21401bac0671c72
MD5 d6c930aa2d6d4b91d70b1351fbb6c24f
BLAKE2b-256 61c425f612ba69e579279be5c0e31f93b85c82d6d1510b93a93634824b5005c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.66-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f09e599039822bd9c92cf6e4cbe911380ddff908afe5d32ff8d056f2c20a4123
MD5 8d627c83598856bcd9f00c64e63bec4e
BLAKE2b-256 778fd5d94ec8cd2e83d9fee6cde0026c72a60804b70762ec47bb01094adbeb0a

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