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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.766-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.766-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.766-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.766-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.766-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4eca7ef1edc89514681c4a16df6ea5519d20f3e7cad08dd2264b5e9591f20e18
MD5 1e7d3a1cb5360e09a81306abcc6c4e9b
BLAKE2b-256 4943adbe6726a80ce80cc9cf41d53aaf603006f9b4c4d816a8b1e78ac2fb2028

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.766-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.766-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 730add87bb0be6a8270211bba830ae15522fc4cba6d89dc1e19f2c68b950cff3
MD5 de592ce251c31a67c7c7ef786143a87c
BLAKE2b-256 ec168d408922730a2f23408f83712a12ff72db69865c6247784269b73bad06d6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.766-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.766-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d7b23d99cc5dfe74013afff09716f8b5b8298846cfcf07afca1da717ff6c9501
MD5 f370ec9aaef3396a3711dec55f476010
BLAKE2b-256 d231f3e654aa172ea3322e18272961c174c2bdebd0a9522e6b01a70af657ef67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.766-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb6fe1f913a047cf72698fcb3aaaf3d635f40044d0d6fc60f4e3e822eedee77f
MD5 f2bace3cc926a4a25ddb9da5a365a777
BLAKE2b-256 9c624f9bc6e41de49468b350109a29b07b84f3948504993bcd34915b65f07181

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.766-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 21c4f39294f1d6f0fc318978d2ff0cab9fe790bdcd4a211940d423a3b54b3436
MD5 63d12a5859c4faf4bc0ead66d38aa8be
BLAKE2b-256 02eb135ac6f1f70c4fa471bbb3f864596ed7885abfc6ee1f424308e72c99e9a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.766-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.766-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3a4674e0512066107dcb0bc82088a34346c95bc8a05fb85395ab6406bd7b88fe
MD5 365cccef944a2fc47434b923bacaf71d
BLAKE2b-256 76e5dd19f63d85a6ab00ac93145931cc463a1994b3c52cb44b8ea6a7f2b0e8b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.766-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.766-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b2a68253267b4fb84e291551c76074b879ec1593a108b78a28a5c0ba9fd67f03
MD5 d632ce83883305b8f5a50d62f4842005
BLAKE2b-256 d69bd4b69b9303f43fcb0dbb07457d2b3e22f74c33d2f2d6e06c7cadb97ecac7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.766-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8b28a57345cab1c7fe62672269f43de3adbb5d328223685598cf15d2467469a
MD5 60cebeca6d84bcd5945a9a8db1233e4e
BLAKE2b-256 7bded7005db766c0f27e10ad9dec68b7d5834dc33883d9c5cb62e0c2a0cb233c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.766-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6d41bc1020a111ea37fcfcd2444630f6a309cbc188db20344123bcde6de5302b
MD5 6310e21213c8eb2e2f8b4824ef028e93
BLAKE2b-256 70ceebe96616b2a3aa31de595e7e7a2c023c757587983de0eca3651e47e5de0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.766-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.766-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2ade370c2f7f9226f80b793f9d2591dafcb273a49888584278fafc4274156340
MD5 290ad03be4c3bdff7c2db5f7c95cf67e
BLAKE2b-256 f9ff2728777510d50582650fb728063b26d3e0ec7ddbfbc3062cf75c7c78ae9c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.766-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.766-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e6119a1cd69b4a5a88f692e9eaffc89b5ba9529f19ce3027e2188db2e2616a0b
MD5 a8bae5cb381ba21fbd18ec31a74cceb4
BLAKE2b-256 e4c3b579ff6648869cae32153601aea4ddd869a9d8e5ff75166b221123bbab40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.766-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 049257f441b6e1d20f0cb20006c7ba3ff14c1749a2174a083a39c2140583b086
MD5 943ba05a48abeaed52345b4825c32f41
BLAKE2b-256 3c3aaac56006b8cb802fb3be0fa058bb35698f14b83963f6fe85e8fb6c6dea54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.766-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.766-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 18ced22503cdf3dec2b9dcb9d55685fcb03e3b6a0cd3c6b634e873570318cfc0
MD5 4c85758865159e01d7a1c97ef71d7bf3
BLAKE2b-256 ffa68b5a8f8e85ba89126c6acdc31112a9430fd827fd08b1f388b2140bf51b57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.766-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.766-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 327d1f922eff4ba9862877244f005deae60ea7a55247d07c69a325a8dd2c2dcd
MD5 075c3ff628f3d7e10244eac4b3d8df40
BLAKE2b-256 af0e8699a5b036f62a2721d18365adff7f7147ab41f27b07d0eac1cc7d9c7b2e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.766-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.766-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 05038498618d18e0b62db1c2e5c5be6155ee7025ca026a5add5da8d5d195cef6
MD5 f788378058cebc2eb4221da13947d9d6
BLAKE2b-256 fe718185464c98e95b47291d5c19e2df7487691a4c4e9e958c38830a071f03cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.766-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 540ca284af08873733c17333a7b6847a58ba24f33194c93834688f6b505fbf8e
MD5 ddbcd8fd2a4e60751384c6215e56f790
BLAKE2b-256 cdece8de0c5f7973ea685392c755a0fc2adf056c04e463d36fb757d7d5c1182b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.766-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.766-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 28f2e3f4354243765a447c9eec14ab421b9b93be0e39821f384215e5cb056a46
MD5 f2af1205d1cc2168d9943c5357616ee1
BLAKE2b-256 dc537269cb18c99d80b34184a32285dd9a2f249be18044fa2a9257348637944d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.766-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.766-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f648ef215a0409ab0dc2ce1e572fe184f6f11fc902cdcc9f172ad5763be0a581
MD5 5ee2f493a8d8dd8315c9c54c1eb28c79
BLAKE2b-256 e05c922f5dee9789b14b55b99d2b7ef54a61aaa35ab52bbd2f50c599564a12d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.766-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.766-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6016a4440e08f4b5f690a9c49cb4723cc8a8c730aee795053d3cb2f16ec34936
MD5 14f084f810c34447e19de8b887ba28ec
BLAKE2b-256 d1123771cf9a9b1ded35ceadb411f7b99fe0aa2eab3fc7aa1aef8e2fde2fad85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.766-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ecf819aabbeda21cbebed0347e93872ca34dd7fb7033ac4f337906f616697d2
MD5 aa62c114d4282eccf326f8d69da1195f
BLAKE2b-256 e5fdd04597b12923bd97b08fa7268a2b3536e93a29311dabf4adec7db964aec1

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