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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.150-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.150-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.150-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.150-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2ec06929d8480617e1e20b03b4fe843870a1b4aab6829bc2198d5ba7294b1478
MD5 3ffdcfb36aac34bb573c42b3b151b444
BLAKE2b-256 1f573f0a5f433b924ad9e91ede7640f0f58d3801e93408626c1e2ae56f6b5b36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.150-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.150-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2ae84d03b8c2dbc37671a5464b241de0d218fc98fb6963b31dd07cf88467de46
MD5 8e61191432e72e6ef21a4f591c69f200
BLAKE2b-256 522a34b1594a9108c13f8a0ec88a2a94876cc48d57159233ede3d43bd3462301

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.150-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.150-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 21e817ae42bbbccf1c5cbca77454ec98013667e183822097f50dac2e99bfcd3e
MD5 9039a8d905571539cb7f2a893047f1b9
BLAKE2b-256 3d923ef31363686ca8cbb104b2d9ddeaf6a74c3357c75736177c30cc6c8181ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.150-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ed3e9a98ad4e7f38c29755601dec6c9540049161fe9d1ca865bffb7d2229e49
MD5 508d0848db41a64a12f391b261ba8a4b
BLAKE2b-256 225b14ca52e12aadf4de10ba1c07f3fc8cacbd928a2836033df87ed4ab01e0d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.150-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2126102d65000c36bdd0c458e5fd3e79fa88f8b2c66b5fcedc79e2d0d404c507
MD5 7b190210cbd5b89fcb67c232faa0ab95
BLAKE2b-256 432f47751840011c3727cd55e9a9962d63ecfdcff1c5e7781e36a218d0ed3941

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.150-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.150-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5b65608ef971f0e6540c6e05812570b6757351c68250038ff269b288b988a974
MD5 4288ed85bfa2c7e7f987a01df8017c79
BLAKE2b-256 9209736cb28e33ef306f438b02835fb9056680923eb4986a6e286726e928d112

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.150-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.150-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 43451836452436c3f04ba618f06aa919b9b2d6e45793ffdeac42db7f46fa475e
MD5 b6dcfb9c43a0eac5aa21302d0bd7aa7a
BLAKE2b-256 d97dfbb77bac25c0639638b98192e53f21c7514235e5c03b407a8ad8350bf718

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.150-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 688eb4c38275b6ffa693c44d1bb8ff5d6bc1bf7b1441bd2e73246fb2d7502b3d
MD5 67f8937c73c6086dfc1a241520e08a9c
BLAKE2b-256 67b14b5ca7367e090725193486853a596eddb004a4c848895ed4765225e36326

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.150-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e95cfe1bd2a786a7fbe03c039fdcd6d38e913439bfb981fdc09a5871fd542285
MD5 0dc03576e8fd6da0d52ee9dc3c81239e
BLAKE2b-256 451eeadd761c8bd0c16ef3c6ccadb3eae626252fb5881c3a34b63ba6bec963b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.150-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.150-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 275cdf35b9f678c61758ab20d75a17644f70e2915af4497d93e33ecf720dccae
MD5 9eecc3c1b63729652302d9da8818ac4e
BLAKE2b-256 d431f96bf28a32a87a285e772558104de4f75dbc6cf23843cc50cd5dc7175d35

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.150-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.150-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0513480d0e23af2797dcb76098ca50fc27e14ef6fe3788ab09e835139de35e53
MD5 ff7c2963308c547f4b362127eec13396
BLAKE2b-256 ff530f1ad5a06b567cf33c8af2d2b8af2843b7366d2d9d3d2cdd602fa318fa53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.150-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8b42879b26aabf0862260db0ca767ad60d0f6f85dd9aaa9712fee89bcaca886
MD5 88b670d1d9885286e2b5bffe59a11054
BLAKE2b-256 1193ff1a4f330f7ce99d691af5f17bb7f1b954f4b4c45f9fbdc62011df5e2a4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.150-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.150-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 46ae5d599f749d3d7bbc88b9de208cadb5ee17215c034cc6a65eb5aefd9497bf
MD5 40bbca570b7d29cd67cfffb546655448
BLAKE2b-256 22e980c0a280da7fafc8956a352b8bdd97edc68313ebff9dc1490f402c8584f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.150-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.150-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8b320bd781336a30db91401cd1b28e3630905a5260a6f7bde2326e979cfc64af
MD5 67d109671450a6ba7a10bb8f002df48a
BLAKE2b-256 f3475db43b118b3f7450be0c6e9a5d41227a08c4d1bf9392cbb06004f49a8ed1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.150-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.150-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8e5143e8dc377ce27d3906bb9a4825807c3684f2f94a72a321f8ecedf91b309
MD5 0f150029361545a1e3686504dc74b710
BLAKE2b-256 d1f4345b23b241edf0f65b7b2f6930d91c19ace785122934e6b59cae2566323e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.150-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3dc1242eac2dd7dbbeefbe743e6bd90e3daf121b228e2392b256d96cea1ffe26
MD5 664d878ee44266c47ffdae0241a685ae
BLAKE2b-256 544ca69310ee0aecdfa7c6937cea9fecc5bab2e217efcb7fcd9478470d6bfcac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.150-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.150-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ead538ab82cf50dac5ce754310c594d013db8f806a0e38b9dcdf9cce9ea6bf1a
MD5 8558a9b9fa31f1e43cc5f7e72c412cba
BLAKE2b-256 1e2e78d9ed03c687901fbf63172df35fc1d8f4729e97450a3f85dc472f8cf092

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.150-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.150-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 82246d8e43a1f63600359a4d288116c5a7f59749db9adfd38af6045b20713529
MD5 e2df579743a345b9c0b37f54e3794bed
BLAKE2b-256 1761d96f36e2e05cd858eb73f95b82761e480d48eb8e1fafd1abf8e5ee28eff8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.150-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.150-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 118800cf242fc5429ced20cb1d1f03c1ca14cdd53749c5e7cb7e172bbb6ee1e1
MD5 b6f7420feab552ed57a9a507e8f72252
BLAKE2b-256 4216557cf1e52fd9329ddac06bb896686b78cb8e05a903e94462ad794bce069b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.150-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76b4bd0f83c17c7720d64071b027ca71a6e62b7f3834c5f573d5abc6b73f02ae
MD5 c6edbf82ab56fdbad3320b5223bdff9c
BLAKE2b-256 014a6ce59328f03889a6912ad4c8edaad86f30b2113552eae8450218f98d3cec

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