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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.634-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.634-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.634-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.634-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d38a79098501a2e48e6f91f175b2719ba384287f7c0d6fe6558a07dd49054b9e
MD5 c7a6a6d00efb7b4889981268f96414dd
BLAKE2b-256 56dcc8d9f359fc57f8f4f1f86133dfc57ad0ad8af3b3dd4eb71496a3bc7b140b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.634-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.634-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 26d375de40a1284f2c555e6cbafcb349a1fae1760b5abbff7b1a92de65125527
MD5 cb518f2f6f26a79e5f363fcc3d29fd29
BLAKE2b-256 33d18dcd16aa417408d1d9dda0ba8d697ca00e0daf4ac8a100ba426b5267a14b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.634-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.634-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 78b30b850ea0f0b3ed2405fd454b4d877d506d6748427f9b798acf9e48b185f8
MD5 e8dddf92d7e909a66440a11aa9514202
BLAKE2b-256 343e25f3b8a1b7397a9888b68d359494910fb21116615667ced01aa7194958c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.634-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b9ad8282264a5ac414226f69bb2d6b5a911968be809788cbf21ca4aaaeb2ed1
MD5 cf1e4500911bde3a8d00b4c1d3f52eeb
BLAKE2b-256 7c10e6b63c4b2007d73f3d37bc5af6831bba89aa188ab316fe80ffdfd943be45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.634-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7713798aefd6ff8a3a6961373ce7ffaefedf3c51e064dadea14f2c8d6acb1803
MD5 a2c4879ad8f330a89b713913dcbaa8c3
BLAKE2b-256 4f04b4a69279d83eb1373e7ee9e5eca2393aa0a27a00f9e0dcd1e97bf2c487f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.634-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.634-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 393a352862562c3a843680d23c9027a4cf962eedf1ffba6c97f74e345579c742
MD5 d7076ef0c8b7024021455ed3f08d1231
BLAKE2b-256 39f0564c7aebe841dfedd3ec7b28fec8ea7a18c7577ae7bba94069253f8bba79

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.634-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.634-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 147d966cacd359bf1fa6e3284093fc730ff59c1538a9dc4bc749fe2f237f5f19
MD5 da71a47616a9a35524a90b22826fcb62
BLAKE2b-256 3135e18935c43dad699493a791052127a566dd53cdb541cb3a7867454ce2131d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.634-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ccf095187e114a2de45264484dac991e3b6103ebf04fb1bd1fe461da0f279661
MD5 886b183b5e9e30e51710f30e5ea0c549
BLAKE2b-256 b69516ab544a26b16710f6edd97430d345959d3f47835d668bd826e9d99b3f31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.634-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 27867f2977317049f943b02ed8e72828862b82bb0fc8cc8fa0de9c3588ecc641
MD5 262ec75347ccc532d9b2cec986988918
BLAKE2b-256 7ef121f0314e7e77fc87a11a868de683a0dee98b25a4f10b237b0978ade39194

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.634-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.634-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a168c560854962153d8ec53ecc0fdb200865f436940f88d95c66d7856bc2e273
MD5 486dc4e997b997db08cad8fa89025184
BLAKE2b-256 827acd9cf69ca698381e714371831bf4d2eb8353ad84fc5836256c59584f97cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.634-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.634-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f0f7426395d61b040f61ecd28dec7af086ce02db028690fbcb7a15e642cf88fc
MD5 653c35c7959dde09121643ae082d5c17
BLAKE2b-256 ecb31ccecf7d1e7bee863e88d425029537e0b62f17b1c40563f142dd9c381820

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.634-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3334ad6696e17b4142349ffb9bbf87ad3b161ec38ad63f17a7aeb4c2eb6e0751
MD5 181e465d35ba44d64c768164c9e8ba32
BLAKE2b-256 57089076a15a5b1bde33d7085b1c714dd607109fc6af10e7ef98f3a25de4fe71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.634-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.634-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 89074b82872cb9b5f443c931616e9bd42d4ee63f633da826565770892c49f2e7
MD5 98243476b1b4f2e688a44202af9a2670
BLAKE2b-256 ff93d0dc7f6b3976710fd2fcfb60aa0d144fa5b4de706aae656f31ef4f7c0af1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.634-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.634-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 caddf2b0286bf13b1037deecd8e53997b6b33190092be211bd9341fb47896649
MD5 140a9f15132de3a821d61ae34740fca9
BLAKE2b-256 82348c4bff63336cd507de6a96ad1f174a3e79ec239c762250dc982b48335f2d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.634-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.634-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9bf944864ee69016be449372cad40f57a4ddec0fe6693d1d2ed028a4164fe4fe
MD5 d7e3d32e0d82454c8e151f397d1926ac
BLAKE2b-256 28af8679a03a9c54b0a6423a477526c36560b08cd30349c925e7ea2284a49a27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.634-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 679d71eb1f823f46077d4f398fc6d339b4d6ffba0ebf46f8d90ef53a689a8a98
MD5 53c8d9334664585422571aef7bce2775
BLAKE2b-256 3153c210900b36d6bfc29fb201c2a62d882e6cf9ec3c64507e6829cf94a48b1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.634-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.634-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 796141634db709fb8dc2ec1f3524612e43641151a3df93291d98d841987a6024
MD5 11bde3b92f7c03296c54c34799c91d13
BLAKE2b-256 6913036946f8a6af3a9033fbaf7dcac6ae3d6e620f03f151796f560a85e0c2a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.634-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.634-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ba40e3844cc8ee527bad88f8953c0e34a834c2b48e31b8ddf6c6855cbe5c5e26
MD5 e773e5b8e55270033aca668503a61272
BLAKE2b-256 f9b2c1192151591041471ae84863574ec6f52aec2f5af0264310c077fa164cc9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.634-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.634-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e6cbea1fcb5c3570786d7705d7b1e878ff5b426c97bbf4a024bd5fe1651175cd
MD5 b4dd37d24d708520ab69be1395c221a2
BLAKE2b-256 40c3a478534109d3c0841e68789f5d594f26b92560588fc65874bd00755279a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.634-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15b89c2f726aa0f133a2f2a908846fdddb5a2f7a181d77155b6df068a8554992
MD5 b4a6ed47bb814d704cc538e3c506822e
BLAKE2b-256 7f7d772f58c8cd3aa11d7df615dc9d8e9e525827507d70def5d0be2d8ce2dadc

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