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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.2.62-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.2.62-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.2.62-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.2.62-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.2.62-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.62-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.62-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1ca0d7dd543bb6b22c363ec92c86beb0baadc7ba092b10259d80f8d85422f103
MD5 df838f862ad8a1e8c48202b4499687fe
BLAKE2b-256 8af00f2f4dd34268274c9cd0a8e27b357c40ef07d270e52689fef309d0353048

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.62-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.2.62-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ec6422c3e7b26e8d1d51dea4900a7cdf956cbd38683745f58764fe2086de050a
MD5 0e37c9fa758a35c8a7fcf032441e3d12
BLAKE2b-256 50c380bfaba91484d3a6d5993c943b4eb488d298d3c51cc6270c4df96ee829da

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.62-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.62-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2ff91599f319d9894917aa5005a7f452a8a2093d6173e7a46f98c58edc9a68be
MD5 a4c09c6473d917690607ceff266db48c
BLAKE2b-256 fa32db084ac44ea561673a5fcc72963e928aac10b188c22d4ea8edddfc244dcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.62-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 970aa7897d34acf3ca4f8f2a2b9302d6b7c52d7efb4ac4eae3eb98ba9960970c
MD5 9f8eb1e139eea8af9e12bb116636d6c4
BLAKE2b-256 311ce2c2b22157c23de18b16fe29680fc462e70591bb97af00121ae75466c156

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.62-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.62-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0a87e54d3ee2be838fa961cc51e65a4751b6f02ebfdd58c1a95f753dd4b15a18
MD5 a6e8aca455d087e73efd3bb7f8f8a101
BLAKE2b-256 249f5f3623d9f76731e66f2710a1c288433486fe299e0e83578bfa957550342b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.62-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.2.62-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ce28573613244efa8ee4f8b6e894490f5779197ce7c7dbeb10cdd849c3e04969
MD5 f6ac52ba434bab8cc647130f22c709ac
BLAKE2b-256 d5e08b4bfcb72934aabd9a05b66e8413271d7e9be5d26d28a87f4935c3afba1a

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.62-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.62-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 87c3003a7e6f506e916ba3f09ec59e22cbf19d3a86715f0fc4d8736707ecf0c7
MD5 78cc1262896ba72ac6af01bc752ef6ec
BLAKE2b-256 10d1e8abde1ae8174ddb5a18bd151bfb9eb3722a261d6a59c9d7a7f470718c3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.62-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e48947ebcd3b5962f4d9ab6c7da2814f337c6cdd23d6b8e074ff373784bde92
MD5 21818d8350c8e015d38452486154d209
BLAKE2b-256 175ce5a8ff581120359367474a79e07f9b44a7a5e56bd5a56efba6ce7ad9dc61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.62-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.62-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0e32e2b5e57ae1bb0d6df0d4b031f241c35b29f6146e70e49432d953099c0db5
MD5 379c872316d5c8e2a8b6a26dffd51de9
BLAKE2b-256 6a5239d44358496f4268ac29d7bf8b594203147bdee1e928a23388c961b8735b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.62-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.2.62-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6b7c6fa88c6df574110a11aa6fd7084501aa4e172ffa5ccd7d8c803b60ce4e91
MD5 d3b41a9e7e006e0bb9b1e7305d0d5dcf
BLAKE2b-256 2fcb900efa0e3cd03382c02c50a18f72d505e964a309e229ca7950df490b3a61

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.62-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.62-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ccf43613b65a6875d76cfee2615c09624f4c627e83045717b7e2abfc788d1663
MD5 bfaeac139e0ff8b9fd7ad4789e23f1aa
BLAKE2b-256 5e0942120c2cf3dbeb2bae229f0101a7dddef676ee16ce047cf02843ed388b70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.62-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb26bcf64098a259b4675a7299659536520b27251cf99e208eeb99a5fe20a382
MD5 19e02c4f9ba6583f9421eeeda7a27e71
BLAKE2b-256 8785f7fd6a4789983e1f2b6c351310f7eecbc0166c2a1672feb6d137ebdecaca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.62-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.2.62-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2a56d92db96304b88b1ae0a39fe5e039c7e5aef26bb02cd80b61c7ee4ed62cfa
MD5 3f7c541ad239b8190ac9784e13af6f4f
BLAKE2b-256 81f8ed6a8bfdf1a73ebfd9c411d2214c06b9f9dee76863b18110d1768ee6c94b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.62-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.2.62-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 46ce0d69b8a9ca17fb288d1b9327c8e04229eb7c3e492b301621e0d874ff005f
MD5 07b6d6bd72e1daa7bd551f8534222725
BLAKE2b-256 c08685cf11e4ccb5a32336c6cea4542dd7bcf2174e0e22592d926b8de50ac636

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.62-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.62-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8f0d12b69c504ea0c71609265fa46bfbcee2fec391606e7199e587dc361876c0
MD5 685587fcc19b2c799e7b968ee3cf63c7
BLAKE2b-256 6e01b6a8e31c71a502a004dcd07e9bac0aa8bfaff52ba4069017c80dc98a39dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.62-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cab569883f20c5fac869acc9ba020df33c212118ba0b3dc3e0d7f27dfbe63ca6
MD5 8e3d7c0577b9a59a4ed6560859adae65
BLAKE2b-256 aebf04f99e5ac26e3322c844beb7f24da154de92b383704ee01cd77d57984c28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.62-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.2.62-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4e69b062c45706075e4b34d7fec72c73e1b5eac46c67bd899d07672cdd29bbe6
MD5 56aff0ee1b2d8310d5a93c06716fe579
BLAKE2b-256 4550d2b92d7a048ad04e5fc9c378ac5f533185e6ac30e2c70f93713bf689e27c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.62-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.2.62-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ad9ecf334871d29a844289ec0ca8103b432177149a556812bafbca5c6a06be3a
MD5 19b33ad002baf41ceb41440fe4fa264f
BLAKE2b-256 ba1cc61cde2f179790cafba621d964513b4c3386dda32697636375925b258884

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.62-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.62-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d598994fbe8b006a8ab8bf920e3ee44574beac0686997c4b9b2a6d741f8a5fe9
MD5 974d701cc2eecba2b2279576c14f04d9
BLAKE2b-256 57f559af9d340176663bc39cd1604c4970c60b90d825f6c1d0c3560db7bf1870

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.62-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 adb6bc164a14f19985be2c80bee53dd03ab9d45c90133bfcd683f3df0fbae8ad
MD5 79cc03797f6df998d183debff19e860c
BLAKE2b-256 b6ab837be88514cbd3b8fcae2555285ad75b6d7f12aae4ef8b928ea725dfa2d1

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