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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.360-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.360-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.360-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.360-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a19f4211d2fae0d633906ac5a3309f7802af2849cf9b3ce4edd33eb4c5d5bde8
MD5 3c1ac710efab720322800f4abbf1dcd6
BLAKE2b-256 c645fd34431332467121f4967f579df31b22281cd82370cf5453440886d2794f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.360-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.360-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c8e7a56c81c3eb31eeb27f054be0df60cb49fa67d76d692118ddc095a0254573
MD5 a3c328019ebb92e3ed1d02446e0a6180
BLAKE2b-256 01b96f9dd2dc02cafc5557374cbf4ef8aa6e2c5b61ff0b064f0d74da3958c9a7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.360-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.360-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e2f551de2b6f606475ccfb03cbd34020d17a6d2b60086a02d31fda904c5716f2
MD5 ba7438e5e52b2155d4e5fc5c74927a3f
BLAKE2b-256 c04c877e38ef847c029e941dedb27508b47a0ff6266288b9163a68e777f0d2f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.360-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f400b4411d3acaf7fe5bc0a684c18a38fa67005c41ffbde38ce798cf8f7328ae
MD5 0e342517d5a7693da75e8f1248ab2852
BLAKE2b-256 13ebed4fb534f0986fbca77e205413a39e558cf63d02b6a357bd076e5034657b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.360-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1e56bd9f6c5a858c2397db69feb39c80ca833c9bbc8769b9910ae296a8bb9f58
MD5 4328baf3518d5c48ed1deccb564684ea
BLAKE2b-256 6726b5767c512812ebfa81ce43dba3223f88b7efcad945091607f0438a51e1e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.360-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.360-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5e0c78420f796f38ee1f16d6565de2b73a7cfc30760c1252da64842aaf96e1ef
MD5 724daf5d360ad7a3cd1fbd499f647380
BLAKE2b-256 12f1031d6e16af03b6b5e2a0cf5e025ea4cb88cda7a37433466559d2fbd9b635

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.360-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.360-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0cc1f8606d20dd60e03528df12bc747bc63d6f035c236444df783a4488baec6d
MD5 284f9b7316608c8c9cf7e8472be55ffe
BLAKE2b-256 93b8a4cda02ef5e2d0569f659519259d3a8480dd83c1994dc59ad47cb0b1c861

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.360-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eeb770b7d7f51cb2b41e42201211b24e2cbe4671611f983f84bf7751c8d3af6d
MD5 0274f83c3585ee635cc3e6e4444d579e
BLAKE2b-256 c0d9028f827f9b44d1a06270c51346b03e852414dc5baa97ebf838ae8fc9d5a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.360-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9397347e17836a944b3839ceeca6028d21ec2864adf72b59bd915d92229ab0df
MD5 94b9b8ebb73be31e8453c07db284e07e
BLAKE2b-256 392c4912d52ee2d12e070a55eeb5021b9a5e688a895487e7ad490e267017c2c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.360-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.360-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 36aa0246c0e2857526c1c68173c024f2f67f84085e1e32dde1099904b9c26489
MD5 d59b26a94f7fcfc5bc0a36d1d0c77ce2
BLAKE2b-256 83fb36a4b985dcf5422377130824ba6fc3d07e1383d84829b8b0af501f3594c4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.360-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.360-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 baf14a7a9d3bfe5feab927b3fb63d9ddfa08d80f80079a85f6c0f81af7e5b5ff
MD5 2d01df01b9eeb8e2f6f022e91e9f1a9f
BLAKE2b-256 15821f50d0642d08ac92b675a13cb53b2c818776347e3103e37e230d7af8903d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.360-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfb4cdb7608fe8aa8838aaf73160700256fba5b1852c2603d766667ec61ca92f
MD5 ac3faa56e3caf485d3db9952aa1f8197
BLAKE2b-256 b382bbb1034c3499694723dd654b3e96a2f2ce4be0acdee2d720a2620e93b3c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.360-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.360-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b83db016ee79d849dd9fd15b11fae0d6deda9b418f96b11bc749857969c5d192
MD5 1b425589290602b971fd3c7fd5d5ef68
BLAKE2b-256 3022634ab15a615d4ff5901a349561ae772e46424a628182ab7981ae6850ed6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.360-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.360-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8c72e78ac67e8d6245cd29e73a0f441d0d412a95bced56b3233886b5457b01b7
MD5 d539bfc7a419b52021ec5e1546d337b1
BLAKE2b-256 93a5cb6b987f5ff0eafc315ec290c10ee28ad75d0a01d460f51dd0fc69e9553d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.360-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.360-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2250e0b339eb2c8439346c0479bba707f1873ebab3a9bbe5d0bf5195ed5a620c
MD5 1a68941fc2ce09ec4d74099d632cd8ec
BLAKE2b-256 8d915da5554a80e2bde2cbeca0918ebfbe28f10fff35c0c0941020e057e009dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.360-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6eb7eea84ab4064746081881a76d13471a4c5519ee64985cac5eebd5ea9f397e
MD5 58e497a1b004457f7c4b20ad75e8c681
BLAKE2b-256 975ac7d40976618220fb054a1b65a56a0d542e58105c37a89869db829310b22e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.360-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.360-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 baec584d608a438b4135db7b59a385feafc42a33c4947edb51d4497dc13fbe77
MD5 ca466eda476e3a5bb0be5fd11d75c70a
BLAKE2b-256 484ee2ec7f37a5826d6141af7dee389d5a06b22c6c9435dfa646d790d4bbb3c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.360-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.360-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2380f8dce4656f0f452cbe02d0929555949ff6bfd8ec10a1e65c0c0bf4f7ffd7
MD5 43f98de1038d4959c587577a24420655
BLAKE2b-256 5a78251c356cbd05ab1be38394dc71df8eb1735995dd2b9b64042bdf3cd37bb3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.360-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.360-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d783985870ce306b493265c9d8b023aab05a41e59aa5df189cd72c0edda8aa56
MD5 c1ba2f9493bb024bac26670e23b28dfd
BLAKE2b-256 803c59546a488e41ca8bbadb4cfd3027a56cd9bf8d93a3393b6af99df796b8a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.360-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 817c68ad3813e60b4c7dec5f25ad6f85659ee0e84955ce3a5a943140f0c77781
MD5 95420c222ebe045bc7a1a19ffa639b9b
BLAKE2b-256 d8ffd27ddbc64471739433fd0b2d0220d3b8fcdfcdaa2642d1dc87089f7843af

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