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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.414-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.414-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.414-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.414-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 603d8351dd38bdd82fd24f93b2b896edd19e84a53ac4a9e9bad93245f636bf44
MD5 10e272775f90b7ac11f3ce47d9fea641
BLAKE2b-256 772a137632246ea55d0d1e3722e0ba6b60fc468fe9bb8da936efedcf75e74d32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.414-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.414-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9e42281e11a3158e84baad24f4ec81123a24b813d97c1c465f20f43250e0a2f9
MD5 acb2eb41ac21dbe530a7a824c00a5123
BLAKE2b-256 b660fa60e7e4d95b8c9314b8d8ff3cdd3024a7d99ae45bf2a562420bfffaa787

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.414-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.414-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 95b70eacd1af01ecd68df274964d612ccfa8eb8e6a0dcaf6894f16a04ed9eb6e
MD5 72c6fca0b5897e3ad950b48b3fcb5a54
BLAKE2b-256 3e2519ed8f53f94be2bd473f6be0c1f8e12ce3da01a9bd0858d154bd6dc3b326

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.414-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 42c0c2d28f6077fe7c627d1ab1431112b65ae1573374938f5a5b88996ce7676b
MD5 97ef948538a71bfbda49b695ee9dfb26
BLAKE2b-256 1b8960ee92aff9956c4aa6afabae8f097a5d298af28108f63d4c8c1df0064ae5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.414-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 27bb59c3cc1f2a8bc2f690829b92fc65d78e5131b7165e1b24b95f1435b61a33
MD5 a8797b53dc7bd6b59741e9172d97e048
BLAKE2b-256 0a5a555e224d83649602df78fdfe484ba87b4153082b942ad5f7815176959e92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.414-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.414-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6f667a471111f90df0f973fce406477ed902f4dcaebeb733c0b534ce0fc881aa
MD5 20a018ed0473afe22a815aa69afc65cd
BLAKE2b-256 59707e712abeb4ed7be2e6787dfd447e044c5523c14c5f3c48d643d6aa32aaac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.414-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.414-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e795a1d703a6304b046585f82161ae51e6ad13c199253df88d7676dbb77c024c
MD5 40809a014dfaa87dee47a56e61ba8de8
BLAKE2b-256 e1a45f24623155286fdc847fa60e67573aeb1bb0ca132905dee75e7844592f9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.414-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7c04d07557ea352f19e4398abab5aaf126bc15a0d2971364681ce6fb1037bd8
MD5 747dece70707bacde5efe74b130aa875
BLAKE2b-256 1a78fcdcdda8ab26a2a6c933f09ea54b436faec216db9812a4251a6aa66fc724

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.414-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7576bbc82a862bdb8273db649d12fc108c2a69d9a68ee0e2fedd82c8566982ff
MD5 9e6695b2c7fae5d5006280b9de22e8cc
BLAKE2b-256 bc0575e69e27ae737ccdb2ea556703f599f70ca20a14022562853c51cdf30261

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.414-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.414-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c73d852deac8ea60ae22db6a64ddea8ac11ae02b8a2acfdb7e6f189cf7ecfbc1
MD5 874057b727436713690ff87c399b1da0
BLAKE2b-256 33214108d7e510c709216041208f50f1980a83505871e8138f7eaa2561a4fdd0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.414-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.414-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 377671eba99f3c36f0b248931c83ab1893085d62c5853c42abdc98f7cb9cbe4d
MD5 d0dda5864dffee07df0329769073afdf
BLAKE2b-256 01bcf62deb2f402d83badfeee08af59458de4042ba5b1c7708fd2c54c1c8f2ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.414-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 133533abf9102001e1a43ce9094c8799f56ddd61b09def04adaac013aa88d62b
MD5 fe40c5bc89ecf32de46ad9e6da7d3faa
BLAKE2b-256 882fcd835f2c87d476485892078ffc3b290bebce4cae7dc46e6fd6adfd56b101

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.414-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.414-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 975a2d2b9d7591f8519dd826cad8319eb0c691b63553c4338880e1ea8c6087e0
MD5 c6330347a720799d2f789fb2b3a1d232
BLAKE2b-256 269bd11ccfe60f5e48eb10f26b0dcfc6f057aea98960e5e0cbd0006312e91e5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.414-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.414-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e4bda7ee610f08f38b211a395eb51dc5c6acb9dad7c9c90586cfa5d0d835f74f
MD5 4668c17fd7ed398517888cf647687a5f
BLAKE2b-256 ed586be85531aad29ab0f8c6263a935ce23b58ba435098cb9995d28e52a06f09

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.414-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.414-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fe135cd291afd5283d127cdf6a55f679a2f3e10452485a575b18cf9219707ae9
MD5 5e41f6f7a3ca7622019f4334e5bc646d
BLAKE2b-256 48d9322846a691a870bc8a19dd6918c11eaa707aa188a1d58e5c564bfff17a5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.414-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8ce9802590ea93376bd74d90a8fbcb8dca1df8c8dfa9c65c9cb1236c67fd881
MD5 92a8bdfa47f93d6d3b33506f32c4580f
BLAKE2b-256 4c4c9eabf5eaf51a8b2798b7fd86c74ffded38be09238ad03facb2fe9282ff86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.414-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.414-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b88237e0c0c3296c54cab100ac89b4944b94a273f20940b90da5dc8608f8f1ac
MD5 66405c18dc11654cc2ed53a3dc66441a
BLAKE2b-256 c7416f5ac545de61c06bdecf3e73cb96d8b1d86e6de60955984fd37f692dc61e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.414-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.414-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 77b3e57f7d24c8f759b3286ca5425cf1895861ac6f718c29a6ff0dd76648bf60
MD5 7ecb82ba4ce2f433ec9506048b43400d
BLAKE2b-256 f687d29a6f2529993daf209f8a5d1efad4a7fe8ad8c23cfb415b208a876d4023

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.414-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.414-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 75a1428948558288b409051cb872cd44bbe7cd6f7059b2c3cb0d4bc1fad4ca3b
MD5 93dfa6d57121a62b7d1661843b3aa002
BLAKE2b-256 00d91c74c9d81dfc01e5ae512af028d5781dae09493ba35ede31e97999333e4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.414-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6867ae455007e89b8463408b95903c58714524e3861f10a97f463b86fe11cdad
MD5 a74c2bb3560623612ca248906fb75b68
BLAKE2b-256 e2da9633f722c00325bf09ad4e8d4718107aadea42b8e34741db84bcda23db3f

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