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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.833-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.833-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.833-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.833-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b5d0ffd8734d77fef6b3abb49386b180f2caf859be08cde3eb2278c0fe7963fc
MD5 dbb761bbbdc8201cb9cf3b68035ec5f6
BLAKE2b-256 19d9adb65c3b2b46cd1c425158bfd9a942bbe625e7b56211c3812bbd7b7a1f9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.833-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.833-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e2381c370d24c9e8b33417c79e24bda71ded30ff3fbc6d24c012892b449d477f
MD5 77ddc73219aa05a4c443f7153d38375d
BLAKE2b-256 9286fe73f7d82a83c73a38e162244ffa5a75a463e6fbf60a5c581319ccc72d6b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.833-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.833-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3230a8cd651b8bb45b42f9125d13b7aa39dac70e9bf03981fde2960448c7df8b
MD5 100f817bb6cbf387ec764048fbcae9f5
BLAKE2b-256 6a083e9d8104111e2673814a6b0a7f52bef9a6edb1b10a8c4779ec2f1f9f41e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.833-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e772ea25be86f889f39c7464acf2d24c82179b7233fdb6446c709fde2ae8121
MD5 9138b3c184945621df7ecaef6a569740
BLAKE2b-256 ae1784ebca4c612c4dc46e95da529e02ade32dbd26150119faddcfe7c830d4bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.833-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 59b05bde17b232febc532da4b92df5ada229485dbe6ed79a3d20024bd8701ac6
MD5 d59ee5baa53c32051372d5b1595979c1
BLAKE2b-256 a2541511eea11f77035b18febc8016217fddb873a282c6a91dc39eebad88b288

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.833-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.833-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 58b9d168505964f089e39642727d94f6c974072b3c20a9851fd06199b7f43b28
MD5 410db370a386930680ead862f02647bb
BLAKE2b-256 541a3cf3f0a31c547a0648444c43adba33b004c64e4cb646cd04d8acf9410d2e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.833-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.833-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 272a944cb30c444802a4cc6d52342d27474cd192654a44dd7da10746be9deef7
MD5 9f8b868ec2638523f433fd2cec28803f
BLAKE2b-256 9fcd129602a109e2e89c68b4c0b39e3c392ed9b5bbfbac83aa139ada3ec0e6c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.833-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7060e6b90e66a0ed1f301210ebef803b3a5c1ba02cc00ef5a5f4d094a94cf50
MD5 b02161596eb9108a9000338c0aa99c1b
BLAKE2b-256 5c37bcbdb1a36dfda8a6acb4fced63701a8b9460afa37c901df0d4c3b4333df8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.833-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 23927a09ace45f2e47b504f1a5dd4d3f6b7588e958b9b45ddbb04cda52271820
MD5 29444b7148312efdf1bcf7c21a3a2025
BLAKE2b-256 91a5df0a8e8f9b05eb2be75f51a37ee038bbd5a449416a61d68dda810290a453

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.833-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.833-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1be5a9b48912fba43976c8d74efe5f3f5403206efadbd9056ab5304ee4ecbada
MD5 52c5c71519a827a60b3e43838326b19b
BLAKE2b-256 1ae05bcada3908554deb63b175eec2e51b318f4abf79e8bfdea6124e7d6c1ae0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.833-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.833-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 408a0540266d2ec25b1335208ee1ad64e1ef023ee7c0e7c4d47ec5b348535936
MD5 b4da72604c1f8b6cbcc8a30460c943ab
BLAKE2b-256 d8f1618fb060c4d939ec60c24a2a46a620e031f8ab43715c9737ca4f66b4202f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.833-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 90172264f59e9dae7e1f60ee60ce5db36cfa1ef797b87a40626ba66884cf096c
MD5 0e22d8e77fa5070bca85044b030794a6
BLAKE2b-256 32838e55224e58c035434424bf5af5b7108bd8340512615b691a5049e837faf4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.833-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.833-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1c11190dbc79eb9e4424b18e4fb5b8cdfd8e8501218e9fda54913777087713ac
MD5 278cdfbad2823ec46e41a1df4d6cb5ed
BLAKE2b-256 a56722e9637dd36f25f19ab0c0f9d3938fc427cf1f81b4e18f1be0a0caa3525c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.833-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.833-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7da1487c07067cf9a34e7e4caf2e89c0db67012370bab61de58f93ab814c047d
MD5 fe1ab73ffab5de678f5fedf0d7ab408c
BLAKE2b-256 d52350e7d3402be62e07ba0d2d69bb68f6be0c851770dc637ff7e1760444dfc6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.833-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.833-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5815d0dbd87062b5ace605c89f210ffca057fecfe5a486e3920ae4fe38109d57
MD5 4e595e1dfef7e6a5f87724ffca7e1ffc
BLAKE2b-256 f9a1c3396157aa779afadc927800248d661a72c218ca7b1a79293357d7889b05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.833-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23b88fafa3cce58df92a3915bbcda4e7a8066344bf2ab045e7641521214b696c
MD5 a560478e2838125e86819a26ec62671f
BLAKE2b-256 2a05f5f29c51f94e8e2a13c0520322703e6efe7a4b00828b5d8f6d2666f77f58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.833-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.833-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 db2bebbc34166629d14171d946e5b2c681fffcaf9fed0fdcd211ae061e7b3783
MD5 1ad35a41db68c7e95b78bd5d2f8d7cb5
BLAKE2b-256 d87cc053b6ffeca326b939fb02a36d15b1ea711ccd6baed82613f456faf12fa0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.833-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.833-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 cb0fe1fd80105a2b83026f341c79c9d772e9258888b528893ff8a24fd15f0659
MD5 3a6aedd611e868e9c64eea77fda5829f
BLAKE2b-256 dbee24e6ad99a1dd213e855a64d56308eb396e467853af66c47f78f7f657170f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.833-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.833-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 033ca289bee9f413f5113bbf3f33791e23906d7a91f647b45bc083e7401184fe
MD5 43327135b5e217d5e804c5f98bcb1c60
BLAKE2b-256 15168fa8b97161482e90f0af7db8c24c1df5a15c8d7ecf16698390a4a165b329

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.833-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb30764b2d2699046cfba512db89006caa9093f2cfb983a42d20b3f32b89a8c0
MD5 6c22aa1cdc0661e541538600993614e0
BLAKE2b-256 1c36d8079534c756915b44e87c676a84b017eaa598b7be924b1ec8752341584d

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