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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.23-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.23-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.23-cp312-cp312-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.23-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.23-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.23-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.23-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.23-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.23-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.23-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.23-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.23-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.23-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.23-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.23-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.23-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.23-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.23-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.23-cp38-cp38-macosx_11_0_arm64.whl (114.7 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.23-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.23-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.12, 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.2.23-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c84b8805ff162e55d199e169d15afae7f1acc25de80487f2f51627971992357d
MD5 206900c6003fd7dcef777621b941d61e
BLAKE2b-256 4c8ee53aeba9e761de8c2ecd8168ff57ae3880c0a31db4a65b629eceb7193efc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.23-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.7 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.2.23-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 79a8b205c9bbc8014d551dce90162dae14a0d9bc0d569a5454eb4563d7117ee3
MD5 b8d54ec095b5d90e7baabe3c1fb4c72f
BLAKE2b-256 a94a647614186d310fbf21dd6c79c8daa4c3a36e7b75b14622f6a23c1b8e5687

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.23-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.2.23-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e221e9bbe013b184377c43fd135781f2e1d6f86c61c22c8476ae4def56c70ae8
MD5 5b27779bb908dca62a7e2da18839839c
BLAKE2b-256 89824055eb7cacb21625fd6f1ac8119d9dcc823eb80002ad2ee93bcb0e45ab73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.23-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64f6fa9f16d82f39c4ad3be652e4c4d0dc674575e5678d5c0e8233f7059cb9d1
MD5 1906521ebf3dc26e7ce406c992d38060
BLAKE2b-256 acff67f6666c656b01b39dfe1556eaaf4411719e8800bbf70fccabab258229cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.23-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 kB
  • Tags: CPython 3.11, 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.2.23-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 036ea4ab43fcfefc012ce2883fc2f904cbc044c0eff69f55a80b6c147c341f78
MD5 32f0a1553a360874ee90309e393845f8
BLAKE2b-256 3550d5b971adaab7203df61d0a2149cb450c1b3441037695c6a46a2d2789c68b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.23-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.23-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d5d820d3faac43e62191177af3e9b4ba811f645a374472d3c83ea8c203f21a14
MD5 8dd2e2d943d1b6584d8c829d85c7e671
BLAKE2b-256 cdff9a48152d70c711ab8011e6dfa05e0651b1af76bf73f7750f8c973196d7bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.23-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.2.23-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6cc1ec6ad2bca63d00e7be7ca17f9768e158ba297bdd5fe5d820feee64dcab74
MD5 4aab52fb77f6236cf2fc11a93171664a
BLAKE2b-256 97f9f7b29214d29a20005520cd5c6abf100c64198e8a957f8bbd3ad2abee49f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.23-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0b9445d31e310cc88d502cad3025cfdaea05da6ba8d4725f3532501ac8b4bac
MD5 d84bacebfc71adca68d1bdd9eb72e9d6
BLAKE2b-256 245ea52ab6d153226492d618a394d868c2fa66f7a5e180b1f636ec1fa2904f3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.23-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.10, 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.2.23-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8aad46c4e2eed0132255abe3b464068d23ee968bb25ac8213a7346a1b71b9c19
MD5 fc34d0393c807cdabe569a12719c2909
BLAKE2b-256 538bf092eec84152d080cbe6672eb28ac9a9ec48e6494abf13ccc926370d3508

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.23-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.23-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 13a285f9d3f35ebff4889219da352dcc6436fd801ea10d810b3d74606a7ecd41
MD5 61bf72421b09a0be6f314dd910597a4a
BLAKE2b-256 9cc68a2e3849428db5ca2276ec2b6234551e4082775379dea219cba60f6b1a87

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.23-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.2.23-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6c4818733ef22f907ec929e85b9c933ecf3b3dcf64a0810cf21184953bdff165
MD5 bf1fa2654007b7cec07296bfc560d360
BLAKE2b-256 744d6090d1eec37e64a64e7200c67fce16f8608ac8b8e733e47d1995b6df220c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.23-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e0168c17e32170de6606818dc9555cc43db7f682023298fee5093a34797b8c7
MD5 21947c00d82d703a193ce2e2ec1c1b43
BLAKE2b-256 c9171df0ba24ed4d28bfef2a60571a4aa43e39030a19c374ed251d29b7533367

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.23-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.23-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7b41626ea762fcac4d8102781ca2907c6fe3a520a4c460443e07eced0c2a3f34
MD5 bc91f208cf537d3c596307afea3128fd
BLAKE2b-256 7bf598e2fefbe299683f026ea6d07852ea62b89afb8cca5add1c631c42fe2c73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.23-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.23-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d16bd92eb5868e3275b5930342023c42b2d0bf4539564ab9d7a5decec489022a
MD5 27c6d8312533e3e26391cd2847ca2324
BLAKE2b-256 59c1e27833fdf745106019b5f2a0444e915cef26074f00cd9b07bb867e542329

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.23-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.2.23-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3e0bac9fe1ff7db5ce783b6a38d9f9965c93c3a48eb29a1bb474cbdbbefe7c67
MD5 fa00eb02279a637c01ee455753c908ac
BLAKE2b-256 bb83f2a63c7b2f2abe2cdf181828f93302f8e794d2661785fe434c912b1bac81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.23-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f50efacbfbbd155935b74acd01620cd825fc16752c609bfa8284883dfdf3884f
MD5 877c76346eb421df7863f40a2cff7fb7
BLAKE2b-256 ed03aaec853171d1d48d9a879c78e8735ec24223afd9e96457f557c2c445a5ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.23-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.23-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e988e5adb443563c6e123d158cfa06a80689f9e4bdcf7698b51aa62333619000
MD5 f6c637eb3a1bd4c8f9a8b51c4312edd8
BLAKE2b-256 1d37c8a7d4389b84002f7c38469a16c1af8c6a62093bf48ef26e2d222e7e6829

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.23-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.23-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 825c395d41f202a29d7aa12de3140e9c18b8efdf01c6618ff0eed1a2193cfe04
MD5 d7e927229ccad83ccd0e5075a355ad36
BLAKE2b-256 216024338a1df68fd00a43d8fda581aeee615235e240eba1e59723fe4f691a5b

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.23-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.2.23-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 34334491fb02b918420cf94cfdce8700faa07d75904702b156d2e12fb2185ffc
MD5 f15ea772a09d78047f215a507b5aef4d
BLAKE2b-256 ffcba1f476891155e0e03329b51190796c0984fc0fc18f5a4d61a70f64b493fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.23-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 604a5696407b3506bd7979cec6d2405ebb2fa83f249c9f6f8d2cfce0e427c3a9
MD5 0592e79fafaf958e0a25d8615764b5f4
BLAKE2b-256 63760ed7902989169145536070d73c0da85df9c59677f065fa8291b25749fd7d

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