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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.398-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.398-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.398-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.398-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e053a4946f8827fb63476bf8ec6fe42e175295da5ef957f48b116cd9b92755fe
MD5 52ca70c7d71b4c6b96dc520f072034a7
BLAKE2b-256 4712875d5ff8dbce45c1e347c517061f43100d522a6a61b5fc0ea9198c44b147

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.398-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.398-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 32dbeb6601b65080dfc7cd9eb60626e030d4ddc56f3038d804ca71d789121af9
MD5 9b77c0c0cb14f4720f86488358b385d5
BLAKE2b-256 c04b1d51aeda6c2b1d65b5bbaff41e5d05eecfc919110fd1cad206c4e9140afa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.398-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.398-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6a0215db2fb2040b7e0f098b308be0d9fbd4651febc7a282c79ee5c19fff1424
MD5 eacfe19f06dcb2db49a13de37e622968
BLAKE2b-256 a1574a0a59d81453ccc867def026e841e367153695a30f0da07052f26000611b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.398-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 55b20b529aa414b94affd5447084c77024f6a60a79020cd59953d377f48f0c91
MD5 8f9a6bb1615f3c70751bed626fe6fc6e
BLAKE2b-256 ffc0610a819dfb38e9cc835970b75ed2381bd08bf1d549722a68676b931a1dfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.398-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 28596134cd92162a7ba7fb02566d01dd496ccabdf54626959df8f5db640e0f02
MD5 360ee8b56059c95da653ce982a4b5633
BLAKE2b-256 adf3db43293600fc144ca49785b1fa0e3f122098d541598997822d83759cf093

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.398-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.398-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a978232f0b3660bf95eb1e3942698d3f2e9a8f0f61ab25c2d1cd5dcbbdef238f
MD5 a543dc251b183e4baeb9eabaf69233a2
BLAKE2b-256 b6d467ed8f8fd8cfb4ab9ed468fbfeab083b96b42cd4b7a645f7bf3a53e02900

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.398-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.398-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 759c86e44c86870561eabbef08faddf97c8fc39578058ebff763c03ba4fde367
MD5 876f2ca7329b75b0a6fe827f39f61bea
BLAKE2b-256 74a0076a33ce569eb9a37d5120640a6b8ef9582e14712387bfc8ced333d8d078

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.398-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6ab233dc8e06ce2d1b61359ce60c0234a0b04988f154ec2baa4e835a95c0ab1
MD5 ad547ae06ea71d937a090d71c43bbc50
BLAKE2b-256 659de568921e7545edf406bf9b3dd6009427bc973700a288c17a3a520845510f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.398-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a7f0b94315f8a943810ff12f247366e27059fca7da0720e2c279f67a0331fb57
MD5 e9ddcea268f2999f3aea32fa68615dca
BLAKE2b-256 5c22f2d5f7f1e8e5b9f7c9ab6ac1885b863613496fc02ab4bc1be45ee093d7f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.398-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.398-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8b1f898f248c419a17aec6c2148baf24a1e4fdbde84f22fd360141983af7dae8
MD5 d1f59b7b6a6d61acd24eb106d21e31e1
BLAKE2b-256 c4b8d603dbba5b9c091ac57d7554293ef3f81cb28582149c8b6b654ff94d631e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.398-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.398-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 496e7a1ffc07568b5a7a132000a852aa01bc02809df5062431350b40377b242d
MD5 4b37d68fa47f7f5c59068a4a7d5e6eb1
BLAKE2b-256 1953b3c1d18fa0f6602c788ebdf464eea11a0ea5fac943f684b04094f5555a63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.398-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0162a5b69684698bc907930482500305eaa2c639d9df2bace641e6e9ec33f236
MD5 bba557d720ae7b65e8f0105226353434
BLAKE2b-256 9e462070aca94b8224df7a2cad45c44c4842daeaf6b34d7e07fc3fc6463c6c93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.398-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.398-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c2f4584810cfa444fb608b0eae62e828ef4710b3700c4853c8ffe6de20d9e59c
MD5 398713fdcf50c28c827331485cae696d
BLAKE2b-256 bfc483ed229d7a010633b394e2588f99ad0c6135e959ce30a0f8bab6552e3d50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.398-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.398-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 51604f80b36ac531c2b4f42fa368061cbb3c19514bed4aed9515f729cde7d8e6
MD5 a97345e5bb7b5a1fb3f3b9d027921335
BLAKE2b-256 6461583a2d1319b87b3e6ff9f7f177437b9fba5adfa31ed3beddd9f0e1a844a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.398-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.398-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 95aa866e1decc3f48a2d4d38150eb230f525c8666a5e9ad565237bf2f78eac91
MD5 b4337c3627fcf435b9ced4b1db625016
BLAKE2b-256 d8e97359885b2e0bbf9f01e1b19e6c2a4967d4a1f1f4f83bd7b08a2e6f0c0656

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.398-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 374d5213f1def0339663333abb7ca6398989f61a528ab4a3706f28a8bba6c423
MD5 a16921f397069e1f11879152bc495920
BLAKE2b-256 f863451002e791298ecf3a05dfc319d39e69adca0097bc9c6d06facee959392c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.398-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.398-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a9f9c2be00dba085c6e87cec503dd2c8d360d7190fc054a0b117a6b80c19943d
MD5 6fbcf2d824c3cd64951b6cfd42f733e2
BLAKE2b-256 5aadcb77feeb99290e0ba62894bdb47dc7e59e594ea0bf7964988ba010a3f40a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.398-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.398-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bf478afa8d51ae49400883fa6fa3d4ea3453c99cf36c1641f24e115daef75fa5
MD5 2c38a0a1389329d6d56c8a4003deba53
BLAKE2b-256 c7ebf0dcf4418f01c38d2035bb1642317e9d838f19e9a17c37daf27b75f7e48f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.398-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.398-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 baa140ece2ade70a26c733e3516539bb46f6523cf07c1c829de79370347b7829
MD5 e9077ef9f524985fabab39a4ab6b2616
BLAKE2b-256 eccb203ae1d7e70a5fb4c84a20429bd51f06db4564da23059af81481fc268d07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.398-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec81b2f1ea1404457cf8795e9b08d46fe197e4d77746f74c956c03acf2696584
MD5 dd3f9279be7a7224afa47b1f40ceab17
BLAKE2b-256 f87595a3334f2ef38d0c84ed743be91a8426fb5511fdffca59f79c18c9d284f7

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