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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.540-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.540-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.540-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.540-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 40e218defca214d9d04f5e6947da0d28951a34c5a036c197d1d63647112fa99c
MD5 6f62307a658d10416f2894c8ea853554
BLAKE2b-256 161c52144ed78444f99329f69081eb419dd4e103541389d423dbc6c1b13b94ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.540-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.540-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1f96af4782052eefa57273054f4e0c5a7c7a94192f3fd4ab70861f636585ef2b
MD5 79ee575a0e4176ab695094e14b8ceb77
BLAKE2b-256 9187283e9697ca4bc58ca30a2c646723ced7b2ad890432d09bd4b5a66f710367

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.540-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.540-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 648d51da77f1c006509044e49014f781c4157cc8f5ea5123580797b7e4072900
MD5 07f0a05757f06634d2dd18dc630543c5
BLAKE2b-256 0459f2df93e1add46f9980af7eb564d5054430b47562ae552f425cafc9d15221

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.540-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0333ef5b6706c01ba174b62a15dc9dfdb7d928707379af301d2502aaf095244b
MD5 31ffd74927d48f30a549aa55a134a54e
BLAKE2b-256 1e92ef90dccd280b7a0a392856073c9cd8fed4a1797f5d529cd3ad088f6f9a6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.540-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d1172dad17cbde4d37465528bd1098d4d8d210e8b73bc6cfe8b0af19035ee29a
MD5 ce091f9c616371d151eba53816973de5
BLAKE2b-256 1ecfcc350408c420b201a373781311e5bbf8af481688cdd8a0002475c3c909fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.540-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.540-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 80ed9f7ea1223f248bd78cb9049968a0149d7a4d384fa9fdf947570accddbae0
MD5 25148b2101c7679a3ea502401b422e68
BLAKE2b-256 3210e5f81eae3ed577579117b7af338c20cd3aec04c68fcebea5b4eb80e2bd80

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.540-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.540-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e9fc4a3af3ec36a768bc54e2bc21f81726ed145cc412b54dfc8daf7e88a62efc
MD5 798914d65d1d550db27fa12e657130a3
BLAKE2b-256 19abf0f032efefc33a26810158a10d8656f1505dd1ca2ad65a152bd49edb8de6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.540-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6dfcae48f4613caf1a464e1cdae181e75aa4e4a9ef52db901d0a3d6a476b9b8
MD5 31d8ad1bc0b729e5ba39ec45edaa6bd1
BLAKE2b-256 886d3c151b5382b4497cbdb4f973b0225a1ed9adb8ebf578268526738eff8d28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.540-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8b5ac8b6fa7625b23f65cab5535fc7a4d0ace19d8ccd5720095821cdf4001876
MD5 ad62ec4dd4268580745ce30fbce687c8
BLAKE2b-256 a58e3f5eac15aa18eec3f3f13a1e4ff4f19b3d49c422dfe74efe8710808a9c62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.540-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.540-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ec62a59dff7988f2370d1ccc1e47cfa158f4629fa9f5d9e102b7bd96a6f2d6c8
MD5 fd63538e2bf0d0e48809ef6e093ee7ab
BLAKE2b-256 d7c7db33f12285c4cfc4f7ce52b79f28925952e3a9adff782ccc13694f920b74

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.540-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.540-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b7e38e5bf62b926aa03086fde85642b18e6b5bc8dd0ded3bf693d86d9ce02dc9
MD5 69305e7940b507509507cec98faa4f67
BLAKE2b-256 207ee0c975f162a396079493c6db448f4c51c1ac4d2b7463bf5cc98f68a197c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.540-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d27361a32bd0787c70eef43372136eab560a33a84ff96f6bc628597861da740
MD5 b61053f59e4257c3d3ae3a863fc27a8c
BLAKE2b-256 106fe6ca2d1710b94e410cc32c6d295ac9cdb0792c5ca70de3b1cf2a64890581

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.540-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.540-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f9d9041dbd57fd53894562b743579f8062b122467801eb39857c55148c50de22
MD5 5ddc30aa15bfac96cc8609f778fa668e
BLAKE2b-256 fa2f22915962339254039f2b8a2a2b2a01017a5b05309bd65cfe41eb978ed6b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.540-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.540-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a0a00efa6f44317604d5e2c41d53e45c014f5954c962c108d6407a3a6f8ca853
MD5 85b9d9bf737ed30f68a6e1d39081b2bb
BLAKE2b-256 3a2293f8751f954b132378591b357f6d0080ea9aa61f1eac0cf792ea61fcdbed

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.540-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.540-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3a90cab912b3d275d9d880fc9f2a05e5277138e7cac57e3f42f64f25aad64e63
MD5 f224872e2c4272cdd87d09b39dafd88e
BLAKE2b-256 95be6c56571e7db20d4521eb38f336cee70fa5590d9bfba535b4953e94dda846

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.540-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9795d3b2ae7d1f1496857c7dd4cf1394da84cc602f3b45ca6eb83ad10359f63
MD5 3da39c5a31b2f136c25fb14f54271f5f
BLAKE2b-256 c6bfbe80f69eddccd0c2ef4c5368446211f5079f4d789220029d7b13efd049c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.540-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.540-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ce555e5713d3664db14eaf054ced18216f305b3a58020c44e9eb43d45091726c
MD5 164c2f811c19159f1dc5d347b07ba1bd
BLAKE2b-256 a277508c5fdb0732a79bef353a957e4fe8c33bea3505446fad51e846b38ddcbd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.540-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.540-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 40cd9646b2d69d8ac64145def6bc17166889f69bccf87b808c144330689508c9
MD5 1a35130f221fd48662cf2a2cd2ebf0ec
BLAKE2b-256 29e961402e99fb07e6bd3c76c72e0ba40920f3c563376ae81f606919625095e1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.540-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.540-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f7e3076cd29f0a9fc7d32ef1dcc96bc280e2a3662c1fe684878a5231e871b662
MD5 debf337ab608253edf16bdb5cd77a3e6
BLAKE2b-256 8c3a0530d3a6aa26f36447b44a4ffc182d412dd9ca447d100e21e0ce1d909e53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.540-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2659ea2c7170e2a45fa5354dfed4569f322071cad4dce32d07126ecc0294b3b7
MD5 1f57285f2b4e7599bc10b5be8f781f0f
BLAKE2b-256 f1f0fb873b45a7b06df9d1aaa60bad079d105e63d47b9de8b469b2657984bc15

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