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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.2-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.2-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.2-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.2-cp311-cp311-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.2-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.2-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.2-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.2-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.2-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.2-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.2-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.2-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.2-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.2-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.2-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.2-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.2-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.2-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.2-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.2-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a2ea6bada76d3737d4ffa96ace610c926a11a50c04244342fbc368cddb44c6ae
MD5 62a796c77cb7400320a7f35ee0c6edfb
BLAKE2b-256 7ef583b3e1b5e6447265ab496b104ad99d9513a524ff83663e9506cb50a28b62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.2-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.2-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 08ca865c99c6c14929afaf4ac997d48dbf822a10b31bbbaa7ae8ce270f29b1dd
MD5 f022388ab53a98509bfcc125ef3ed863
BLAKE2b-256 d1758d6f4ebe8a4d47ba452de84d55ded25c462b9590ce277177608a9e4d9972

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.2-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.4.2-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 02c2e73b0e34280287231683b82a9c975441ef98e634eee08250615cc9c532e8
MD5 0fe1b4d795f261447e6d9132bbd9d938
BLAKE2b-256 ed526ceef67f87d9c04161008a8e2810e835d122e636a6e41b0339430f6d1ebc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 786beb7c5c1aec863e85fac743cb8a7397b0b33c50d78a6fc840cc572ba02761
MD5 f2d4011a7a78badfa0b379e0ccf3a375
BLAKE2b-256 ad396acd467b2d0b0ee3b8d2eb31cb02ec8d4051d35b7b535ce8aabc306b2599

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 028cc4215ac75d1efc0c0f0ea7b38040bab19555475e0999e144e3d65326a971
MD5 bb0c72b2a07627b3594ed84ccb9b9095
BLAKE2b-256 1ced5b902041942ca4acead567e92e0b4d93676feb7d3d9726b968bbc754c1a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.2-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.2-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3c219fe5941dafb2456ea4749bf9b6919bb74160ef74e69d9167e898764edecf
MD5 2c6de7d2efe0c4d710a333b6b7ffb80f
BLAKE2b-256 e9afe0ed656cec109c702ce47b1dd50bd2804cc1d1473237989d73c20b7c2ce4

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.2-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.4.2-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9504dbabe157b6f029a43e4e002b532ec6e50619a23c10d8f6ad04d81de718ec
MD5 04bd9d20639b3b8d2d19555d92be0f46
BLAKE2b-256 d5c2b810e6206140ec6ef75a896b2508959f57b1270427fc5f2aff4f48d9d53f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4132d9b99bb4b347eff746c4441df4ab654359547d53f28a2fd39a0a3869314d
MD5 794cb89587296fbb96303fe2685c634c
BLAKE2b-256 5434a4ef6c3a443610bb96b0d1dbb1c417d8d77887a9fd2956d1c7306b5951bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 19c634a954a56ecdf4134b16d0238462bb8ba1cabd6305cec5f13802e291333f
MD5 1267649b92699fca236aa865a9e04f4f
BLAKE2b-256 e70ba5e14a2d2c17129001bc0aaa0d01f81f844380f838189cc267ef743931a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.2-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.2-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e886f52423d09bdd7cc4fff823208f9f67c2764ad610dc1ca81bd05be18d2137
MD5 8304519380dbea95c89876983812ceb8
BLAKE2b-256 11d97785ea877403a91a0bf53f7bdacca37f9c6b1a750ba7b6ae3d77899470c4

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.2-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.4.2-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff53ab9c1bb48283b9f0d4e580e4ebf634884c82db20e1331e9da679ad3e1687
MD5 2edcf6a1d82073d8d1c89e57be82bd2d
BLAKE2b-256 8b095c7a2e4ffec5ee92399a40db23d25565eda2619717401ade16d9b9dbf117

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 25f7c06af10876971d2b0b3a05249f8ad95bdfa39f16fe8398489000319d369e
MD5 53278ca2640b3371433e20daaf1b87e4
BLAKE2b-256 9a31a56c20a2462b918ad9a1988410087b2fd924e87408c638b698ce78929e74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9a07b304dbab2c9ba69fae0293ab1c3e27025d5ea3900f8f1650795a4a3f6335
MD5 6568e3288d033915f50da407beaedf1e
BLAKE2b-256 f2b8c1bdf93f4713b3714a724fef4641c2dafca2c7724a75aa457e184c1d76ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.2-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.2-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 712f11be6cafd0e7045bd96db213254226ba7262a044d27c187821bf80065764
MD5 32b5d5d6f04227d8adf7766b2fa27284
BLAKE2b-256 27c65d7788493624baf0497f1b0d22c0bca3109eb6f3b559e02f694c6046515c

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.2-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.4.2-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9dd7464c5a708cadce22ce35b7d0242780c689437396a0970f51b52d61333826
MD5 93ffc9311a321dc93c0dc36a92cc72b5
BLAKE2b-256 c8625e8781372e54ab42054fceec051eaca01a5fba28c95d2108c2130ab02376

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5270003854664d0891d70fdd25e4e38a5dd19371ed93cc0aae79243ec0a239be
MD5 a841b1303febb1618454a670956e3408
BLAKE2b-256 3cb55a57b93cddb65187c9547df14b02436bcc2f8b76e05155d18be27f7b3044

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 68aca03d335902548b667c6e0c1fb362430e822e01053a11ee8a8e5141e1dd21
MD5 405667744412f5a7e0e9839d705eaa96
BLAKE2b-256 503dc944c33c59979f51300bc1b0efa5fb83fa0ef82d5ade81b35b3eb4fe9e84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.2-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.2-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 92345cdf1069abf9db413c28f59717eb5133717daf280afaed039d2c946594d2
MD5 5ad6e2951a1d6f61464889c1f4352cef
BLAKE2b-256 9f2b832140fc222e1e2701644191e1cc8245c1177ae16b16a61a92730085ec1b

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.2-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.4.2-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 90b77304aca7b577c150a15af264511e14d6ae10f39f83c35e552ad1042a7e3c
MD5 97dd318f3e271981578acc2ed57c54c2
BLAKE2b-256 0f42983de86c4a38b754e430fcef3b819d01fda3e6b6e30ba9dde59781c84e90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad04365c0f34de90bb8d6608e1c57cc2d29955e4b00b0b7df453a1487d63ae55
MD5 3278896a8ff8879cc7f2f8d6363c99b2
BLAKE2b-256 bd1e1155dbe5a81117cb0705e0a39dad619fc8959cd8eb35aabc9216c5b3cbcd

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