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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.526-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.526-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.526-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.526-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a5a3b19973d33d4c7a01603cc5375352a170aee064186b316fda6ae56c38bab0
MD5 42c293be9ce949a1d90ea1c756d725c5
BLAKE2b-256 a92d30dfa950f5d9ff9c27697f26ccaab0fb47f6a46cd50e74b534962fe341cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.526-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.526-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2a61bc57264bf56d89ca9e20e259b2990a775d193438d18d589bbfb82ea82b78
MD5 66c5190f5488dac46f8949a8281cb33e
BLAKE2b-256 68668294bf98952b429aed0168dea224d9a05068731fc139b1cee7f26f65098f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.526-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.526-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 28c5d18e4dc2d9b96133aee73d9bdf88b6fc050cf7c3d9c6e7e5876ee6b3511f
MD5 6125a6163deda036c86ab7ba5f0ecfcc
BLAKE2b-256 e91e0d37d22ff50498921e5905584d113883f74ab555869c60f7a1086b5242bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.526-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0cbfb85954478b5bf183f57d24a53b696ae410581fe28e736872f103a79cd3e4
MD5 b974fbbd7aaf8607128f80b977ebed7b
BLAKE2b-256 8d98128a88bc67b4ef9cf5ed3d8b5836a8cfb257d8d30382df984b8b58aec3ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.526-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dbf924bc8ab211d3837a993b4d00fd33005731818dc299d540319e952d166e51
MD5 78107b37abbce54f7bf7a6145fd55478
BLAKE2b-256 f157dd79d80bf42b3a9555e446481371c8f53145734afdba59f9348f1ea10aa2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.526-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.526-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 912d8159d2c8a780de27b9612d8939c1a8539d99de2a9ba58de31ad45a2c5ea6
MD5 df01387962a92f4c08bf2baa609cd3a6
BLAKE2b-256 f201d85f4365bf8daae42feaadea8cc49c7e4361b7e22fc6046f9905a89f5d1c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.526-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.526-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7a469a60928afe507cf10b81b10839c31388af041d8adeef52bcaed0c9c72705
MD5 0e633f22978a7a011708ce649cc3d342
BLAKE2b-256 f6901fc1f213c30379d56161139548d1d1c6dff7672eacc707b2cbcccee95007

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.526-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a5a651ee63fb910ae03c18e2d8e285808363a2ab83dc087e31d61c891db7901
MD5 93fbbbefdc983b9ae5ec3e3f4e46c54c
BLAKE2b-256 ba352d922de477eaabb56bcc8331cde1622e4337a59be3020f7c15c080d6c77d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.526-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fee1ca8ab487b069ff87f6485df99ae6e10b9fed6e34f2ae9f05c489066e02cb
MD5 cd81647d8bc73c6f4023b00f808f48b2
BLAKE2b-256 7edca106698520515a401c76a88c048728aee26f874f0f17736b6c178611faa5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.526-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.526-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 68130fbc836f41ea7f23f655db8f4f8a5b1857f948578ab961912997f81c3ddf
MD5 7073fd9bdc880430083095d978aa1966
BLAKE2b-256 c4ede2b6fc399727f36fab29978375f366ff3779c0d59df1c6c253bcd209420b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.526-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.526-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 000fad24676376544154a913e604bd17ee04aeceea1f625456594c6910d507a5
MD5 46b95a504335c01226d5ce678b6917bb
BLAKE2b-256 1f795205b94eb0605d726545a2bad8a0c096b9b2e949314c83d14b4fa8897d60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.526-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4db80b6a1274d2cd092f59217966dbd65362267e0bda8a071ecd036a64cac446
MD5 b854d954af6b1d84aba4d979aad24d66
BLAKE2b-256 681d9403916826e428773a6daa087ecc58f99bdeb7b99c0768931fc20ab078bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.526-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.526-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 91378e0950181970d77774e97f7d8f0a4bfc1558a3e90973cda2534010d999dd
MD5 2479ee0e3aa2ae6113b9cd95096a870c
BLAKE2b-256 d42bac2868c73cc103405f7fcf51db0c2743d2d99d0566fa3ec502589d34f887

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.526-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.526-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3d96df1f69d133e1e48b8fb97fe7ec0fe5d706d504d3cfc50a256e38a989e36e
MD5 563e0ab700c20730095ed097732fdb9d
BLAKE2b-256 6a367d9f8ad32870b142176e5ebab85011091225c99b8a74adfbb71669560dd4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.526-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.526-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c6d3a9be3cd00747d8133537e5b080f6312f06b772b09d90ae0586bb59e1c63f
MD5 e4bfb788cc34906ee180501370b6cd11
BLAKE2b-256 71ad52b732eae16f117eb10270fcc0ce28705ebb38ac0c44a055bd0153956353

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.526-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6629b05fb72dfa2693107ca42e627b12d5e2072c1f3a5acbd1ab6fa339e43bdc
MD5 476e6219945081d060aca56279074e20
BLAKE2b-256 3d89511af21a2bcbe1c7c3b634bbc53ee910f02e0bf4a9a52fe0cc387a70e993

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.526-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.526-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2f1385640c92f8ca5922dd7d151b6b2428c2e3fd56340f2dd65043e44ae1bc02
MD5 c429e7c43eb86f1d572f0ce1cb411fd2
BLAKE2b-256 ca94c0cc1c9a9b7207c21b38027d2f207ce866cfe64fd286cc6d56b9bdc89ad4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.526-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.526-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 847a996a289501089925d6bc437174230c6ce67dc6c929d136d07167b32da82f
MD5 cfba0a77ff909db49dbfd2ab11c6c271
BLAKE2b-256 b4db5da377c79a083ba4be24569c48517beadac3d46428a72bffa3f4777dac44

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.526-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.526-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e47e281b6c8cfd530e424217047daa12310a5b572f3ac02c68f9b81f3371f9ef
MD5 9afc65aa3bb01b3a3a8ff12e7bf01d40
BLAKE2b-256 adb53646b14ab1daf61c17dc04c3b36e46b322d49f913850ab154dfa117c8ddb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.526-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 451d43bfa3ed78413cacd48a2ac5da06483f9d3b210ec6188b283eab96dcab06
MD5 c21c005eddc84798ee8b4398dc3c25bd
BLAKE2b-256 507e7892888ada579ad54184fecb5c400a5a3ed6d95916dfdd5046ad6eb00ac1

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