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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.5.11-cp312-cp312-win32.whl (121.0 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.5.11-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (374.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.11-cp312-cp312-macosx_11_0_arm64.whl (127.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.5.11-cp311-cp311-win_amd64.whl (124.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.5.11-cp311-cp311-win32.whl (122.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.5.11-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (335.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.11-cp311-cp311-macosx_11_0_arm64.whl (127.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.5.11-cp310-cp310-win_amd64.whl (124.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.5.11-cp310-cp310-win32.whl (122.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.5.11-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (324.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.11-cp310-cp310-macosx_11_0_arm64.whl (127.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.5.11-cp39-cp39-win_amd64.whl (124.8 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.5.11-cp39-cp39-win32.whl (122.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.5.11-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (322.6 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.11-cp39-cp39-macosx_11_0_arm64.whl (127.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.5.11-cp38-cp38-win_amd64.whl (125.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.5.11-cp38-cp38-win32.whl (123.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.5.11-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (305.9 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.11-cp38-cp38-macosx_11_0_arm64.whl (127.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.5.11-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.5.11-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 124.1 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.5.11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1fbacb2d91de1014601f89f563a6d96753d94c473b48df949562cb61dcbca384
MD5 61a4a6288782a01ce65e711e73656e12
BLAKE2b-256 a433b69cfec5598ff096898691651cedef901798c6e17376a8301136c67f5ce4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.11-cp312-cp312-win32.whl
  • Upload date:
  • Size: 121.0 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.5.11-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2f608321ae8ba034a15ef54dd67839a499cfb8171f9ad7770757a39bf36151a9
MD5 d28258fe34d861c1bf8f7e59fe18900f
BLAKE2b-256 cfeb99e7c49517b373709122b5b26ec2607ceafffaccc362b96d1e3762422519

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.11-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.5.11-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 65503663c90cba8ea021f13b8c0388c9e2ed175131d77d4dae2007858359a506
MD5 7dd6454d3c9f338704b761e76babf118
BLAKE2b-256 d4c69265aed620250fbb01ba2260b6c130d2341b3316b0f9f77333be91251e3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.11-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a16777b16d602938d98f108fa79cc7ebecb08b96bee259cb09fce501f449c020
MD5 70890e38beac204fb10148f7beb28e6b
BLAKE2b-256 cea0929941e8579418e10e8845ac5affe61fe5a8b154ede613365aecb23d659a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.11-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 124.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.5.11-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ad8d61c6422effee14170ce29e62238c8dc34477d030ff64c2ff2018ca99ae85
MD5 7e1215771ee02b745adb2d52670e9121
BLAKE2b-256 dee1569fe3aeea68fb76405a9da90756d910eb082e81130ab129ddbb6e46abd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.11-cp311-cp311-win32.whl
  • Upload date:
  • Size: 122.4 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.5.11-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c0a72f3c29274fbeb1503522fe17657df9b98e5e6765df2ee168e8b4f13cbdd4
MD5 03fa3fe025e9c017a478ae1f27e0413b
BLAKE2b-256 6c6ab097798c186fa4ef2267e3c6f19d9f1a63c68b6aac41627824397ec585f8

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.11-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.5.11-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a781362f8a4d427a9b8a4f4ec4767cb61ce0c57ae4d4708c679562c3513e8f97
MD5 85de783e562ef568727080fbd70a0296
BLAKE2b-256 2d665c339a5d81754819cb2aa1d4032369f966fa480738d8906351a2d3e5b3fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.11-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4e3d118098c2556b81500bf3ed0677fa63cffc8214c7f5283d0eb8cd1e1bad1
MD5 c7f1966b1cb4db2e4d9c0bb063c04220
BLAKE2b-256 87495d488d590d06e1d3194069c6ff0eac5922afecbb048268273fd30618d559

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.11-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 124.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.5.11-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 763e0e798abad03d933432344be14c6e22d1ce14d9dd8113b6568341a246ce58
MD5 eb9ee4e54e85132bdb0fbf3bd78f1cad
BLAKE2b-256 63272012b8cb34e365132457b71364807ee55492205950b0bab139c609c80f3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.11-cp310-cp310-win32.whl
  • Upload date:
  • Size: 122.7 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.5.11-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 06d7c2f7238bc3d85883006d3c9298a8cc0c9daaf757abb91da8596b06e71b5c
MD5 f7fae9d30f25004dc006fbff2bee76b3
BLAKE2b-256 dcff5dc5d5f7ad984f6b1b432acf156983a4283702a5201b7198aaadb813d3e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.11-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.5.11-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2543d08731a8b8d93ffad67cacac8ff4dc776e99a28c38d283c38e5a20cb8f9a
MD5 811e7c7e8235518707780825a11928a6
BLAKE2b-256 3c6110b2855f60f8d5d9b773cafb7913a668a614b9fc1c08d62779a76de4769c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.11-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f24ff59171ab8544ed80b177f417f7307fd35378d4248cb728d399496b9a2143
MD5 6c6dc158cc24732e8204b3dc595d5666
BLAKE2b-256 a1e1e19a20589eac66ffcdf3f7201c95fb92c0b7b75ee46c5bb2a55be19b5a8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.11-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 124.8 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.5.11-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 eea0d2c8151d1f9eec20906ca6c2ee0d45d0a882ed687baf11c46db8be475c7a
MD5 f007bcd92cd67b934eb5be5ea06a35bb
BLAKE2b-256 5d5bc3f6b37e4f501845043d3d21e4db583d72ac93631a4b68577ac1a5d5606c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.11-cp39-cp39-win32.whl
  • Upload date:
  • Size: 122.8 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.5.11-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ae1483bda5185e2af30a8f9e619b98334765527643034944d86e6b09e9590240
MD5 95f34163c119b8bf248c18f4bbbb162e
BLAKE2b-256 bff08238d9dc1d6b48d9806321cb22dfb537c8c52801859d5960ffeac80c1143

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.11-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.5.11-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0b827a493ac6acd6cab1825d073e56f5ed946e5d85dab7370b4510664db6514f
MD5 4f3a1f79b5296c3bddd7e70d45db1bfd
BLAKE2b-256 41eefd347d6c6d707946b6fcd9324971951c16c3bd0577005406fabdbeb9cb4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.11-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aedf65766c393d7baa46d2cafec7f773e5a38b8fecc465339d3e2b7f4fe8de05
MD5 a579d565fe276cc9ed10a1f41c477308
BLAKE2b-256 157267604148cbb2afea6fd5f8f56affa289724f913cf71b38f962883adf672e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.11-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 125.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.5.11-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8d1a9768380501498bbb122552cd9e2b69193da4b2a9a00ef6a4d51a28db62dc
MD5 9689af5ca39899a5131f6006a675feb6
BLAKE2b-256 fde5ad39b529c78d7f1b4ea50f8fd6baef4e0708a71e7335b1d5e585d641890d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.11-cp38-cp38-win32.whl
  • Upload date:
  • Size: 123.3 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.5.11-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 521116027f7b632fe57fbd83476b3fc772deae29f443253cc93def87e8c6a146
MD5 f28e2a5a50f9efe119d5368d5eb699e8
BLAKE2b-256 6398009295a4af52f8ab7cf3ec6c79635daae7990c161b7d5a8fcce94e4c67db

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.11-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.5.11-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 147fa394d1340181daef905669477bd4c2bc66e64a2a914dd6cda72afc1f8256
MD5 54a8936252af1a8e0b1baab1c370c025
BLAKE2b-256 acb1d962b626e6509335edbe6ded9d0d1db9210a7a55efc408db562d4e73585d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.11-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74e4be40ba1582a0d38f21890f0e208327715e85ce1a90928941fa1af772275a
MD5 360ba056bed33e87e8a054936b74c073
BLAKE2b-256 ff7049440a13539415626dc8bc1d9a84623b71301591ee9b928dba2dce33b4e1

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