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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.674-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.674-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.674-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.674-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f138c8a1bb4e8c2e4fd8cf987a7f4190efd5f3ce537b0a1bb7dd773477b1385e
MD5 86d6a6a6c59d15830e76a2facfdb1454
BLAKE2b-256 a9f7b8f1a4bd21104633b0df742e5215a63df8cfc6708008204bed42a1500557

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.674-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.674-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 62d2d6b75cd0c2e4e89db06bc4a0108381119db3108eaedb8faa35254717501a
MD5 193f299bb5c032f3b12cd3f2429b8ac1
BLAKE2b-256 73bbe7d798b5579e2994975b60c6efe0f6c6178f02285fdddf81f55e64e7d08f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.674-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.674-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 25fc169ef3637779c9c3cdf292680134f55bf0e52ae94b6192fc79908b1a0b9f
MD5 f73dd35780643c93f39eceaf4d60538f
BLAKE2b-256 efe08709525fbaa783f080c13511ee53cd6950bad0ed48709482f2890cf96987

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.674-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6266de038f25b235d159c8ee2cb782e1ade25b87956c6d9952f583853c590efc
MD5 ad830e2db660b5e4db447a162bffac6b
BLAKE2b-256 a3647d18c8d1ae8af4b8cc259fa3e8bd69fdf152221906c963459f467644a5bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.674-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9f4a8443568d90c4eef841a1f6c5c63e34982a1fa7a22b59ef0d45087a5eb1ac
MD5 a1ac4ba9647173149074a0992e2fbbe5
BLAKE2b-256 d0496caa2c888281a95898f861d686bf017135f582ac19ce5e6d456070c37d6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.674-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.674-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cf8623c46bbd91250dab74f7e518ffea0d2c6be6289b608dec253d56a24272b2
MD5 6875be95baafccac7b9c1cb4365917ec
BLAKE2b-256 6da9af8bb1250b9aa729f4900b2e13ae7445a6339ec5fd83bf9c904d05485609

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.674-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.674-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 947219b90ee94ac308f7d9dce00353ac376b0c00a94fe1c99adaad347a0862ec
MD5 65fcbb97d5c1d42a0a8f24c7e3e86c04
BLAKE2b-256 ed55b8276bda4ecfdfcb074b9d7ab43319cbd0fce2dbe5d0cd2ec9b865e240e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.674-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f260c801f3f18efe37bc86f3d447f2e4a3216515396840427d98b8f9806d2f2
MD5 26427feda6183c313e0a8c7327faa0a7
BLAKE2b-256 299046dda40fb152c013ec457c37280511c52aefa4839ac2af3337ae593d6f3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.674-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4350a28e0e1cbea3106093c53c8847bd87b1c24bc28062cc57209458d71501cd
MD5 5acbce59b48a0a76ccc056272c113623
BLAKE2b-256 bf14801912e2667707dc4f1387c01dceb0c4c8c574eb9937644f9f81165530fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.674-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.674-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4bba8a24c434ba9f0ac75b9214d7e79d30737438f2db44e37ef2c95781f4b184
MD5 5ff7fc896d928d5b73346dd71c865ed3
BLAKE2b-256 99e215b2b34b06f5d7d9757b97391ff6994dc73d41f2a85a02a53d0f7755b4ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.674-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.674-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3fd019c3f2038a4c13a8dcc9936d85da6c4a04eeda3dbae945432cb9f8d9d304
MD5 d92b5484336a63538512ac15fb6c104c
BLAKE2b-256 cf249066af9d4f5f7c20721d76be0daba47b980e2b3e79fb582a237a8b10c3f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.674-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ee4e44deb6e853139b88a3ac6d5d92c0ec5c76106cae7201cd67603a3f3d22e
MD5 bf8599c3a3880d571e872ddbe1f66e51
BLAKE2b-256 c84b3d6e586273a2be8d07e696321244a064561f256d0c10644a7662fe41514b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.674-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.674-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9e10120d77d53a8e77797972e78c316e62cc7c5b4833b48ac76f6f01c02dfbb8
MD5 f5f8550dec237a3ee8ae0fe3ef56e04a
BLAKE2b-256 c09eca6f3701ace594f07df1d2301b14174e7718b277384c919af38c29227695

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.674-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.674-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1c155147d4597704997f33514c481b51ca7ac538db0fafa3cfed6ace6f1b743e
MD5 5925d1de2646dd8edd7073cb66e8489b
BLAKE2b-256 8b91073d2de65e3238e3a709d7a96c8c095244cec083bea0796bba15d5e9f66e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.674-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.674-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3a657fb867ae186db9c21cf0d748657046a9bd3f96ccd7ca0310ef5a216fec2c
MD5 80e676365424f17e9d532cf1662f3a09
BLAKE2b-256 d9843fa9118aa16b1dbde3d7d28f49b34e69b9e8eaefa57224d9df64a525836c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.674-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 482da99affe47a785ff0739daee695c34725ee3d78e8ad5e25156ec195848ed4
MD5 27c387aaa3df017a02f339803d4486f0
BLAKE2b-256 95e14947b56847343050db4bb3f44ea56475a872ba21d825c990765e20d35fd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.674-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.674-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 be82b69f1069c2c465c0893e170416fd4102c980100872ab2ff36a2c74c15012
MD5 8285c6a054c28f58526f21ac1a82d7d6
BLAKE2b-256 196230fdf9d1497d86706e643ac20b6d9e8104f04f6a05a0a17ba25bfa88141b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.674-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.674-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c4ce4d158fbb81c79156c771d0bae67cec0aaac7bbd917565658b7770de96229
MD5 500fdecf640dd4c80020c4dc5e19ad7e
BLAKE2b-256 1978772330bfcb8a0ed929f0b71f4f01eccfcc6f99c6fb299307bf3c0436ab9c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.674-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.674-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3ff148d5fd32337e8fdf2738d68719f11ee2aec4558056bac25ceb2cf3dc7128
MD5 41879bc26b11c7d743dbfb81527e6290
BLAKE2b-256 98e7dace7292e77f1c6d860c7489fb0af2326748d01c14eeedcd2f96e9ba9245

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.674-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a8c742419c684a971855245c95748400e9ae1e65749cc05a0c7ef55a5a7d1c2
MD5 3a236d955f92583df8eed8a81440fd1b
BLAKE2b-256 5a591df0668e31340bb45c3b47fcfb2a860f6c9fb2f2a701e2de343564665a5b

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