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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.826-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.826-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.826-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.826-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 106bf4fbf1e46ad2c3a470e2c38a41eebd3777b3354a2bf3906947546ebdc446
MD5 ecbd05d781658fa7dee7a3aa0c6ded23
BLAKE2b-256 cc0fa6f508444facaa3c13912a17ef3fd8fb06b8c64a2c6dd128de845376f957

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.826-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.826-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 00504aa9686c38e6052dcbe1778ca9b2df8a77c342947efcffa1c98f2465e9be
MD5 71596aafcd6bcaa783efebbc01975d4e
BLAKE2b-256 54dfe0a47a4f655482173ae79ff5e6d2af396d3040c39fab2e7b63a690e6896e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.826-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.826-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a6daaab993ad86892d704940806cd9c59798c2110cf44fef3ef6679c20ddef46
MD5 f8d213fef49036d6331160512b9d3ddf
BLAKE2b-256 991e08162a2342481d886d84b9f853ba08ac011a3f069e99c3f051a0cfccc2fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.826-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9793b9d4a4f0f1b91c34f128ccac155c07a038f619ca0d85c7c8a127f0708e32
MD5 56859293703e83b0b73144c42a9673bb
BLAKE2b-256 e371b16a439e43cdae764fd2947ab4ce67c1b3856c7a0432a9693f089078ddda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.826-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dd8b9fec200d5000e4e1d7eb1e6ef89b9776a1517e348daca050cae35fa7e0db
MD5 de7c3ef8568d536c2f041cc78aa275e5
BLAKE2b-256 ca59770ec85235e759739e79bff81003bbac15935445abaa9baf9b6a2ec509dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.826-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.826-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cce8c8c4f37bfd185c9a9b67e1ade956650549d91022d1277b9b86bed3ce30ca
MD5 194521a81b6e272c32ba1b67978fb5dc
BLAKE2b-256 a56a01fa310bfabcf780bf3a691981329e6653f7360356b01afde95c4c02a2bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.826-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.826-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5e1b19d45b0bdc0d33423efe820bb99de92d97e17dc4847510622260cfc5e91a
MD5 c1fd486dd5bf9625e8e58ad8a8918b6b
BLAKE2b-256 902bfa4d8375021fd9a52e59ca5edba0af2035593d20e1ef8393a940c84df7e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.826-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 032ff7c29339177bd463148c3dc196636c70002896b94144f3fc246d855b05bb
MD5 ced5d0ee2ffe744f09d0e0fd831e212e
BLAKE2b-256 5ad59c57bb9eb9a33c0894fb53a50d17bd33c094423d07abac38c78be3706071

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.826-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 228c67c9016cd58572607a341d41b92431a26070ca9c1e782eaa1670b24c3322
MD5 717990662b182ce9f6a81ff713cec367
BLAKE2b-256 24869920a1ee4b5d30715a9e3219cb0208ff1bcf37b719bdb922714c9fdd954d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.826-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.826-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e11644eaba611240fe2ed55b12c16cae3f9bb62cce56c885efa74712f6bfa2c7
MD5 99de456860496ac3bf8c9c2af53fe9d1
BLAKE2b-256 11ee460bdb61b2be5c62220309f8900c0fed9b6c0a218f3152879f34e562d0e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.826-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.826-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88c5c8a1aec35f672a213e1e1723cd6e589848d9f24bf079b79f3caa7b2813a2
MD5 86e49201949c62e6690f945da5727617
BLAKE2b-256 b5178eb6d78ee4e9a23fc8ec573a044be48581d1fbdfab546245bf6a59fc4314

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.826-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47d35fa0a1dc7611d2c55b0b09f6ab967ee5e44eabfcce362dcb74ba1f671400
MD5 43cff64056a3b3fde943670cfd61ce79
BLAKE2b-256 ee6c111df7f180b88f69863375d7814cb43b9620fcabe92a849550c1a87e8765

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.826-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.826-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 048ea5edf64f0bdb32d99767b02e513a2cd5ef008720ab9db8c59b234ec86709
MD5 d57a8ccfc3fb580704d668353048bd70
BLAKE2b-256 bf79e4b21740c627bf6ed0b11e5b11301cbcc6a667c61514046f9b2086932dd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.826-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.826-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 644c788f99ec655a97e25ce3040429078efa44f2984c657bdc05bc9168c43f43
MD5 d3da81e4a3e461a2ca4905a7c0646e0f
BLAKE2b-256 232310062d901f0f49d48ebb93e9ca28eb18ff9344e876761eeb91cd7235b777

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.826-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.826-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1c8e3e090c39b8fa91d71b48315541644f61a8e1b78d91119bb95b891ac40e38
MD5 47dbfef5206e28ca6b5b87944744eecb
BLAKE2b-256 06550e957c1fdfcdbe5990a9e9320fa5039b38e27ad7809e88fbec5384d1c7d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.826-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6b257657456de734d017c86ed5e9b15f441cf7da568a3a7a47244344a18b488
MD5 bf93ec226b5323334de3e254e43cf3de
BLAKE2b-256 81207de60b28fd7f3acad21e70d16b25cdb9641450ce4e25d1d9bf3925e47a5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.826-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.826-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4ee19abbe97a2c0f3cd5dce525f05a1629add3ed2e2d3018f3f2d5aeb8efa401
MD5 bfe6e98c1933dc831976ca122f053964
BLAKE2b-256 9747b75423665103a2ef990a527d089c9a6ac90193e2b133b9e0fcb43ff6614e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.826-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.826-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b55c854ccec7f3d14058f11526cb6f45ea70d5d3d9b7c507a2676db615b9094a
MD5 947eaeeed0bb684c1b8562805ccbb960
BLAKE2b-256 e5abc18a518d180e386324527ab550baf73c914237febd3769e0d2931a6ba0d4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.826-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.826-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1b08d603be4f53909109b59996763bbe9596aa58edcc6d59b3dedb86918e57a2
MD5 44a5406593d365502cbc6915ecc02c1e
BLAKE2b-256 d02ad7bccd35c1f089de846c596b992f22a2988ec6739d1a0f22130d744f42f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.826-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68032555910c8741a5ef454499bf18090ae0bdd07600dc2a54e106f12f8b7bfc
MD5 182f3404337ee2b5bb61d6e2359cb1a9
BLAKE2b-256 aaebe65cbcbe299c2ccd5bac2681be09058925608b283a5c6e1719e38b509862

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