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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.368-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.368-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.368-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.368-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2f2b2336d76d28269c49ef791cbc3c4784d3e6d6acdf3b6326f3c52775c28645
MD5 a390a3ab30c0c5b402c46e013a92ed05
BLAKE2b-256 ebadf0782422080054b11aca2e62017a55665d317e30500a9869f9a5120463eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.368-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.368-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 68b859f7f7b9c2f20c1ea142497a303a6dc9544a7fa6a43305ddf1f7391b3005
MD5 b7de6df3f2ac177313be6028ed37985d
BLAKE2b-256 a661978aeacef150d8d8395912d7219dbe3309bb0d7e82a6935c8f52d708b9c4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.368-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.368-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 22db6c7c0c5de9367c8694dbce2b7b1e0b55fc52dfbd4a2abac7c16b188c51c5
MD5 ab5759b84b1ae58ff7cd4e832b3228f6
BLAKE2b-256 32146e0d750034f832398408c371794412621233718fb765941ecb198c632010

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.368-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 06f7249501924ffb1b61d577db1ebc4c72f9414000039c367692aefd07987a05
MD5 a2b16ed5f40aa0bd317089d5b6dfa682
BLAKE2b-256 72a5772461c881731e0d23d47182d5f1f460ab9cc3dd8ca6953946c8fcc113d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.368-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 533f8d9709ef611fdd410d129a162ab3b4e8af91b1d0203a774ce35df7189e9b
MD5 7d3d5bbcfcca56b762a169116766e2e9
BLAKE2b-256 3a1f921a390577c116ef9299763b112fbc7ba11c89f4a98893e5bfc228926431

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.368-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.368-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2927756a15c2e7789ce724e274f15f5483e9cfd127a35af07047e63e1bbba193
MD5 40da066e0b894b4a6a490ae39a421572
BLAKE2b-256 10b6a918f96bd58fe3a13ed207a5a77667e627f2e3ee53edbd56cc5aa2e75dd0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.368-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.368-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 75abbff186ae9254ee6393aff332a49ca367e2c052df8ec5d08530648dc8fd91
MD5 14f2f4536daba208730ef11cacd268f3
BLAKE2b-256 20c88031852774dd455b84bff1b9d91c8a50bf694fe774ab183fda0185bf5d60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.368-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8dbe4dd1cbd7da8d659267763ec6973f6bfd1ee5d08dd951194ebb67f599dd06
MD5 0f2b8b3599e484a916861830cb58215e
BLAKE2b-256 41ff665a7e0f172b281a21a7eb3f420e419e6bff5854a06f575169eb312d6d4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.368-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 32141b7fd837efc463a7580b219347ff8382561cab8cb096e2090171d521d47f
MD5 127067d57a13c2423d6a6200879ca44d
BLAKE2b-256 3a9750a7e40517bc0ff7255c3399dd26bf28859b1b7e140f00c6d8e05279684e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.368-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.368-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0cf207b79ef1ca4a378a5d83f44a48d38c7886f2ada7a4581886a1550e7ba950
MD5 6baae8f6d1ac5c7178c3c905f584ad7b
BLAKE2b-256 6ceff7dad112d3402ee258aec22f481a852458119b0be3ddc754c78f255c1721

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.368-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.368-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 85b477f0236e978115faf01af896e340bb06dc2056fd611de99a33ebaf2fd8eb
MD5 f97936f729eaeee6ac8e4ee27e6ac452
BLAKE2b-256 498657c32e8aa712bbc3fabf6e2f4fc47aee1f011c1e41b8508e5e9525cf5148

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.368-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b86a649ee681f68df34854b87b0c64f87f49111fc582fcac17e6f877d8c5f6cf
MD5 1d451ddc35a9048d0a6c335e3c480398
BLAKE2b-256 3b7ac6286bc69586fd5ed09b20fa9bac4d9d74106ce4a80b747ec11fd6a2aa61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.368-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.368-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c26f960d04b7f947c404acf48411fa1cebdf8bf6560f8d368ae802db07e15ae4
MD5 1b75a34606dc2783cc8f4f7901243d7b
BLAKE2b-256 67b97ebf6a460613e1af6bf66b4c08416b456809803282a525d065d8fedd256b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.368-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.368-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e0805c60f69f57e8af289b9ed72199696bfdb473a8391492e4dcd1a0aa2b5ef4
MD5 ec80215ca1cc5f1b2932883739ffbbce
BLAKE2b-256 c35a5abb7dfa459cf42ecb278c9eda84079958a76c87eaf5f984fa139c933c95

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.368-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.368-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73e2e7cd9a681ec517b8bc533e2f34a0a78bef31fbb6759709049f177e91bf97
MD5 b4fce092a316a93fc60d413db87b4528
BLAKE2b-256 e8b8c65a111f68c5dffa01ddbc55e690335a8332974dbffd763b706f0f364cc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.368-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b71adcc02decf3fc5597a4c5932e41b8a1f39d6663bbffd3eccaf9cb0538b7c
MD5 6e087d819516224684c0a5b589b0665d
BLAKE2b-256 29ef47dba86a965764a0d1c90f225e1bdd48e20da87f7aedd1d7d36f78a9a797

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.368-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.368-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c37bbe531a4cd1a01b42876bf7ce987a0447ab7196ca5e0b6d4c0ca716ae0d46
MD5 59de723762884241d6bb470abec667cc
BLAKE2b-256 ab30b4a47d0f6fac43d27d301c2c8bb5f74608a58b1e5267e10d38f514a4a2ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.368-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.368-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 394477250a4236fb4e0d8584eb01d7a64267038ddd128edc4831cba341a78ae4
MD5 97b1296852dc58a519b0d3e785bff617
BLAKE2b-256 cd0f81fddcc3b8bb43b2f0efff36d8da3f1cdff86f3ad96955ab05e9ede7689d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.368-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.368-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 50674688b19d40a021252c15c4beb79e81e7ac416d1a8a9de4c78dbba67279ab
MD5 b2eeb9b9e25570708a749f74e3454b85
BLAKE2b-256 453f4cb1f3a2ead832d6588350ec2b5fb7e24d930b668acb31725b7db5f9118f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.368-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3bca19442cbf7721e98bfec1722384da315eeb5e1a65e86091f3afd7b082e5e1
MD5 928ed88058b3397007ec6b4fb27439c9
BLAKE2b-256 038d9751c0cd4e99991cfe27cfb54cbb4a480c451be21e3931e67b590cb3eb67

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