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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.346-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.346-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.346-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.346-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fe2c54891db32bfc0b26ebe518b5b455c84309c55b2a2091b45b0ddcb9110cee
MD5 f958625e54c5a90ec2a646c7c7d35893
BLAKE2b-256 610bbea37dc03dffc9977c462beb929d6f94953ef2926b95e6aeb9e084cce753

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.346-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.346-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 11f551b852a28dbec2f381ce2441cc17ebb6013cb63ff70830650c97543a6fef
MD5 5abfcb7c19452c7076f63d55a9e9386b
BLAKE2b-256 abaf4c8b822888b641269abb12e52b9337205a117e86a0809e1db56fe5c3841c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.346-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.346-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f558f7500feee9473627457f3ae5814018a638204b2021465beceddd7d1170d7
MD5 c523b51201fc16ce00d7659ffeaf5b50
BLAKE2b-256 d8f9e5e586d822eb2f98f5534a94571d06ffdaf8d7fcd4001830fa594f03a78e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.346-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e029190d7bc38e98ca2aa88ff97fa2778f3da37cfaa7d59bee675968f0036bd
MD5 edc288ab21edc45e3d92353b60546efe
BLAKE2b-256 5db24f59e143c99f66e7fefe466ed5baa0317d3527b0eca2d1d50f90747de6e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.346-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 aa16cb57d597b789c44aea2a0d5d63903c762b56f6b99355412fc9c05bc28037
MD5 7ad40722a7cef366ac5717ad987bc789
BLAKE2b-256 1193523056706a924e550399e1d09f5bb10aa3244bff2071fb6529385fd220e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.346-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.346-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 06e4b542633f26bada185c9d572d6c6249481a1f91ad1182833eb3f0a21c658a
MD5 b7a191ad77bc267510489efeec261301
BLAKE2b-256 985d52a5419c4caedd7c66d1ca747937f4a8072c7f39363fabc756a466dc2452

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.346-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.346-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 290878b7d019fd5c202a321593c68e8125f865e37fb6006e5e5efaf212218537
MD5 8e620512824ea46ac85970f94257ad30
BLAKE2b-256 b93d6618fcdb50e59ee170970aa5fa6bb65d78425ee8597524e3229dc51e1a1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.346-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c0f462f7a69fba5e1ca2fac9756627f37ffb25d3fd6508f23f2bc7e7ae106dc
MD5 f2e945d48209ae5f42ef68eb3362fd31
BLAKE2b-256 1a208651ca285120792c939a9c5d02721f665c2ea4200356e768605686f53147

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.346-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 775ee7fc5a0d503f9a6fb4cdcba75f728b002bf3e6acf66410369065aa61909f
MD5 ce27dbd797d9992317bce1d35e1763fc
BLAKE2b-256 cfd4c50a6ec396111619b23ea8c3e524d31b98d57e05b0712ba0e48476591b42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.346-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.346-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3587649ca7202ac9ba8bf5224ab8aae259ef4b50c3917f9eb14934399c417d31
MD5 55875d783b586641efca58ee92609d24
BLAKE2b-256 23a2a1b8f4d4b18e25f372778ab716890c0026a11d73e980eef6946d8d4c5501

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.346-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.346-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e1d5b1a49a981cb9420fa3beccf9fde9ef388eec18114208e8b5d4276e106e0a
MD5 4450deab43b1ba836a5dda890ea6ff9f
BLAKE2b-256 fa8b706c3f2b59922afc0851b5b205ab2170acbc19d83e075b06c335870900e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.346-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d3a607d1c91ee42dece1dd39ba8d34e4bad670f59da6c1564a9c7c8d362a86a
MD5 67ce4f8f9af5fc1a174b1307ead4f2b7
BLAKE2b-256 b3657dedf8a6c21cd37e6e5751317bcd01905ba0347a44ba4be8610c44eebcb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.346-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.346-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c73a6601be5988bd3e3e5ffa7db52cf7d81348e6b6510991e0d6e164753a7483
MD5 1646b6c200d157c7946b7e12049591c5
BLAKE2b-256 9f7041d2d7f9c1e9735601ccfbc4b5718711c608a1af79df87dbaa8fa3bf091a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.346-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.346-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 387884af092af672b673251f8b5b21420472eef344ce38e20454f28a02fa97e5
MD5 f748ac4db85e437b2f5d6da4b5c26c3b
BLAKE2b-256 105e2c97348cb5b707762a35d187bdfc63102e3caae234736cff94564162ab63

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.346-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.346-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5ac02a4df32f303aa162955d24374340fdef8ae244a9ddc30185994c80ec0294
MD5 5f3a8ab0a1d27180fdf2cf71eac75b96
BLAKE2b-256 2729408e2ed229fa236a69ae8e691f90893674a6833226347765d520b8487441

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.346-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9ad3b4278b287b520be5707b0398bc61be5d8d6096e35c1f1010c55cba9c50d
MD5 540b36341593686bb8ecbcbbe7a70c78
BLAKE2b-256 ad2cbe2f6ffa861a1d45e6b22754bd1d84d114eb373c5e4712628bfff31464f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.346-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.346-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 937ae8a14f3288b8aa3911884d14550a8e11d02cbd2df498f6e384aea783e31b
MD5 0aa86edcb600d08f91c56295e579efa8
BLAKE2b-256 094b595377d8e1c7c8ed6e2709bc8ed75ac21197e313c19e118a4a30ba572005

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.346-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.346-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c752b7a4433f669fed2609e0e1095fb7b19d1ba1612e310d9da847f1d5a4d9c7
MD5 501e0feb14083c9d2b5bcf99169d1224
BLAKE2b-256 13a8c9db7737c6c5413451351851548e89e4287764df594dd192a85e9ed52b8f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.346-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.346-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d8be9edb0005c1257884c3914dde4355c5d47c0a8f0ba06d31f383c9818c995c
MD5 2c93fdb39cc19544ee4753715b1f9720
BLAKE2b-256 84a498efd26ca6738a342a78abe34d74af855eb7d83c6c69095ffb1c370dcb19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.346-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c6594bcc29bc4c57138117506d94265f31cdb4450d67a46924467cce266d7672
MD5 db98a48a094df758d14c17ec77aa9c2c
BLAKE2b-256 71c42754e34029d1e4dea87d2097e5d7709b4e2e933837c147be8b16dcd57426

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