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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.5-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.5-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.5 kB view details)

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

simple_equ-1.4.5-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.5-cp311-cp311-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.5-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.5-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

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

simple_equ-1.4.5-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.5-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.5-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.5-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

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

simple_equ-1.4.5-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.5-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.5-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.5-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

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

simple_equ-1.4.5-cp39-cp39-macosx_11_0_arm64.whl (120.0 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.5-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.5-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.5-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

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

simple_equ-1.4.5-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.4.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.5 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.4.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6975085f7e6331076567d42cab7e9fa3442444b1d5e832b2dc06a7b8abc92075
MD5 326ee163fcc5f745ef52a11c08a73246
BLAKE2b-256 3a3934b890c7a24cd191821f02f4e3ff3f393142d4bd04c71d8d680a0c172691

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.5-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.5-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1b115b757516925c6a053f01eb2668505eaa8099c6ddcb25659230e4a1365cc3
MD5 45156c40b946cd725c2867626c082bc3
BLAKE2b-256 8965a96feec4a09bb7f3f61b28657e75d053b42ac27b4b49d6be588f14ec9100

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.5-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.4.5-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2a7bc3e6682fe8b483627e749fff0350f766a0df407d457027f3e7f6be60a5a4
MD5 5472178e059db400a5ef9a85e07f6e73
BLAKE2b-256 dfb44c30a4b274b827da3e54a17aef6e0787debf43c6402743bd6ac5eb0faf95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd9781aafa7832b3d4bec054ce2126c79e1de93b35e79d062376ed856ffb8a5f
MD5 19d02c52685202340dc11778225ff2b4
BLAKE2b-256 5c8f48701aec2eb9278f5be4b762a04d50c80cfe106f688c3aa9beaf03e20e37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.5-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cabec76c9333c536ec61958edc16e976c94156d10dfdc0a5570dfa1ab3787f5b
MD5 25d56c5b93cd33f38823c143ad3d8edb
BLAKE2b-256 e368b1e6aa2ab0af00fb86e2465be1c0efcf4b4ec3690f8a6029af7883dabdda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.5-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.5-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a5a228d11b5aba617a73b606610c96a55d478a2a329621655c61cf79f351943a
MD5 de0b990426d3112ecf2f385f361a045c
BLAKE2b-256 58b9fe18fa9a6c11c4f9080f2b9c17babf9d9ecb587a443114b12b818fa534ca

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.5-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.4.5-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 162c556cfe75ccab8790e093a6f0385adbf66656c882edaff01f9e565f52a1ee
MD5 0eb2a45b91238204beda69b6c3910376
BLAKE2b-256 4d859bee86bd4bfdbea3ef6270f33d2627fbdebf5e5e76cc9f2c0f5fd4b765a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7948066210374f29c13541f30a4fa6363f288a83a43bb224b235fbc846789c6f
MD5 8c19b7625534036be99237f4dfbb8465
BLAKE2b-256 3a1463a0a284cf4c5244e1e88a34285b9f0ba9b9c108bce3db03659f3bc82746

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.5-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f93d7cc00da7692a6a9efebc6b375f31f9cbf9ff30b5103f637cbf33cbfd3175
MD5 ca1fc3ecdabb8ed338c992aa82108a72
BLAKE2b-256 7da2152d3836198a99a5f56f8f6d910842512c7d3918bf6327dd918a48a019c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.5-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.5-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d7b0e0aeddfcaf7bc52640609c0380fd8792db051a5bda856573c4c1f23b6354
MD5 1974ce184204e53ba3d984c5554ecf72
BLAKE2b-256 4d06cb07a722d82ad9f2fac31110f381b7ebd700c049248794b7ff5ab62819f0

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.5-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.4.5-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 74e74b399faab89b0963010ddeea63b03b868167b8317b71bec09842eb1a899b
MD5 aa48daa6f830cd9cf764e6003080b6f8
BLAKE2b-256 979bb868d5b480f5f573b2b2362f2373e9e5aba6cc916fe089cd0201c12dd43a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4121cda0b1c9c67de9ec6099590e3fdccc6f0092d1d4f0a8d3617ae837102af
MD5 a34103e6e304bc01d5b3d1237805cd0d
BLAKE2b-256 bf5f39398bbca1177d8b621befc1ba98437f5ea1134931080ddb3a902340387a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.5-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f36e7d1c03b8f0eba9926eeed1e072ddecc08c61ab9a045eda7a6f7b2ef02228
MD5 0e9c2a673a363910d389b47ea48ad9b6
BLAKE2b-256 d685e97e7e70d445e435d95df2241244c25d6de7efaff9aa97e53fb4ce38d15b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.5-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.5-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d6d589ef726ea4ade5fc785381d013fbc81af3f0e09626221cee4f92d47772d4
MD5 f86cc8131afe3b820e388de2d97c192f
BLAKE2b-256 184d0bf10a1cc9f268fda4b6e728708a481723738159033157781a280ef00604

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.5-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.4.5-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 70b3b3a8b0dc6943c39c15a01225bc5e2e6fed98d4688e6bae927bd786a0b3e6
MD5 3c2188dc42969036baf0f7c304565664
BLAKE2b-256 4edf62baac27248c802e4790d81754e77f70c1117bc7be54bc5ee040f8c41fe0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4fa96cf6309a44ed613a2092d370303144babda91e87ad70478f5c5588d81581
MD5 2dd5fa049ca318ee7310141535a2437d
BLAKE2b-256 43bdb99eddfabce4e5db492dcfd6c5158311e2b479d5675c6b9a0a0a3bd712ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.5-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f0eb6b4f6fbd3eaaa7a0b3097e485c3f52792c73ec8cff70f08a36151fa5f3fc
MD5 705af442d1e3327359c960e8d8f6acef
BLAKE2b-256 955753e0e68e4e9adabbef2120e18d96c71e7291687d3309795f3479d86df448

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.5-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.5-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 45560ee8ef7a27b7cec651988668025d8cb9500d7056c2fdd38a1e9a8a81b770
MD5 f0ca165c86a41670cd650a610febf58b
BLAKE2b-256 0086facfbc626b7cf52e4222c01f8f0b7a82763d67afd75f31a300277ef3daf1

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.5-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.4.5-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9b4900db8c4779ee27e9c52a596f33c89ee4c871c0c4baa8bc44c21942dc2627
MD5 326a6bfdfc9005531b5ffbfa45c6c36a
BLAKE2b-256 f721a31752f96aebcfb8a748443199240b426765f83dabfbff916f45741add69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.5-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac0bbbf022e2d44720d3490aed71a262f3e0763d333b3dc5660ab46742abe1ad
MD5 0eac6629cacaa1f34820fe4536e7c1b6
BLAKE2b-256 65c84aa7ebde7ced452f36634594e1dfd9af3a664d38ac7cec783d9f39a58215

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