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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.785-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.785-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.785-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.785-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d06bf168c81a63033831dd777cbb157f5b8461beefa20fabfd6a373d91cf1cb8
MD5 5f1708c7c47e4e1497b9e5c0c56e7da9
BLAKE2b-256 d4c625fe6a844792b0adec3987a2b4359a80f7a59a40d574a9eb3637939e1693

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.785-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.785-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 04417cb39c6299445153e06259c0b0d28133482b16b59387deeae5c9ce5fb22d
MD5 af05ea96e404bf062cc8e29421c7d102
BLAKE2b-256 b623f6f2c005e81a5503875a1aaecb07eef642e95f8bcac953bd8e4c240bf5c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.785-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.785-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 739264c9b504a37e5313532ef2736cf0102b02ed0516ebfe1163c1ba7515be4d
MD5 7a09748ef65c93dddbe490061bbfda40
BLAKE2b-256 5e086febf3702ee6ecfdb9591783275dc29db69f528e258b8915bf0bd29424e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.785-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd0b5786a579c7a5b35c2f2c9ca5cf9233a3cefe5693a7b64bda98afc99c5e6c
MD5 86a3f432dafcd47338e8d04f75a95da6
BLAKE2b-256 3c0a128ae8abd801a2695cd0803325fdd10fde8f1f736ba2d14c14dbf54d3493

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.785-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ee889d28f220b3bccc0b97052ef098d947d9df492fe51f310a61214d075f87f6
MD5 d69ea2f20917d2597a7b11c3bf851927
BLAKE2b-256 535b83cf33a42c6f9d7e9163ccd2257f277d10cd4560213e2f3cd66188c7abe2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.785-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.785-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 56216e188b6ee5a25755b4b594933d34ddb7f2deca60a80b4838283e1a5b9229
MD5 16847c0fd01a92357a0b1964dabd417f
BLAKE2b-256 78760275ee9b47564299726c4961f4b106bf54f82c02f9c637f7b76c82fcec01

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.785-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.785-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 054ca024848407fe2240213d4fca2e68f33dd8e8f856ed108bc3a3d802fe3ee8
MD5 a6eae559d6ed429a709c7892c4f3002e
BLAKE2b-256 69f3dd7a3b61bd77b25dddcf69682f61dc4a703d9fd84a925aaf1b9d97b6a219

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.785-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f43b8a3ec933d915b8372d595c9f5be0c94a75c1a3b72d9f8fc952854f0b719d
MD5 330c012fb6e96bfabbe3d92fa1fed087
BLAKE2b-256 80a1e5eca4837d9b68ebed44cb74f7508d23c8f7ec8c098ead9fd6e53a2421e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.785-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5c65a2e0397846959845ae58ffbb2df4891f4b05e9937b0a37ad5c34d34d0610
MD5 0b018d9e80fea98c35117bc50133dc4c
BLAKE2b-256 131f71b7fa3bcc9cb80968dc959ced50da253c1c396d1b10c76b40adc9b88d74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.785-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.785-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 90d3f7037fff8c8f709a68f59540505cca5063b5d608f543ed58ceec2f0e0324
MD5 6368995e3fc59e49678fa780dde8d3c0
BLAKE2b-256 9f8fee09dd3ac73b788214660c3fbb427f967afc1b0d33c9a07d4a6245cb8404

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.785-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.785-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b467b6adff7afd277051750641fe97b703eb7ef3dabfc57500d5c3d88d4547f8
MD5 d7e0e1fb9f90fc6fb79499c5879e63f6
BLAKE2b-256 e88d77b59ccba38f0b9f7218543f81407f68988e1683a803152854171c67e65a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.785-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e6c829ed29a395a0513b1100237b1cc81aeadd9d41d0c1c4adf202c8f4f94d2
MD5 719d42923ef95563b7d4ab38346d0246
BLAKE2b-256 bc60167c2dfe0f8f9c33267f320de1f2aa4f3b9f3a2e234ac6fa5ef8ca8ba521

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.785-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.785-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f816703d93c9a0dc6915a0874e7311173a7c88d759681da6f8b3e7c46c1f38af
MD5 8905097d14af630e5f1f9fd3e4bab3bf
BLAKE2b-256 40a1ba7b03b39edee39f3f5948382bea62a349f835763afc76c155fb13c50603

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.785-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.785-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 519c369a4f49a293dfcd9581a283f4c0b4634b68532b5f9809eae72f3d135dde
MD5 e38e2b2e242a4230b560173382d497f2
BLAKE2b-256 38cd055dc5883e2e1f510c1229efc17b3e82202bee5388f8c5ddbd396b283485

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.785-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.785-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 907d43c03c9980d1e4083fca35c2ebe09385d74506aa71e74186334d158ff2a3
MD5 e43de2e024aaa061372709a267d50487
BLAKE2b-256 99d5cb8ba9a1d5fe5f29ca5d7a772fdf05ac5be2c38d79f2e5a9ac89d9c25560

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.785-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b64a0d7dac61481acfb43695e97cd6462a117478a84d3ede82258b86c6e25c4b
MD5 bb55074adebe5a6a68a32303f06fa906
BLAKE2b-256 3cce4dd5aae6dc24ea6d3f81a5888608273840ee87a95f22903d672311afac6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.785-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.785-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ee8a88668f04c85b5313d6b660258cb034ed3512462b39a507a87a2b1955f8c8
MD5 fb39a45f0c819b5232292d5eeb1845a9
BLAKE2b-256 6535dc5aaa88338bec2ee0b4ad6f2816d389987bf4d5a63bb50e6085a2e3ade3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.785-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.785-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 655b6433383efcb3caf30b9e012a1cf2f61bc91a272451095b29da56514de2b2
MD5 9ea7808457617b3635949804681d834b
BLAKE2b-256 8905d2ebaa186e43b4036ac0d7446b3baaa2003aa87e1f56ad0ab9fc1652c383

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.785-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.785-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 abbee0bd701d1d52a04161760194f2d2530cbcb4e65bcd89d347d9cf4c45c0c1
MD5 1b7756f8f4031f49c83b2bbde6f5a234
BLAKE2b-256 c75fb87ce72061b2cdfb4d0129579fb4f21dc3034ff7b68432fd8c67949c2088

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.785-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 503d3894cf333c863c20d71b8194cd8ebe64c6c14a478366702a1013ab9bc080
MD5 516b3d975d97da698063312cae25d9f8
BLAKE2b-256 51946426dc6000652bbd5314c296b788403ec2341153d14d0a7a276e22994a26

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