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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.224-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.224-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.224-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.224-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 881cafd9e840ed0b6e7db0665f3216fb8d998d37a3e32ece4f26456c69a4b57c
MD5 f85b97229b9f574471fa2d954bce8b72
BLAKE2b-256 3c9e530288265f2a357da44585f7c9c96c8c00776e824f6a9687c4760d262576

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.224-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.224-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f3d4ede2a89844934664d24feb089653c3c4914838d0bd57ab53c90164722c3e
MD5 b777e92a174d8dc684276e375041eb4a
BLAKE2b-256 da3723e4d5e09afb069438c56e278a033f5d56e0c141f7a1ebe3cc1dcf6af0e6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.224-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.224-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c3559ef8a0ddc919bd3dbc1d8dfa9d0bb8c559e691f54307e68b8827a45fa3d5
MD5 156e257cb40d7d26c8d877cc6b2987a6
BLAKE2b-256 1d18ca8d2c0f4aea744e98485a77117df5ba014b895d6b5e100fe0fde1dcac05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.224-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07674b6495bca6752ff05c1c10a909dcaf4fa20fff697a291273821b24e589a5
MD5 a2449a7ef37bfb678e10202ebfbc9b88
BLAKE2b-256 9330360c1e1e031c4c6ac2a050958d4f82fdc5954c8e26b5ede59283bc58f9d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.224-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 628a37dace206bcb0d243ec69a1f8e89a1a3e3ee1f23841469949cfa81567063
MD5 6cf882cac61ef1a2b3fc821162ca6f2e
BLAKE2b-256 6a8eb85003aff896b7517b00c3b2d52e725354f2ca295d0d575d614dae110c89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.224-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.224-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 78166ef109c592bc58f1cedb3dc7bc3cf1fae16e48fee71720f7dae05cc489e7
MD5 1c9d609d6c690036cdeb679fae49a198
BLAKE2b-256 3ed656e6d6f47d9853405ee28f55497b435b61d8b2b2638629b241a2b01c2bb1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.224-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.224-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6fe207a9e6496eab3c185c7975f2236f10a78ce472c67b9b9a16f7b3f2f03504
MD5 07e85de5a61371e76e32adecebc95710
BLAKE2b-256 3a1883f4d1553ef8feaf9e8194ae33b5ef80784ce6c77b40d81bbaa19b65cf30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.224-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb7a05cb6c0219dd335ea802f0e2e5a13eb178b808e8fc366ea6ecb6ce604248
MD5 502c0bbc16ad2d73591afc5a00e5de56
BLAKE2b-256 26d8e3e8cab02113d78dff97eae862862a9aa9667383758296234b3c50992e92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.224-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8cc0071c83d7835dbbd4b0f879367634cc6746498edd691c4876e4ee22786151
MD5 9824d130bcb71ffa4f16823075339822
BLAKE2b-256 ddd67035346ad5ed43843968cb0ec23f47c1d59ca1cd22bb1dd15fe15218f6c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.224-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.224-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b9fd167ad0c52c5ffb52159043322f1add6bd82896fc323e5daaae532fee79fb
MD5 aa532fe5c22fe69cad9d0eed2bb776c5
BLAKE2b-256 1a243ebb82121a349b688b4b350d7415ef115e9348efbf19a80ae05511cb3d87

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.224-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.224-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4bff7bc0913fca77976525367db078569766cf58a6d4504bddb9027f74b7ef9a
MD5 3e6d8495142959064d9637bb0d8dc4a1
BLAKE2b-256 183ed5119e79bbf5140a8539a0eef3a652db0e07191cf593031bbd2823afdc39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.224-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d9c765a86200ca5092419b8b1ee959b4b0d7c14e9d17fe626094584ec307940
MD5 ef32a480165e7486751747fbea7f4db2
BLAKE2b-256 569ef0d43d2e07b6006c6cb65ac762d7b9782871a6b3347a0e64aca8021f4728

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.224-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.224-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a8ba7e32e6ae98a35d2e6d394dce25eb7c54f5501b23620572029aeca38440b7
MD5 1b51c17a1a5483474067b89f2b00a482
BLAKE2b-256 945af54dfb711a5877feadf2078b770f7fff766465629cd354140298a71d6330

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.224-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.224-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 147df994cb4fb6b2b887a115975ef4a3e1cc46bfccadb084764ac5d4ce962a8b
MD5 275c74c510a9caf36e6c903432021a10
BLAKE2b-256 dca370eea4172275c048e63fbcb7f3f407e68334b3714a4b47ae6633b0b8f227

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.224-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.224-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c3815351e3a1f05268b7e3f20bcaed34c0e608be52e0cd640f4862438ceaa74c
MD5 83445388b4ca57d67bb999e745851a68
BLAKE2b-256 c425cce638290641ef2b91c0a902d6490684341b71d3ff8523d4f9ae06fb95a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.224-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7900dc79b059c893e564e7db60331bf1c0841389a2f67b7ff38ab0fbeb0ff0df
MD5 f03b1ceaec7147f7c94e9615f8b46e9b
BLAKE2b-256 2b584d39f5d424cb951e543c2ab5193406f7f2422464ee3a3fc01b1c70d4ec17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.224-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.224-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 56d12d6e7067f133f831e4981945720da1cc6eb97ada63d73782f6345b8bd94f
MD5 619383ad3886e499e676f1b32106f0eb
BLAKE2b-256 a54d22b15d9756f5bb66c84665cc75e6995e58744ebabede6c60b744ca1f210e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.224-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.224-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 afb5cf3c8fe1840cb5b23c4bf6b1681f143d15a2e26d8b219fa797cc018d398e
MD5 ea2f1eaecb5a4362568b2281056d97df
BLAKE2b-256 929cf384dac399dad33895715519feef3fcdd35d7cb8bbe6fd51a6ba7875bb17

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.224-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.224-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9d482f6f125fb3eb9c264a441e8c4b7a083247300b0c0e455803aca7fba7f961
MD5 19dfdbd04ba8ccf6d2541c56a0bd48f2
BLAKE2b-256 c9f187c4d4041d27443d1287d8c01d53cd04bc42ece5053455cb62170c10d3ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.224-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ded1aa60f7eea72d316757ebf50c36cf8bb13ef32add39ec1700599519ce31b
MD5 413c78656f0b3c7446747d46f0f008de
BLAKE2b-256 e0344a7de22648dfa6b28b3d4b9c8afffa994a6dfc7b2a8db48c7fb1c2ccfe37

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