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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.925-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.925-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.925-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.925-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7fc401230c2bd44b0cb53cfa3155cde525c9b18628c3e76daad69b598de24065
MD5 6bd251d2e5c2e604bf5874ba114157c0
BLAKE2b-256 37f442f1f83446812eb59d83081d7691460c3d39eba5a1c6deb8b9bdf0b98062

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.925-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.925-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f09043621d34a9ded07650cd85a038ae3eaa0d52a723bca7cb1b349786d18181
MD5 3b5328b6662a1b03903df64e08a5f459
BLAKE2b-256 0089d8aa4f86e53c002c728f6a11354f03337bd0ec336aee7e88269e67ebc08b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.925-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.925-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 933fa996650d1f72977f2c566677e7011c400f163cba03780eea964f4108f3c0
MD5 3801a4aabfda735a30a8aebae5aa36f7
BLAKE2b-256 8f2b0e9ddb812decb6e21683337633ce72b2423cff87112e05cb828f1fe0a35d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.925-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 848bd8e23f45374eb584c89a84fa8aee403bae3b192a5cd3f2c04209f26ded08
MD5 db62a6eae84d1b702a761d9f7fc4f828
BLAKE2b-256 3629bac1022aed2a4dd2c1069e4ba759824e832d77069ad8883443f28fcb6eb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.925-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 198147a75ba7ad4ac7d4b6ee64d8f8d8475ebe7694347d82549e067c224a3dbc
MD5 32dbaa795a79ba004bb08e5eb72b4ed2
BLAKE2b-256 68a6b803e23909f3639071bd78e7dd8097fbd69a2a6093169a9a035a68dd06d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.925-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.925-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a7294226484802e324b491fd77cd1574097357d1de9d6049b1289bdec9e9d931
MD5 b83abe7f620bf5d4cd0c507c773ae20d
BLAKE2b-256 afa84187fbb753863575880abc0ec360d41392f3e5cfa0ff70803efbbcb05bf6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.925-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.925-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc3f0f26a54d1b018d673a0a11d59b74df0a61cbf6fe93223c3a16fadd60b649
MD5 db5df20752e402abc7146722b6d85e3f
BLAKE2b-256 7cac8b25f35ebc4f0d534f406697741f0accf1507cd4d9bae26146ebaadab7f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.925-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af2c386a74556676e0069b05c96d87f16f82e8ee9963e44d9655e6db6aad600b
MD5 062e009e85cac17e95c8567d62d5b07c
BLAKE2b-256 c80f43466716e151c7b4640ac5121a646cef236ce69d6b126fb77946e15c32e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.925-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1153ad16d67e098296914d155ff9c4f3f3dcd11e1132dd0fb7a77f6ca75ca6f8
MD5 60c67a548d4cd4c20da2f98542cc0a66
BLAKE2b-256 9c1e80dd07bf57bde23f964f37fa585a5b6f8b8a4a287ccab438d1954e61f4c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.925-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.925-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c0127ac1130b01a6763a4bdb9ae1fb498ddb76654d5f0e900908a2fd0564a910
MD5 e4a0f2d25399faf390c358025a34e1c4
BLAKE2b-256 7480535e3bd5f1029cf6244a2ac395fbb8c32d804e65ae3aeb634eefcc904ef7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.925-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.925-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 03912fd1ac96039b5bec7da5131363b96ae68e239efcba5e1a0d89efe5c75878
MD5 e1ae74af65d5fdd784dace7339b32844
BLAKE2b-256 9c74057dd43855ce1d74d584adc024e7d278ff36ecab4ccc5f56d4ab0b38593e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.925-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1214a1cf04c7f3025f5e4c3a135d54b5cb86e3f5f03d6d214e596cce6d9f62a
MD5 6728a4f4da5b4a29e1e0332c12b63b9a
BLAKE2b-256 8bfc9dcdbc0dc623187ccf72f58d208477c90ea3d418cb5b2e09a0fad432fc10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.925-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.925-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a0c6f07bea40b146a7aa6cd52301909d8885ff04a25bb130bfdd56b7e6ce762a
MD5 68e065c6790bb4461cf28c7f5ac0b54d
BLAKE2b-256 244b23e120f02d8ab4bd46f8fd568a5bfdad8d12b94b43212cdf2ed66d8af789

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.925-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.925-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a941efe1c6b428e851f6802d2924d1568983a4f217758a07aa6d4234d5d7e05d
MD5 853d25904f845fbb5e94654a48095982
BLAKE2b-256 ae139c04823ca7d91896a13aa856003797bb10b097fa60aea2ae9e27a3dd907b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.925-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.925-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3fa47d14e8559c73efeba383687b9e607f0635b0e8dace25aa495f7a6d8049fb
MD5 32ecdafd8bb0b63523d0851d7b79ef0f
BLAKE2b-256 51a6287c34420a0a298c4e13dea3922402a0ef1dc85fd52a8aa13ebcc2f02de0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.925-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4dc5cbc8a8c4d400e1291911da9630fb8303a5fb833d01e47d50c19b8019d69
MD5 8d56603899358b103a392b40d4b47644
BLAKE2b-256 08acdcbcb011f4de8d09fcd60da280e2f24faa0e3b1dbdb638004b7f19994994

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.925-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.925-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2021f5223bdd7da51e6db177b1acf2edceaaf1aefaa6e5a1a341226401d61f1b
MD5 44a106353981f89249e4e8e3f709dc8f
BLAKE2b-256 7c81348ab106430ae2731da07059ee36657dba25903653590a817655a72add47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.925-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.925-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8d1f2d95aeee819e1feab298cfc8705cc7c5ebe1e0cfd39fbb80f2bf4d394583
MD5 e775bb2ba1d08a1d1cb3a90b5ded5375
BLAKE2b-256 13569f94bcfb47a0c8612d36e832610ece59f9f85b63c7011e5534a8f6785673

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.925-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.925-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dbb477e616ba5b2a005878fc5154ce443f6a5ae9aeef42aada236b00138a2ef8
MD5 033845c73568006a848972b37e1fb8a6
BLAKE2b-256 feb4c14ff661eaebda6592cb8cc0815ed3dca76f7585e3a1147fea3997ef7b7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.925-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 550885cc1c816bb57da41ec585a50d4be29d54dd4d5a902a0ca99e5829abc194
MD5 8736515d83e1d46a228022a11d133356
BLAKE2b-256 718e5234d0cb69d66e34c2aafea4ffb35b3a83ebbf7770fcda6b3631dd8d03dd

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