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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.79-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.79-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.79-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.79-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.79-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d35057eddf7913e5454983e6f31865a9eb7b50016cf2679d0966fe84682a034e
MD5 0a25ff388b8fc4f40b357a6af4b7cce5
BLAKE2b-256 3885b20ac59a15eddf5b4f7f65fd5da9f5fab8b83f786508336b1bc8408b0c4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.79-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.79-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0f4ddcc344b5bc388563e382187d8f108d3dcdef18d02452360ada59c2091321
MD5 beb6b02a57d50b348166a4cbe7885462
BLAKE2b-256 73712a038717468418b7e4cae618cec8e957695dcd140fe379f1f75d88dccd49

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.79-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.79-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bca53a4b5fd50d41b9a0f5601aa56cfef88fc0300a0675a9d75ba6d1a84d900d
MD5 a83e97945c934db0d080ac18dabcb98c
BLAKE2b-256 addbbe2a36930ec8116de7841701081d0b680fdd38fd12a4158dfc0e1c2bec83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.79-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ed64b8f84e89f80a212212a843f69577b4b61918cdb52adf753702e47163a29
MD5 c7ea4f0fc4849c71cf8d5b03ef0ae0f5
BLAKE2b-256 d6cb9b77ae3d014c30e4f2654bbb21f9dccdf18ea44cd36b27c72d9053a233e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.79-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.79-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 450e5786b579a4d7c6ee47ed1f858edfed99926e92222f9c3f508f3a9a39a8cb
MD5 610583941cda36ca7d217828ae83a64b
BLAKE2b-256 e687f8ef89b2271174861eca8d68cbfc861d9355fa99cf64c766fbde7435463d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.79-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.79-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7353fdb356dd7e32fefb49a7e4d2eaae3e079fb6ee3573cf3ee20fedab4c10e9
MD5 e7b5734f04c2698ac1e221f1f7bc443e
BLAKE2b-256 ff0af7b38fa99504b6f3fb4ad4aff1ddf550a97abff7c9c58c83d282b418dcdf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.79-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.79-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 80855e18aeb58ce98cd7bc9aa3db9290f91efb6ec347b7d19cf5712e7c98fb43
MD5 13c2f21d886fc779bca504717c827272
BLAKE2b-256 098a28e0acf50e39d4bcd79b2e7013c95fbb81e254049d6cf67ada9b2bb246fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.79-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ac5e813c981648e5cb3f19a92961a02ac12fbe54e98fff411fa17fd22bfe474
MD5 9b7b771080eb3c6981170a4b9cbf0f29
BLAKE2b-256 cd231a8fa4d9d89755efaa512b3fbb6b56bab5ebc782f4cbd12f5a5c31c339e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.79-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.79-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 58317f19cd293bb516a7bc2555cd86155d60bbace1f06679038db19e90a5f7a1
MD5 700f4e2f489a07e7fda7d3d28daf9d94
BLAKE2b-256 97d85e0b29d19bd75c43bd70fc57d27d31370b693ff9923323fc14bb61d2e9b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.79-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.79-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7c3bdd344e6b9c4708a03e8ec19380593e76aed43379cfb516c5100f2a007b72
MD5 745ffab512c663ffc76013ab0d9e7162
BLAKE2b-256 cfd3bf5414ad71d1a88565f5ca437533612c677e5c556ce315f390ed7d2cb673

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.79-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.79-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c0a6fcdec5f2be00022bb803f5a36fd7f83f2a93eb90c5a55802cd4d3fcd21d5
MD5 43579f4ff087832007c3e16df5921bfa
BLAKE2b-256 464e04f0c1163f0771240fe4e94b3bab6c945e23862ab2158b6c6bb28357c095

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.79-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7b9fd5450bf182fcdd709a16e1567c89aec806935c711cdd68ec85a5318ceee0
MD5 a3e7c2c926eb33cecbcfe81ef088799d
BLAKE2b-256 69d227ae5f95f8a136c2b7e728f1655d9781f11ddf4d6043ad6304f6970de2d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.79-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.79-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6fd809299ed630eb7227dbdc490612afc69b6fccd2ed1fa6e182f58adbff9c51
MD5 634d6bf3a37ac512b1409cee5133fc5d
BLAKE2b-256 330e46981a99317d89569c0937b1189b534378b5ec7edc72b313f7f1321cb14d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.79-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.79-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 dc07aba87854a33250da28c9026c0d6472418729abc4eb9d181f212a921e3c85
MD5 54828003ef7273f1572c93b189bbcb8b
BLAKE2b-256 c5f609ca46de45b40ac901ba0300afc514ee499627ef5536224a5aedc173f82e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.79-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.79-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 057321642af7bec765bd692bff1ba182976ace0888a041a6154bd2b6e8148b63
MD5 5dc69b4775e9b1c7186e6a16c259f9d8
BLAKE2b-256 dd7d1bbd076e87b7b1ce963af96ea90b256d091471849ea1f6cb53fa1102685f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.79-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c8f8d5382858a87cc1cd662494091e22a3df2c8e83c626b445c6dd5bb82fad20
MD5 9ccaa150080e34d6a9dfaa03e7c86317
BLAKE2b-256 d993e883dd75f647b4962e331721ecf4f18423a156919df7e22d691aae116c6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.79-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.79-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7048c7fb36562a2f71c4cc297bc6d719b7588e18b2d37784bfb5c2c439a64276
MD5 a29d0c99af1b828b8ae925d0789ec295
BLAKE2b-256 7ad98f4579feca31b3a380a32a834127c05042e2704bf331e94d2b3eb8fb007e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.79-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.79-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 dad4a27f4a64a7af9d666969817de70fb8bb9411d9e4ae0b8bf9227275ee33db
MD5 37c36db6f2c94fe8bdc1476debd36eff
BLAKE2b-256 2c6efb9bc8f3fa044e3446018553f940bf9ba16b4feadf2d17794f3ed5aa853f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.79-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.79-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb3ac9ee5ef09953bc16d7aa93acf59c92c23def322010e1b01a99cd2861b2a6
MD5 46412298aa8a84a763628a0ae62be9e1
BLAKE2b-256 77be5d7ed4f1e0edf67d8cd12995487b1679d3a182797e590d1464068660e492

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.79-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7fa80806ab30ae60266c4b12d1ad35831999251ee11a7dd85b1ebfa9e6a5da0b
MD5 d41a877cd2722193c74d94c0ffe88fa3
BLAKE2b-256 4c1dc0e759c6394794b01952421f8bd5e851d18c7abd71aa7b0fe68c6b7d3393

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