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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.683-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.683-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.683-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.683-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ddf8b461197668cb573f3ab96f6cae69073df8a13f575dc8cfe3188372607df3
MD5 a602228e6eecec95ad9d0f5d3810516b
BLAKE2b-256 f5d782d5e8f333a40d97b9dff9b373befcd7060a1b80c190388395df0a82ce0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.683-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.683-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3a678447abb9f56059d51a3ba96996dee194163e6f998fc06f6c6dc958add344
MD5 a5211f51dcb448ca84a533c3d6688ca9
BLAKE2b-256 c5e25be2cf7290ae8ecc009366f5b5835c0539887c8069bf5a381132aef684c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.683-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.683-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 edf7ea8dd3c09c3d7711a06d6e558c7dcca27e802d15811e8e3df4f641a12fa0
MD5 0a68b5c433e01578e88248efd585b4f7
BLAKE2b-256 dc43e864cd50477b6ce124f0ea99e6fc6bbfa630574531bfae64081491c4b567

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.683-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94378dd2bc4528dd68970d6596e869f25ca10e69d668b24679d31e3a50ffaf33
MD5 f5722b1389f16e259b392f511a9b984f
BLAKE2b-256 d07c804e839d005914cfdcb7921673e3d44b162b711c42863e042fe00df6aff2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.683-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d384702b95484a1de9f2877ba05bd19d3d94f55f6136f710ccd489677b8654c6
MD5 ad7a1c79e763a8795f7c25efbb8da6e0
BLAKE2b-256 0c86f2f5383a6e60ecbd26785dcd0175b6dee6466fc6a5b0bf4946e425dba5b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.683-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.683-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 699ca29c2f2d668dc6cd8dbf749d8b89fbf16daa81b6a1bdb45b05c7e32735e5
MD5 3a02e1eb0ddb0aec99728eae30e97f57
BLAKE2b-256 c57cca6c4f21609b7d21086034f41c691e3c6e45a95ca9c75a9f9c44d024c632

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.683-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.683-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ce4fe90e8a9c6418cbded83bb20404936722a10ceb716c6ac0796fb27a47974b
MD5 70a4c61ad361851524f3b06ac9e95d2b
BLAKE2b-256 dfe2527c1c11f46d7e58f17324fc58a0dd00f3e56986cd91851490bd098c0709

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.683-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c9f01d9edbefb4a2489323c47d0a76a835d95a5dd4f6595a9a3106e3eb7f7ea
MD5 5219323d40832afa529a15c0882e207f
BLAKE2b-256 6998b540affb7a51bd2558bf2440c129d89dbd3948e8abac8e8500614d7091bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.683-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8a5c869e448a7a6a940759649ff1ed0f9f035656403912136d1a161c482809ec
MD5 631da09d34666412c655c1ed4d14e129
BLAKE2b-256 41056e870e918669bc7803d672269fc25a0455608c77356fb658202c30a9dde7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.683-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.683-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 98310ea18fb6a8f294e2d24fc01a54abba4bb72804a3bb886b6248a52dbc4a35
MD5 d8357e7a338b3b7a01f4785b84940c24
BLAKE2b-256 2b3e6b07cf8ffad0107e9645931060e153f76e45a49ae0c5cba44e9042942ee2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.683-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.683-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d5076ec6c1454d454edd673ff5fb4cd226aeb166af0c1aedadfacc7db80db93a
MD5 146e04a8846b77f745722c06674a5845
BLAKE2b-256 45214db7544105cd1146ff1048fbe81f72e803ee430b8dd7a08c1e507dcc48a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.683-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80d1f12be5dcc44b0730b3dd60d47a209d1314e3649b8832cd0e6db4492dd279
MD5 9b3a190e26457ab435644faac61144db
BLAKE2b-256 51bd8b09fde59f57693f7d36900d7225d23c9f77e1a3ca35b2ffafe3e8e4be7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.683-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.683-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6f2e70a4b13717344f1a101e0b11f3efe2c431e57873ecd57d6f1ca71f89e455
MD5 844c557209c68111c767b608014077bc
BLAKE2b-256 6e98ef902555eeb3552cd257ff69678c5cfabba2d4c79e6da52692d83449ce49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.683-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.683-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4e586d9f237c9889063126320e6111b3dd9500a924109be523a07dd9e90c2f29
MD5 aa785313af286b9e06beee9ed539aa64
BLAKE2b-256 744f9bda0961ac82b6d837d8aebb49a82af61f428303e656aca21682755e57cb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.683-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.683-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b20a51044e47ee26e235477fdcac35506dddfd016cf1e40248cd9804455dda8c
MD5 8e18c1692b4530b1fa7dbdbb5406ef8e
BLAKE2b-256 d4d572ab57908cf87dc1284d476e8ccb8f5e14177b58d6452b12444c5c3e14ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.683-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5b87d684fd4e766502819bae292ed3def33df7a552981a4764f6a4c43f074e8
MD5 36425a666bdc83b918ce9bccbd28bb7b
BLAKE2b-256 34e1827c1a3da063566a6410064db11e632828952c20ccf00678b55ef96c7167

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.683-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.683-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a42fc7e9e1e06ff69c22269572f09e9f8a7486925d1512fbe2a19559520a2265
MD5 18f048a0e4990802818702fe812384fb
BLAKE2b-256 412d297ce22d23bae847f44d32e481fee654871d6aa2fdc6ad56eecb44050c76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.683-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.683-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9ef6e92072536c98e3bd05a0e5bf14e0a62a7014f3b3d99932fd85e5d290a7ff
MD5 4121bc5a5f1822bfef3bd3e2cee7e96d
BLAKE2b-256 83547e1e84a78a1671caab6731b5ffc7e2365cafc82ca6a9a76461f349097970

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.683-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.683-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8d1bc18b5da6d4b8c70e502f7d1a2c7ec8226ee36b76b72f7f571f6715ea39bf
MD5 42e5f2df2c1a0c9047af3adf67239b03
BLAKE2b-256 36b7ee7cd747ad56df2ba7d86ec723e0039ecd611e41f296ad8d48fff96e5cd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.683-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a744a93ec184b914b9e4b3c105e9075d97bcace4ab36cd43983bf7671dc54261
MD5 d838938d2240afa1759f309228336ab3
BLAKE2b-256 b8ad6e396dcb08572928f1eebbc8a87d7a0f65f76a99ecd0b20883514292005c

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