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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.313-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.313-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.313-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.313-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c0936b093bea32d6ecba62e89fe98c709257d029637feb0642ef952252ee422f
MD5 812d2452bb54567c81c14d09ea47eac9
BLAKE2b-256 62e16d16907e19710306378350248ebcedbb963597fc8093dc51038fb0b916ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.313-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.313-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f4615a490e2fcf9b3703783ab58b6cdbd57f3214ae9856193ed0e3eaeb604e92
MD5 82e1b660d330034cc6884dd048155ca7
BLAKE2b-256 d3edb693dfaf8a930750bffe87c3e00e881472c8a263658a835cef2538a46076

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.313-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.313-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f61e4c7fe8277b1b228a944f3bafdb46f8f76af0991e4a925625795a51e6ddd
MD5 1d7ffa426c6a05146255c8d940bec16e
BLAKE2b-256 06170c8cdde8cdbfe09c179c77398175db5b41e8fdeb5a1ae38e81c31218d55f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.313-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d48062840a4ae13f25734dd3c98e472177f1145f96d35a5c431477aa24e54629
MD5 821a10bb58a65f83b8d6f965d368116a
BLAKE2b-256 fff59c77ff3d608d97f4511ba97719f3bf0c3d9cd061e25ab46e3fa37c523947

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.313-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 278cae57c99d8070e3490e51738f075b575f5c3d86e29b4ab699187692d3ffc9
MD5 4d2458bbc60356624e46eff449b7ee5f
BLAKE2b-256 ca1c0bdea46ee2299a23b5d81eea1e7f42cc3540c2ca06dba2416a083b5e047d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.313-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.313-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b55f9c887b04c5c15126d48e267623c89d09493203da912bee32a3856acb8a2d
MD5 01eda03c52b401ee7bad45124d8b9500
BLAKE2b-256 d4590c299930f64711cfb2547882c53dcfe6ea67b9edf166b12ba2796e92e9e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.313-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.313-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 779eb24aa568a4289d032f3d58f602410fb1a85a157bf7f38fe68eabb20c4694
MD5 c0f1c29fe62dec148ebe469fd260ccdf
BLAKE2b-256 41c9b88c0841c48a65b80c7f18dab93e494a9587dd8ec89f6cd0770a40605828

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.313-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59aee7cf8ab15ab8f1b57c8eec45e750ce79ec411a554e172a5a19d7ee108af9
MD5 f46f3023ba2d74b93a867f941225ec8d
BLAKE2b-256 792c5671fdbe9e0ccd3ec6687b408ba131d801652d637709f0eb3ee612fd51ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.313-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 408cc58277546a01d4fe1761c0f667b932acb764fefed67e9782cee9a0cfb9cc
MD5 5c457208a85d4c457497365e989ce2bc
BLAKE2b-256 98b84181fd357be8885bf684fd8e6c3df985fd619196269f4a974b9b4289dcb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.313-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.313-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a842802bfcef10da1403a7ed17da98f0d7782f2c82eac520e715b592b8cac996
MD5 801f24e8f7b713f90001d4e8f1d4b066
BLAKE2b-256 17946382be5260ed6bf8e6423c1dc1f4fafb06842ae4cf2edd3d2b8174b8490f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.313-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.313-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 505a96380f36208b7eb9df8fa328b9aef8298e6bcd7ba284372729d381af30e9
MD5 9ce3fb991d8eac16d651d1a8830a8caa
BLAKE2b-256 5bdd1e764c0f34be8726a87800621f114d37a1f3ff6711cd5e3e768e571e5d77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.313-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a933c0ef779389713c2e2820ef1215ce886fc789d07ff71d96bc04c480034ca8
MD5 d2056bff85fc4ec0def2bdfdfdb6f599
BLAKE2b-256 ac9326025666efe5abf2b16e42257943bed88540f78c388c259fb18e5d8cdc20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.313-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.313-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 863b5ca6286de2c9fb99bb8ae7e670f45dc2699664d577c5ef1c050cb7abb00c
MD5 dd45ea8764d8a67d497e8f8403b7f8b3
BLAKE2b-256 157120e17980b2495269aa19945fc56c91be818941d1484effec0ccdecd40cdb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.313-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.313-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6d98e872c35f7768149b0359380aa49b3e54b7808e582056a04b3528b60e63c3
MD5 e01548b49016710f734ee604ed577662
BLAKE2b-256 40c92cf77714abf8cd7f59aa9d1c905f36d96eccf63f6918b656fd7da15be7be

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.313-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.313-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e6219e2e847263060805e0272daedea0b45d0f0af02abba841de1c80b3041d0c
MD5 f0fa7f10f19f2be1dfad28ba14ae5203
BLAKE2b-256 e44d07abaf12b6716b9e0c68c617608f341a2c8b1f108c9fdf7058ba270b9cca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.313-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fdea9aa319be0dc18a4cf0e47717b450434792e9bd02fb586d14c6960c83e777
MD5 6e2307272b9c4d894d27f7a9a5bbe491
BLAKE2b-256 526158cd1b8ce5a9fcc05752a0c4a44f5a154809deba5e92ee653a1637536305

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.313-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.313-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e5a6bee6e46e6dbf850cbd11c8406f9c644629d6745c90a0a519eea98966b72b
MD5 39cf8ff5e9a8fd225fb59d902adac7d2
BLAKE2b-256 480e4837d679259d8dbdbc04e9326059e62ff65f07dd4b14a07856f517508b25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.313-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.313-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 56732f7882adf2195a5b535b8e8a17487ebbcf5ababf8354881d4b08c42cf0b8
MD5 f7c7830b484bc50eda4a870a16bf7f65
BLAKE2b-256 4c02c92a8f797808cddd065ecfe442f31a424be8baf9fe05ec990a9d0fe555a1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.313-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.313-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a2ce43830fb50dd0a551c3c8fe0892afb35b39b1b9b353330ddd2a6f8c4c5154
MD5 88b7bc0a1e2e866ff8a892340d2914e8
BLAKE2b-256 8800f9c3c85238e78d851cb4f0213344c2a9755461bfe8f36e5262a4bc3c09d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.313-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c487a831c3226999e8e3d7251d5d5c7b5706e361ffa353022a302effc5df28a2
MD5 39df88c74e58f765e7ce131cff878669
BLAKE2b-256 4d1a2c3905daf5227eef4249a693b6f9bd46cf92f0e141b3bef2e69a889e7af4

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