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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.485-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.485-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.485-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.485-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 01c581de6018c36db160ca684b24ab3f0b4f67fd2bbb253a0d263ec6b69b6e6f
MD5 8a8fd074c5c42d3dd104388e10007bc7
BLAKE2b-256 5d5bd9f5fd00e23225363b41c281894539fedebbed63f22afe1f6994e308e0d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.485-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.485-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 abd68abe25e9de6bd105f36084ef4f13b4f99510d45363809247c84606f58e05
MD5 3e5257313e0833ac575e79baf50fa58e
BLAKE2b-256 664cd5c6834e43527f3f244cb2087529daed720321813bf73dcc7fb199d795bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.485-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.485-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 36fffacbb8b5140b2790d61641283f8fff5c98e7da95a1c7aa7e9dfa15333f24
MD5 ec5ab36f8b7d17f9465f08ec86fbab8b
BLAKE2b-256 bc8922d67710814e9af8245ec7a029842bb95e9c2b0a187d5ffc1ceeb1e28f4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.485-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20f0b44242980b4876da3b1cbcca27cfb381e2010fbfa39befd25fb7e0f32636
MD5 ab1ebdb3078e4b24d14146e9724c772f
BLAKE2b-256 195a1e0bbfa2fe712133289259610caed2a74a45ee6545c24a3ac32e03abd19b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.485-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fe68cf23c2e534eb1ea973b212d5aa1e8d1cd6b4b1a46d4724b3da0cdb9ac942
MD5 45f95b91f2cdd87455bb4f4ed34da188
BLAKE2b-256 f7fcd07143a31b4a4e6fa45957a23838135fcf9811281aef21c4d29f32238fd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.485-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.485-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c949807d81d219dce58a1783440e7307c5d0fe4662f00273654120073314f1da
MD5 f42c061b446252c142cc74e704fccc41
BLAKE2b-256 dac7cd84a509680976c1adf2fbc3ae1b9439fa06724013f0c540d67747adc1b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.485-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.485-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 37cc73ce2236ff48053299c40c37627193609ea01365386093d189f1cbebe4c3
MD5 602d2c5e5d51b2f3a6717d97099229ce
BLAKE2b-256 147eddba024f3cf6b7df9a524b870b64823833b44305c0c15256ff1f341bdb2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.485-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43c32a0c1c0f6cc0902ab52876210a99c768881e71744797459bbe4500189e3b
MD5 0f18269edcd65c638b409268d25d53ef
BLAKE2b-256 6f694998a16203e7e1b248a9e1342c4814e5dd7c3b7eb68eec554e168162671f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.485-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dc8890ced29cd51940abfac00033e1c6e5bd638f79da14a9c327c4ce2b8b3faf
MD5 abf0156ce43cbe2dfef3a7249a8a0c02
BLAKE2b-256 f274fc04fb9ae3ae770fbf597efbe1bdc4f08cc3883434511479b2d5be12041b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.485-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.485-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8c660bb7022386f3d419859a7ad68d4d097eaee07eb77b676b38aa1094bf687a
MD5 bd572d3d9c588e2f5a9af4e05e0674e2
BLAKE2b-256 109c56f556043e2f29bdd8e13e8101c6d3f7807cd3e88d5134a5fdcf92531d67

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.485-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.485-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5199adf02eeef57a6633a8b45af883d84fbfb14d33b24b68a66cd8bcc9def07f
MD5 081b81ce1a920c35fdd97dc040421acc
BLAKE2b-256 1fce2192e47660c66e6a9f7a925ea08f69abbd986051af28e6126c9d75322921

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.485-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e8e2820d8b032a53f2d50586fd6a6284fa6764fcb4f6b681e8564736f6476f6
MD5 2e01a69783b6d8180be83dd1a67d4fa4
BLAKE2b-256 7dcfd7643a4449587e5c2788e10642c52f9ed2760c2d57cff5776e91373057b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.485-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.485-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8afaf5a2a7f96c2a9ad2e6edaee25f52e1625e336a54ae61fff633d8ead3a179
MD5 15662594e74b52c113aa9d61f69842b3
BLAKE2b-256 b364c412e6445632194debf33f4742ff84c3dcdaf82865eccc6f915d60eb9cce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.485-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.485-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 aa600b309faa79a396201bee0000591dc8e03eab75ac385610895eeaa1990bd0
MD5 a2e2aed967c829bc423e42588d5041c2
BLAKE2b-256 2c8dfcd19083c31b384887af7d90e18fd409a37539aaa31613ba7c375f2e21f9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.485-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.485-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 10ed2e81584f8bdd45203c133ff1f64e0dc7405a88e19d69f9155bece1acbb95
MD5 721fc574ff428aa0a6d860d333adc77b
BLAKE2b-256 66f11fd35b5d524af5bb0d86540410dbff24dc26ea2d1a557586e805ee8be8e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.485-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a3805ee49d19d7d7ed586e396b4b0b3a33b0fdbe18ffbedddbf2c58eec0a1670
MD5 0cb9cd3891fe4f536790004db611d0a7
BLAKE2b-256 13e1381bef9c5ed4100de9eddcdca485718c316f956e21a496469c61e20c93bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.485-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.485-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d51e67d580a241ba2da461c5ad31c7759c0fe34f14aef55b7f019b7a38c86141
MD5 e755c625db6a491293f42bf57892ba99
BLAKE2b-256 9fa39b251f1c4721664ee0d71124ae4cc83756691ad498a17fdb349bb01319b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.485-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.485-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e6389d3891ffa17c6da40473c389cdc634005309016ea25e8b59a0f423198384
MD5 6a77821b1b8ed3e3cf29c2dca107084b
BLAKE2b-256 0437d90875066895ff0407908180f0fb8c620475796198f9eaceb8c43425b888

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.485-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.485-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cabcfc6fc1bb46c448e1cb4eec2766f9b4beff81c547ba06db984ecc369dc957
MD5 95f1ce7c5c72d1550163476673c6083d
BLAKE2b-256 879948aa27258dbceca3e2df5f17581285ba7a6276c09d0a55c6d53ec826af88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.485-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5871af5c3c6dce9293ba899e8b872122826e4a6f4250ea04093e393ae02e761f
MD5 b8880a311226a387389b4926faf5e34d
BLAKE2b-256 06a7b6356e8411d74170d0fc39a09701c439b2f5e3e58c3c19543012f6ea850f

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