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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.773-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.773-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.773-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.773-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.773-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e17fcf93c3d8ebf0d8444936cfc3bf87f95b812072b69fb0a53ef7930d6a2ced
MD5 58c63192999f6e434f86f61d70e4ba90
BLAKE2b-256 3995e242c537ed0738fe338e3c6968f1ec8bd12e53448b52ee9fe4c0d8552abf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.773-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.773-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9ca1a298ce219eae1b4216c46264c116e2312031c0dccc8381f76c20824d18c4
MD5 b75232d44404247afa85fad51e2c3418
BLAKE2b-256 b7ade8f12ac794c2729c30d7c4cd208dbb6969826041efa55be5cc6200085d9f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.773-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.773-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 137969a98d47a21c31cf3bf1b17f58c54b00393baccab71a0a092527a3f7ba62
MD5 56941e9b23acbf7ae93b6d2cb5881158
BLAKE2b-256 b7afafc048b91ae9a72f8bab45278b3f80d5f6547f4848a26e989f8012f13c27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.773-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8c0e2258b83aef05eb997775c75bc5dbd35c8a8b435b592fe5e1f9890bca51e
MD5 79ecd0d99cf1c796b664732b4acde61c
BLAKE2b-256 cb639e3b0ad6946f5316bd83a06d6fce82be2e7066742881a93aa91f3a95ae52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.773-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eacbfb22b3d845304c0a232388b77ab60457daec0911511a6269afe870199513
MD5 88969048853c92946b4018497e9da149
BLAKE2b-256 1f2c187de49e0baef19fb90003bf59b3c4ef53999414a72563876f3d4c40a8bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.773-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.773-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 45d2eb37b91e81865f6de62413b971171e0dd2eda2313accef13356a5e56b3d6
MD5 89d323b307a78b0eb73a99f58d1d19e0
BLAKE2b-256 d8c45f17013c77cc506a42d5b910b983801b2730dd50aa0523f5022de87b8c49

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.773-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.773-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7caf04af4122a58cf3cee0e045f414ea0b08e0d0be492607d1495cef34521965
MD5 1bf9a135708ede820fe74b7ce354fbd1
BLAKE2b-256 5c8f686f4eb17b2168c4ebd3f610f1df3fb99ed079f0f06c78535901c32250b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.773-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84a7b236998a1f8c51be00ce8e8150f8abda81e4457ced57a52f51821d908d3d
MD5 f91c87b15050a61e03d5e46f35c886d8
BLAKE2b-256 fd952bd04fa10138ca9e02c7b828f55d03c723ffdae3c80f0763d90c79571fe6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.773-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 38f7f0f18826a26e9890900c5db7d25cd4291d3069e928ed6bdbebded86c2fd3
MD5 54b81092dad756bfdc7e602e7a3810e5
BLAKE2b-256 ed1654908860627a733d0f5962385c158e5cc165c88aca8d251242d835cd6514

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.773-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.773-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 02a9ea8a812aa85e6d38ccc53fa6afac3b4f0aac51439fdbcafc4566b0820fbb
MD5 da48104c4c0851a962eba2e3475aa368
BLAKE2b-256 99fba72ad533099038bc375e79165a09a5ca5b70706da8e7e2189176cd0984ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.773-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.773-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c64d4a100f753c331adae89f6b16f7e79b7d34d0cff88002aa686c2c447c3509
MD5 ff2ef8cea9b915ba34abc7bc7ee6ff4e
BLAKE2b-256 c247b097a295258a81a3e8343b0e73e0d2527f7d65c16dda635aad46b9573110

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.773-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 83e87e9d927e31e49977bd61f040e9a6b03409fdc49369142aa52dc9957f4b75
MD5 fab0bcb0e27cbe828686940fef027602
BLAKE2b-256 5bbb48c48eef6292ec6774d05c8733feddec2f6f92ec86ca7bbfadccebdd8941

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.773-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.773-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6322aecbfeded793ec98c8e3e32dc9b414756761055248dba59210a64a501aa6
MD5 ed0bddcd4b2fc7fc6764dbbb15bec5f9
BLAKE2b-256 8cff99439c3e716555d365158c8032382ebbc7839b3cb642875c541c99504d07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.773-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.773-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 73e65337df36f8ef5a33cbf0f57d42e36f8bc3c85833d916a64e77b4f2c900ee
MD5 24219e7a326f5e61b4162f2a7459774b
BLAKE2b-256 40afbe76b276ca88aa8c870eee253c8243f377bbd0895f7ab763d011a277cfe1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.773-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.773-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 68eb72a136c7def18d03544fd6c9208604d41ad26c514f8e52d4254dcc11f7b3
MD5 f173f9d89a4e053ec007de9f455ba9fa
BLAKE2b-256 ca10aa2a5f59810650178ebe522b8bed2348922da4d127cc8eb6b9d78be35ab7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.773-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6b14a84dd8637b8094d8167ea3f621bd0d1ba6682ada625f05cc75f3e590072
MD5 f378feb4fc9bff55f9c52603e2483de6
BLAKE2b-256 19dc0011e2a3a4d9932adec083d0433aec44431bf33faa5c40282be4e7e67727

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.773-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.773-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d33087dd4f774ec6582e82dbc05ced0b638dac6fc5de95f256fc8f687c1fcaef
MD5 1c508f180fc310f8cfeaa72abb85d5ca
BLAKE2b-256 c4fda2580a456dd23a1cbbf2f7b536f4330db01ac226bfb9dc4ef90b16ef6783

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.773-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.773-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 49505b30130ecdefe5b5c172212095f4bac39b70dd6bc8c99e2a3421c13d562c
MD5 1103c34514c9880c4fa8f8607af8c13e
BLAKE2b-256 3c7cf38423e894e844c3aff8fbb3ee475778891808e6105d13084d87a6b61164

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.773-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.773-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 394bd45a02a36769a31ce11bbb96c09159fbd8910dc3f608206fca94981f7720
MD5 3ffc50cbec068ec6353484cb9639268b
BLAKE2b-256 c3aa0e3ed50444f35c7e9f9583fb930ade748af8c3b639426894967d589b2bc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.773-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 835df61210c24f70ca50b19ffcb91bcc395f324598353548cf4083a4d7c149cb
MD5 eeb4226173e432b2e7fe9db1bad8b108
BLAKE2b-256 082ded5e4b7068766602b09de3235aeaec22d7f05fcb75e400cf68f192809f65

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