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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.939-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.939-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.939-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.939-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 defe8cb78eb5fdf2bc89ca533df0a45c4306781958876e1a8b122f3d9f848ce0
MD5 29dbc623af1f580eb18fb7d89fedebac
BLAKE2b-256 367a2e930988598ee73ed1422972a353c84b3956ced1ed0768500cb8bb15c7db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.939-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.939-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f115b191c70307392fda11128a6eed25816e6975e929ec8fd7cc01b4f3dae35f
MD5 24a2aa17d0dfe5ca3675c05f9ef8bf1c
BLAKE2b-256 250604f0d6ba14cfe0016468cd8cbe67c8c5116e229414ef7dc22962ad623055

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.939-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.939-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6a13f3717b1bf7155e7dc4a9415af6583478111e07337fe65c585e83a5612518
MD5 1ac4fe888c585a730fd40883c174745f
BLAKE2b-256 5ea3ce03f9eb325619ef5777af80ad841890860cd9dba063a53831253eb87586

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.939-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 742fa3e28b788f696111d5b73c74283608ce7fd3f0dcc6063fbf542ce8401ebc
MD5 4482090ba57d5a1ea7ebf4d1b3435fdf
BLAKE2b-256 ba3da37641e8a5f4ff976bf06143118a8c375bf7ef67b6f0a2c5ea536669b507

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.939-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 298ac55ec8d402ec33efbe5f8ed28d9f2d7c287db3f2153ffb957041f29e91b0
MD5 c3912ffb6a521e9358e9eebcb6f27cd9
BLAKE2b-256 462d0a39a86d4032abe219b32ce0a9e7dce2e8c7cc23420eb75212da28864799

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.939-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.939-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 05d7e865ff1294b6990bd3c13353bfbb9be8093014c6da1769a1d08759f4c09e
MD5 5fd8cfbf020666f61c144c3b98c8440c
BLAKE2b-256 7d7c1ef14a4a0139d999b65bce0aaab2d9e4111232b77688f674d78f0713b7ac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.939-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.939-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3dabf69bbc064236abfe45ca805b7b8e6c43efd189b8d7c55952be31dffe74a9
MD5 ea58ed0a19ab88b7c71646f7cb935451
BLAKE2b-256 e56a5a42945090c545268dd8dc160c81779f4e9a17e366745a89a9f59bb40f19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.939-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aaa127a1d824d8d974983e3324eb1e792e29ad970bf2fefa2b1f619583e7f7e3
MD5 c02a1a6ec670ada32532e3d0c2899d77
BLAKE2b-256 cefa07ad86e66b5ddeb65c137a9c8d713b6f60e0b637b5d02bba2b525862b338

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.939-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0b4e0446a723f82df869b9b8f19aaee401e83f25edccf7375c9929a321b2882d
MD5 02b244e95cdec6f8e2e8cbed42c4eda5
BLAKE2b-256 f74f05dc81873879cb7dd70ecbabbdfab42959de26b30dd509f3d21338c2aeb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.939-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.939-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b4f84fb5ac6604aad317de53536dab683994e3995268305d8977b85c45c1bccd
MD5 a05e54d1c3dd17725c2ab21d89e0f050
BLAKE2b-256 ec9669aa4e50c010985cfe24b05412bec46bb9de50c285f27ce5398120904828

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.939-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.939-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b60c7048b766d95d459181a564f3ceff56467552fb9cfc1f383562b9d22fd2c5
MD5 fab0225f57edc9fb42f629a9961baec9
BLAKE2b-256 0b049ab289e7659783aab6493215e9d0a607223a822f130bd7a98ce786b46c6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.939-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 add86d07fb94d0893d320584e8739fcdd63b87e18d719f63329d9f931569596e
MD5 337ea3abdfd34d41df14f91500e015f9
BLAKE2b-256 aa273c630ba79f71ed978103b18e63f0d6a6b521372a5068073673484b3cd753

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.939-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.939-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0d7d4c1cdbda36e008ccfd78956efe92371ebfaaa5183407780c214b31c529ec
MD5 2600b933ac5e85b8cc9b1efb2b7cb07d
BLAKE2b-256 0a6a8777ae5e6477e9fb7db0de19c4d1090e7827dd490988fb66efa74a7455a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.939-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.939-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6cb68db351d1bbf8fa2225bba2cff2ed7f14783407e538acfb720bbb120063f4
MD5 bc8e9ccfde01b32778c446c3500ceb15
BLAKE2b-256 6966d452dc40bad8231d57e19e73845d6947a804fbb6a2f408c3026171ace076

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.939-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.939-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7ffef7faa761f80321a4ed51557941cc310f423098b150ca229f45f71c2fc95f
MD5 7c49e6601e37de031f45a97c0e3e895b
BLAKE2b-256 a67872db23442e9c50b8dee66a0107cc4a1d7f8f1ee4ab1388ab52a4baf9fed9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.939-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79a55b3565cfac259d330181fc262b99c1531f6684b67fed38b372de3259060c
MD5 e6e02797ca1eaf74d96931c7d92e91d2
BLAKE2b-256 ac3927abd2e75524965ec5b0c20d474654bfa296e8f64110a55bb5708aa649ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.939-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.939-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b8dca6148f176eabd0e0357010ca9340fab5de0fcce83ae777678cc15d165bba
MD5 73603378b88bed7dcf494f20a264a5f7
BLAKE2b-256 65667022174ddc9ed558ca64b5d4c1c08daa9c60496a031158ec42c054f2d428

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.939-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.939-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 417b495559c648bde9e64f3429aded65aa3e3bf60704d68e8495c72bf5a74175
MD5 49dda98911cddfdba78e02b8b6ef2c15
BLAKE2b-256 0c5160ddd083d1b3463d90572bd17d3c05e1647f651d46afa61d39e0d60590a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.939-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.939-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d7679f66448ee1cd0f92b1df11ce73a45844bfab49f6e95a2a55d23012568a1
MD5 9afdeea36468bb5b8fad944a0673df8c
BLAKE2b-256 75e89f22ebc18f1eadd82b81f646f7104dbfd8f6e758f91733b3dc110d418916

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.939-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f0bfb10a37b58fa90ca6bc4865ce138ad29cf802a75688b48017189947d719c
MD5 06cd90a1983d6cef0ba81f3e4d2ed3fd
BLAKE2b-256 001ec07218f8f13b567c0484f29992afd41ec870f008e028d43b4f161d6ca0b8

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