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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.569-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.569-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.569-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.569-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5ea7431c7ebf755847d2d156e317db6efc0c12fcdfdb9e148773a9665354ddd5
MD5 85f1bbfde2676f959ef9bd194e9dd30c
BLAKE2b-256 48c31c1c62527527d7a6f2c1c7ca15bddf64cc44c6b357c6e9d28d9a5078618a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.569-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.569-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f70cd4e9d94c1154e754b2285045f7f74a5e524d50adc35fe5de4e3c2172a147
MD5 d190facc16ea1468c633d91994ff28fc
BLAKE2b-256 ea22eaf58109738e8e8a201c9753116b744929f43caf6bc3466052c29ef1f3c0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.569-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.569-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 153446e7ea1f7cdab442b37884a3b4efb0ef309320c4631b968435efd6c30361
MD5 ae1c94b938603758c8f8551b1e9801d9
BLAKE2b-256 534538e816c446a1f176a81d3d08b82c982e25dee78f88ad2b770aa85cc631b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.569-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48673225aec7ce6a001c5275462ebf988a3d45725e1dd75e43b135091f6c6fed
MD5 d3ddaaa199c201543ed3bea03c5652b0
BLAKE2b-256 0d457b8438ccb2f680add79cb6a5e07d665f560fa764e35ecedb87cb0acdc426

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.569-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 116ce8a2ca0faacc07357ee0e31da9c8cfcb554ef8484f6ed186ae393c0d4a72
MD5 510f52d3908c61239eedc6043eb82de2
BLAKE2b-256 777043f3c709f2af9e38a4706b57400d48b52ae5189b9d25bd654713671dc61e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.569-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.569-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ef35c883db026f81b1d3ecc43feede957df9bb3a9d4d1480d94d2b5bd3cd9817
MD5 08bd335f79bb68c4fb8adbce2a20268f
BLAKE2b-256 b2295bcd02a6813fefe9ab1ecb5ffb8852387fa8abcf1309c01eadd1bd931c23

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.569-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.569-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b61388f184792f37972962077e96a8438fd585f8903de2d9d2a67ba338e1faeb
MD5 4b298d18e31caf6681c3d1eba516512f
BLAKE2b-256 12e9fae7c786192dbc027be878a17b2f1e274189c9db44f661742f2ba9711a65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.569-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2bd0adba710bdf4375f9eace03e0be83d362bee2d376b574d4ccfec2f63b4815
MD5 da6999935c8c0b99110aa648a9cf7628
BLAKE2b-256 8e144134ce82269e1c9bed22220cb3030b2f902ee66501b5e855c9b03ce789d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.569-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 11014bf9d48fb09c94a268881dd99a1241cb6bb7b372700563692e1f90b48c8d
MD5 0513c9dbc2cd343c4b340fa77c6d031c
BLAKE2b-256 753d46b6526a03ed2db177459db87dbd19d8868edc271401921a4b544287bb73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.569-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.569-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e2c22380b06c2d8af6f1a8148dde286fde40086b976ca946a33be1214525998b
MD5 a5a3c5034bba132723a174456e69f7a8
BLAKE2b-256 f78e6e4264bb9b2eafa962455ccd857f3e46a37e4f37aeff11737bb1f0305656

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.569-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.569-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dd98423f6f9348636874aa984008dad94d8d2e45368d7a29154f9ba3d6c1df58
MD5 227d5a0559248b0f50441ca5c157bc71
BLAKE2b-256 2c1b60030982c27994bae7ad1d26d0784631f64e14639c1309b38ad71f87eac4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.569-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a4b0c9d16065db96ce464b19d30d113f2a241b0286b596753c645f76f69b2f6
MD5 021e6a545e9d00b9825222269dd8cc9c
BLAKE2b-256 d9805344a25ed8395ac8eb785dec13c37a57dbf0f00d546042e298823670a402

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.569-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.569-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0c0809b0c87c3c455148c63ae90f5eb88cae694ba2f370077f93c59ba73319ff
MD5 9aa922f85b6991781c43dcbc2499305f
BLAKE2b-256 44c1cbd22fc4874eaf97d611a2e7217ae0baef07ea93380391d18c26d0c1599d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.569-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.569-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 61ad1db9ddd03c395103637a566a49b8225f4d617db8396526551f13853c7da1
MD5 313aa19d677f7fd449f0c24bc9c86f82
BLAKE2b-256 b69f9cf3b03c3fafe579d19cee18c2fb1ab550e32d1e8157620bb7a6e6dceef1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.569-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.569-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4d09925cbb390af727f5d78affe6a2d3d8685d3e9fb6250ba881492a2cdcf7f8
MD5 cae8079f631410d78ec5d4d995842a44
BLAKE2b-256 0f96ee1be285a04d885d3643a3f856b81a4a1b1c4fb4feb721274538d0c274c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.569-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd2cc92afa21882e7ed613ba118b3f4692a3f74a55293309ea135cfb6deb7cee
MD5 d291894f582df347685245b8335afaff
BLAKE2b-256 64f18ff375de81bb4d47960956e4250fca1812800733ebd7fb6ceb38b89a590f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.569-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.569-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 55bccfd876db44252ebcfb468ee99e55762e2b0bce1c0544f12fc88e38915981
MD5 bee81b126ab82ae36564fc18bcfc468f
BLAKE2b-256 0d7f50bd38fb18af22eec9095e85bd213498c56458c5d2592a1347e503bb1745

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.569-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.569-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6dfa09e8a7e92fd186eb89e4f5f36d6ed2f1e8b8e2eea6b1c788309ce8e13854
MD5 b4276bb8909878cd398b782cbc640f38
BLAKE2b-256 051788cb70edb2384bd51770a9d1c13f6bc23b24258bdc127af8ad1f70c0549c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.569-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.569-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 56c63f4f8929c1ba8bee9ceed69da660196f902144c484bd8e25f5c0eab73226
MD5 f8de2ff8da686bc9feb10b91ca2bda08
BLAKE2b-256 d6c86f096ed963a5fc3b782911e46040a979140c6d733142404f51e93acb42f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.569-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe8084fa725edacced20cd72e74efae1d893f911085c63149cb337ec85ea4e80
MD5 361243d345ff6a299472e0621ff1ac8e
BLAKE2b-256 06df436f6dcb3d54d013c82d13a4b1cbd537644201b0710f36905c51aebabf4d

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