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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.180-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.180-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.180-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.180-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 711924c64a7f15944993f23b4596953f6a6e3c212bdbdce43d2a76667b9844bb
MD5 b7aab272ee151f1602bdd8fcd6be7934
BLAKE2b-256 8f03f934076427a14479b6988434dba9960ef42ff158362f7d3c6e98696ce81c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.180-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.180-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ba2698ae714b8e6567faef386824498782a81e8f13c9eebcb1993e2cfcb1b662
MD5 68c358eac939bcf3019dc03858b0742b
BLAKE2b-256 84ecf54a671e8166bf11cca07ca859d58c4fa6c9087e900d41620387b9e2f09c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.180-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.180-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 71089a6d51e0a829924e96ffb1c5aea927851dd80b48e0f3efde49d3992a7545
MD5 ac1131c803bb938a41b69c685d066439
BLAKE2b-256 f238c06ba80b4341ea6f77160b999f2222f15051aa94a08f828a44879fd71399

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.180-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3dcf02aaba9f5d14234987aac4529e6b2ba0b8c5c0e6f95db957a2607e168dcb
MD5 956cdb41629772b40970898ca903c714
BLAKE2b-256 ffb0463b15f78414a473326c3dfccd757ca4bed40bec9e6f6fd34ec51eee0a37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.180-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f9f65fe2a15d2c19d1b694d0cec276d34d4fc6a5f756d15d325c1978037ee3cb
MD5 5f442da7bd65984cd2ed65110404b9ca
BLAKE2b-256 42088b16921396d39eb5d3435a75eb49a131f1be5adab7bc542790230e3e5e15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.180-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.180-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 723674b4b961603b6c846de4947366f9349a0666238bf446d27def02fe2f9c38
MD5 84d98e7023dc3b2c916994059d4cd4e7
BLAKE2b-256 55a5c71c42f6ceabf449d9fc09820bde8217a418afedbb9dabf2a409a5aab387

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.180-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.180-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 655da0f19a1130a1b185a0f208218e8ab891365b434e8f18fda02c886b30cca5
MD5 a821e1925cf4fa5aef2f8e545d3cfc2b
BLAKE2b-256 17760e9123fa924318b6c2d13b98d29bb35491ae005b441d35e66c5e2eec84f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.180-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 17c1c3bb8ace41aa5ad0a4db3c854637d86495730448dc74c4b7bf2b49f8ff78
MD5 ce16b137462478f1a81902c87b411975
BLAKE2b-256 a95a1eaff6aee4022aacd4863e158c574c679e74453f4c34ec54d92dce1b1d5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.180-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 de2a49a999494f1fe60b02d7e36fc7eecde5b9809d8ba7af633442a4fb06e1d7
MD5 4da57f522efdd53185f15e319013784d
BLAKE2b-256 3cc33cb69e9e02ddddc9371a7f3b9dbde8322e9e0545511e3889a3fcd9ca2950

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.180-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.180-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8e6ad2d0e4bcf40468479a15096e14e8329aff2f48b3b2e995af1d5a20244dff
MD5 705e4485249c392bf9b33848f2dccd61
BLAKE2b-256 78fcaca4b52f60aff306e4cb72743f1f3e20e62273adea2b83074e3bbf434c19

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.180-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.180-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fbdbb1ec9b173ddb8e37caa08aeac855a61d2dad35071973959fde0528a5e46a
MD5 b3060f33eb236044682bbbfba164fc74
BLAKE2b-256 3086ac56256e44434493d2821f0a1a0d288e1a1b5ca126f184b3ee2173116405

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.180-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dac6e24664b4c2a0bd8c33ae94b641cdc6ee2a2d358c5f379618e1be245bed0a
MD5 7fd2c1f18277bc3c3d3a5afbb221c8d8
BLAKE2b-256 194832f08c3915981762961e1e7bdd8e7eece0db0ffd66b203ebcb95be15b678

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.180-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.180-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 19fa743372554035584c381270123cf834f460bc975240ffc4aa920638c7e79f
MD5 d766cb5eeefd7401b6f8844c0d5c23ad
BLAKE2b-256 8e2450ac5db1007512fc1bdfb238decc9dfa34c9bfef427b2d4a68e0c659ee15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.180-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.180-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6212f2315f151c5e874c081de5994ad44e0ca1ca8810267f02a0749b37ac951a
MD5 464324ec467b5b61f68523b158846b63
BLAKE2b-256 5c779b4dc64c5cb95b8fcc249b90e6c03c6466a8785e9c0f40d7a5fdce943d97

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.180-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.180-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c4c025828916481ac2ab186ac7ae856ba847f3a82bef0b1db535c5e668e8fa64
MD5 ef50d7457cb7d33a38e444a426336f57
BLAKE2b-256 c0ee461a19ce1afec5ac3d97900dd47c9bf31dfc6467929edc81b899b43764d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.180-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b0bd79824e3ebc397634d20691dcf59141583f3185ba3d2de7124b78db671e4
MD5 afc36a0653dc708495794f9c802f2abd
BLAKE2b-256 c8fe2a7b7dde58340c58982771bfa21678af626ddf67a0439bbdbd749f42fd92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.180-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.180-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 72a718cf7de558ca651e70f797f134004f8ecf7d9e72d6095557ac3acebcc8e7
MD5 efae47c3243d2c33d9e48483dfd392dd
BLAKE2b-256 b02db5e6915f0c8bd7bb82332f658df5c992e9ff8ebd52df7336abc0b46b7858

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.180-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.180-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 94efeb32755fc881c2237fc23e3a1498a4262f5bd17709452148c6ac9b848765
MD5 517b869d4b07486e0346a4821244a3b6
BLAKE2b-256 8d0720e7b37fe663fac48809df25aaa219668f12192c965adf696bb6e54ff826

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.180-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.180-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fe88cc8f9fcbe1ddcf781ec6555137f86957ccdd7ec2c832d4e9d3cf82b4298c
MD5 56446aec2c9efd64a8415a77b1783801
BLAKE2b-256 678759a7b22f7d6de52304f7faf815ebe9d5dde0ce4cd4d886a0f9a42889de92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.180-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0cfbfc4fd9b7adf1bc048d40d1bce7db9afacc1d184fd1ccc6846819d0701756
MD5 9e4fb623fbe8cad33f66cdd35e937c4f
BLAKE2b-256 86f07881b3c9b62524c88c1ea215461bfb55b0c02567b17df8ff270d74732466

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