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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.891-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.891-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.891-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.891-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 007547c8b4581d008dffc0c27cea697ccc5290ebd24e815ec02d447b7fa67dcf
MD5 d7aaf558a955f69e769091c45a1d1af1
BLAKE2b-256 19b15ffd1be67461770e9c5c79b5290dfefe93d3a1225052f083e2c9301546a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.891-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.891-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 70eb5cc10d70efde2e193c0c6f5bd89a89c8aab2564c5da2f722f9931fbd4683
MD5 ebcad4c6913c8b2b98d732e1ffbb69b3
BLAKE2b-256 58852409f46afcb2384af780bbc612a90b9387b33db1d82be5e8cf43c0cbc48c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.891-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.891-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 382ff54a9fe41dc8747b6556af9c49d0b277b9eb9b2544ba031c99684f5d1e45
MD5 f7cbedfbdc0bfd76e983249f0caaf48e
BLAKE2b-256 c2ecb49a80c1afda3320731462015504d1ee70ca6f1b1a23a8064cb7658f3c16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.891-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4fdf4ac4da0b7e731a97feb81fafe2e25abe9bee4733e13e3204232c812434c
MD5 8f5f03494cef9c6be307695682acea71
BLAKE2b-256 763cc29367c8ea46e9b4fb36378ef5db3598365d55bcbf910bd8345938e3a916

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.891-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e71eb57b314db10c591be7d048fdc994b044dc294357f2c0c9d014e34a510eb5
MD5 c921f95897aa07b74216e71a56832016
BLAKE2b-256 c5a536ef1292534ccf52d08ca151b4b9ddd4e40bd7ef3206994b9cc8ee5db567

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.891-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.891-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e2fe31cfa70720db6f4d639c5843d1f867e6984159d645af4d00444ac279b9d5
MD5 1792dd5e4d3a8f3e2619b352dded8155
BLAKE2b-256 91858c904411930482eeed6dc5a3f03c28310dc8d1fb031ace336e8cf72544dc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.891-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.891-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0d04c4ce27dc189fa4af8bd9525a30b78bd436cf1a1cf1d8976325492ca0520e
MD5 6d13d4861ba8eead285b0b74e1f91f3e
BLAKE2b-256 f89135c1463db9fc8a585b635c1481a9b2a5f2a89e766d4ab64c328c57157616

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.891-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31bfb3239bf284f9bdd3d39603e0a785dbc181d9986488d908adc93e74787015
MD5 6b248410b07cea128d6c34ae26c4aee6
BLAKE2b-256 2842c514d87b9b827c460e0aa8815dc9588e9a0ba01ed56561bb3e839bde56e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.891-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c5a219f55771be68409d65f4750407f31b0fe7f60d0dbc65879302e5a03e12e4
MD5 4629e181d30dcc1a5d114cc1fa87ee9c
BLAKE2b-256 111cde35aad3b4720733faaf0eca33f1c8f2f8363b08d2f13b15a4a91e634d03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.891-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.891-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 76692e2d18bd827c0db8e5308cf039b69f474b010c8e5bf8a90286329fa72b18
MD5 a790cf217ab917cd7f741fe44fd56765
BLAKE2b-256 89fb6bf66d463392c8f84d72f0328b8409ed1fd96dcdf369d2057babc15ce5bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.891-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.891-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 06245a9d1d71199cd03abdf87fe16412730e38cbe1d4ec1c4f497d5884a38be2
MD5 28b6784fda28ea9c462f125743e2acbd
BLAKE2b-256 ef06cf9687fdf6818fb6f4300b7b563f85204e0c4cdd93bfcdfc74f5463caa54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.891-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 668d132451a11d034d966b37b9e27aadf5823917f3d535f00b7b6daffde97a88
MD5 eed0d37271f4b5bb1ad2265d7db13f6d
BLAKE2b-256 b385f905ae7e9c00ba7aa3a5b89dc5b14f42f81008b66ef35076c54e65d5d6f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.891-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.891-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cbbacfabafb7d27714282bc02cbcea97caa441fef13a8ace0c672d2edd2da601
MD5 19a4d026efee16b8825b7125deefad62
BLAKE2b-256 ec637fdecaae90987435fb18a36afb7e4dcbbc21c18af77928d58e1f0c716bc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.891-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.891-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b024c6dfea1ba287183e8c694afa978d8ed95eace592edf216b1b3898c44ed40
MD5 757b52820be6f33782f0592a74d67eef
BLAKE2b-256 35cd2aafaafdbfa13e6aa5d099ee6a40104a644227660d3bc3f75ad3a271593a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.891-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.891-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c673c7a77fc9d643af65923def9ab96ecabde047ad96a9bcb579843274b6ab4a
MD5 92d129046ed4bcd6ee0fc0be523f0c4e
BLAKE2b-256 6da1f1017bfeccd7739be41e6f0dbdff9eb69d08baba9d6c193f4e7428efb3e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.891-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2dd3f384e4f3febded94c491ba476655eb3396d4943a22511b078dfd6d15ad8
MD5 2defb4d781280876330f5de3fb1182b6
BLAKE2b-256 b2807220c74ca8dbe383abe0286b397178f9d897ca5186226b7af00862ba7373

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.891-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.891-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3ab3140c0186d009bcb81e9d2b270799f128900f68bc6de6fa92ac68f226a42a
MD5 fa1128e73529290d2a97c07e6e11480e
BLAKE2b-256 70e6ab0d79e63c0131bfdf837df6c7a0cd402dff5edb0bd9e15c6bd826f041a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.891-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.891-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 53a3fe384496829afd1130116aee8085d367f7e451f81576e02aa52285076b4a
MD5 c92db60df97b0ffe129610d5da6aa1be
BLAKE2b-256 17debc84d18f37679b2a90cf8027b0d48f5c9f60516314d58f754b58e1a6a7d2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.891-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.891-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 364899324dc93fea0646b9a3131d4782f9093b48028555143888413656f8a2c3
MD5 6bed0fc1adf67db514035dc91afd2b4c
BLAKE2b-256 5675fb42c17b881dcb5dd6c8b4351a71d56369c03c146d37b457f6b05e8e42bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.891-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 06fa0ac0b9844637ba123b61d1831777a7a3fa6af5b94a3bcd7a3d0ee5bfc3db
MD5 e55533318ef4eceb390d3d565d2565e8
BLAKE2b-256 ae6d5b2a33d9943afa6d37280625b33b3add5d78978b7bd0f09a8c5e56935ec2

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