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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.93-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.93-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.93-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.93-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.93-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.93-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.93-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 02b133a6f10cc5576682b5468f222cae425414ff31bbf56bd74f9463f6057df1
MD5 7364d8a41777d5aea1293db212c9839d
BLAKE2b-256 d30025bf969f4235f19055e8d1c8612b2f5135449f0f5e7a0172c3ce9526c335

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.93-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.93-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 26bbce8d7df70468f21dbca8d0a974b3b682f01c492d5694121e9a43649794ed
MD5 165b95c98e9e69f74328f2e675dfd12b
BLAKE2b-256 97791b447b67e56b7486fadeedd076918c8d94615910a2c62ffbc97eda6820e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.93-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.93-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c296a8bc2e29382daf5c54b9231378b6e1e70ad8fa7bb75628c7937974dd8083
MD5 b3c2f9b104e5406f299dd409ca667743
BLAKE2b-256 a9b1b90a673ed0b4a965be870b3ca375ffa5ef4eba1440b355676addec57cb5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.93-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e28a9db906e2a96c98754337d486e3c462d4db84c282f1def1fd47b8c1b2dc61
MD5 c74839673ebc2c86428bbbb53b6f44cd
BLAKE2b-256 830575f087bfd8c86371fe42c4e3f0a83b4481cbac0a0209322020f74bbc81c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.93-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.93-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 730e2f7fb3de9858668f8d306ed5f32b8523313f739771fe1e2eff55e13f239e
MD5 bab20027ad5b674a5f1f016876c55074
BLAKE2b-256 da8c47cfc00b88334c5f8579db5efa629ba16a2eb52fe5863ad9134aa15af601

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.93-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.93-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 859c74570570128f8f687eef351e1a31295de87777410345f64a9e5469d7a22b
MD5 a961eb07c54b6856f083c4d85f8c57b3
BLAKE2b-256 19e12b55f1c36adde02baa1f67377dd15df1b33398e550bde1062dcdb095e033

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.93-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.93-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d5e52a2fee38035a4b2ed1e9b24668c2f9a4bd20aebfe5cafa86b319a3881f5a
MD5 5d7955566ac96e3956cf18da28d8ec76
BLAKE2b-256 a56fc52e6c3b3030580c2e8e7f3b3e9659c61e604842b852af1f4c5ecf9a8be2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.93-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4706241b6384a2f42d32135d76dc5c8489119e5c758f9fd5cdbf9b2109451a96
MD5 a1dba6cc109bdafe30c70ceeeb24370b
BLAKE2b-256 69be0a54326c6089c88afdef98a600b7ab07f0c434ca9f9a408c023bbdbef910

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.93-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.93-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 21d664c8f87dd79e27a62256df759832a83a1f2e9de6d977d720f07c47f6f549
MD5 4f13de8f0650e4ad30b50cd87f9e8c03
BLAKE2b-256 807caeeef7c1e88f79a375d9406dd0f96f7320cbdf230ccfcc48f85ced174029

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.93-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.93-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e8a7d38aa604287c111c051291f2f7badf2831dba0711e9a3cd5959445ec0807
MD5 705ce4f5591740ad4e9ed7fb0ebe6c74
BLAKE2b-256 0c8d48974058a2ba4340b6fcd6bad51382e85c348696158b38007b9e741f09ca

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.93-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.93-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e8de4ffbf62d3d3778980bfdd1184d2aed9b4dd908fcc0ca58093c746de203d4
MD5 d27baac47d5bfa5e9b90b8f0b61e4953
BLAKE2b-256 cd1008bceee5980552641827fab340e719204c8679cc6eaa48ce2db0adddd044

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.93-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 534f7c2950e849f6b54202a8217f7f47437f46afd64938e25625a45c1fc12b75
MD5 a022e4a1f3aecc08eaec4133229380e6
BLAKE2b-256 6c880533da0e424832efb07558a2fe7b0843c9e5274df9274eb3b1075770f886

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.93-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.93-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2059c983b926c9a71a56aec3b46d160e93ccace33fdf025800c5a2f5358c2c24
MD5 436f13fd3e87ba9e747ee83d0c5e4abf
BLAKE2b-256 d3cbebe2d5d41e52488a582a9e892ca13365606b78c0bb2926d3a44c5cc4da61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.93-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.93-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 400ad4484c4e13398e7943e32c3c3e1ee92b15164cbb4751f8f90c22e053d588
MD5 006dc6077f09b13ec96dfbe4e2540a30
BLAKE2b-256 c9ea55b4330085d521db56332e65925cfdf9c07bb50bff7fdf1f63adb2713955

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.93-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.93-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5ce5ae364b5a4df0380077752784693ee78a84c0f86a74b8f91da3c7d65e3d04
MD5 18396d1a1fdb53de188a5f3d38fda2f3
BLAKE2b-256 85a9bc97a673070a52201f1f404f2c824d8647f811678eb7b3055df292560b97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.93-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da5247c4a49baae9def0949b77793d10f3cdc2f4472fddc4621fe991c91e9237
MD5 da7fd7531f42db0283ecfeed0d3956e6
BLAKE2b-256 1c95cdb867a96023ee6f2233e515827bcc540625403bbd5509bf7662868fb4c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.93-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.93-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0017af09291a07db7db93cbf15a454562e10e9f1070bb8c72c9ee5ba1422db29
MD5 b016e9e9cde62ae608258ac963008de8
BLAKE2b-256 c4389b0bad5f6e46b4a84188e49e2ea6b25cc7c5588428c8bad11d7ff170a265

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.93-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.93-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4cdb7011efafe0913c0ce1b492f4c356262bcd65f0e8d71e69666f81cc92e897
MD5 d780471e6cfd5a0cad78b1aaa772fea2
BLAKE2b-256 e85e485a49cbd696efdbcb512fa21d833e62602fa030810992e7da03bb00cdf7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.93-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.93-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d9814e937ee7111335b3796767c4513573ab68379c79e39e6061436df8fb39ae
MD5 30c29deeeea119e8009842460996b0a8
BLAKE2b-256 190777a9776fe7748710178888455ce59179ad7c3ece923477ab9849ce210460

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.93-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81c19399fb9e40dfe697f74a4b14cb2f8e468cd9453df6caf6e39ea1f70e8380
MD5 eaef6204ae067c564ddf7bff0e4f0224
BLAKE2b-256 1858e58d058216d24bdcf9aaa86c1880cb936530500fa211f6eab5a5be977dcf

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