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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.505-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.505-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.505-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.505-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e5b99cd361b40c6a1e89adf6e576b3492271ad9c1531aeda33ef723d42d7c250
MD5 810761c06a11383a3bce457ec089e659
BLAKE2b-256 7c3d53c71b12b95f0a5400d6913544f7eb546d35bbdf671b1ff925a66d3e8c66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.505-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.505-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 aceb975451a1d8ecb2764063520b774f176eaf0618b135e1f0f45ca343513b24
MD5 27d9c8c3bede303ec738eb622987a3f0
BLAKE2b-256 c500edaf6871cf4ef01fa725ffd2b10eb4bb5c9bd187bb939ebeecf3c976a9cd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.505-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.505-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 80443ac823c6723bd158ce6c7a937a361385d5ded74688c81f9e8faaf2a1afbe
MD5 a99077abbfd1216b946ea7e4406f4cd9
BLAKE2b-256 a27a7ba662d9edbd8d75a853565e86caedfe292186b59d0cba33e60b6d23c572

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.505-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f09bf9d255d28dbe320d3035fc35a6ebfd1c0bfe5178047485dd7300586835be
MD5 d87ac3d694c55912f235444205bb201e
BLAKE2b-256 fe3adcd2f84a68aa8798cb1320f50223dad115d95a9446a94e00e91eb24fcf8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.505-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9865190e6e3e5798890c891d72f6154804e8bb646791e45000b5b563be95e29f
MD5 b864a458570f44a826e88ecaf2893fa3
BLAKE2b-256 081334842dbab8d52acfa97d8aab9dd1acd44e7dda339647a71cb2591cc60a77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.505-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.505-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 73f62f248300f087130ba9550d4280a25506d6df1280741c941214819ff45586
MD5 949d6d7aca68eb276879e342d6693659
BLAKE2b-256 a02fa71f76d7a1fbfe97cf1b0bcaceafa00104e98e3035a13b50ec15802b780c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.505-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.505-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 727b9e6a20854139b9ef4b6f1d8877b8a9ca3378ae41e20bedc8e9bf243691d4
MD5 539fc1ae9d8352049f1052e63410ff74
BLAKE2b-256 68996627e6714c7cd919c6cc98a58c9d653501ccd18034850a817a76b36076ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.505-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 599dbfba20d59dee876ade55d1d8dd2609e969d0c1323a5282dd9cbae09a3d77
MD5 28dc47eb9b62d998e80b41a772e7de24
BLAKE2b-256 e24cee76e50b519db0da56a2c327adb1aad694241ad3c8d89b49a60fbc87fdb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.505-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a4697f19553e80fa406d71a86d05c52da2f10b7f3dc63a0896e9e4453e65a9e4
MD5 d8c503c450a99e09db5b1b719a39060f
BLAKE2b-256 dbd056f3ed038d526e1371b6fdcb8ef79af93befe98431f580e87978f06a5d61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.505-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.505-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6574c7d3f3ccb82cb332eca811685261cf3ff2a44277a8c5976158237591ef7e
MD5 4760d2115a965a3be2ae3bda13d4ba0d
BLAKE2b-256 cc59c551388cefaa17346fc3f84913279f3d318501f4b65d1445ac6418b8f157

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.505-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.505-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0570cd4737339d7b1a2a9c6cb194dd2bb149a8aff9b7be9fae3c333694bc0791
MD5 5d22da8f25f7b3551e1a4cd64f8f4cd8
BLAKE2b-256 40bcc2f842f2202d25eef75873852f01128d313181c24a1fe94eb434e296cd2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.505-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a5b6552b9b8a726bfef713fa1655f06f8d34ee48159f325430bad05b34766c4
MD5 371842aea44567153347ef1271aa6f55
BLAKE2b-256 7f159927228ef62ad912957d6d8f1b21d38f7fcad4cf5606e1414aa75a667fd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.505-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.505-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b75b6b098bd95e55373a18bd9dcc64dbe2f7b801e37bb29ca66021b72b06e5a8
MD5 fd2687f0e89f401765fe359a7d8740eb
BLAKE2b-256 cbd28b234ba28c40a555bcf4ac431fa0ba90a764a89c788f113e165c02fd8289

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.505-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.505-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 964ce82effab18f61d5b18f16dd1c81f3525e441e5c063d96b643da48d126221
MD5 6b47bcb6d9dd72e6d888d076618f7926
BLAKE2b-256 4cc22c99ee1329d1e303f59b21f4ba5db5a5ae391aa116a625945a958112d416

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.505-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.505-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af7202c5cf1e7ecf56a174249bbf785f70cd2745321227dd8d46405a0112aa50
MD5 7e4cc5f5770dca0caf343bcbac2f100a
BLAKE2b-256 8d43708fdc5b291f1e1eef14b202c379a4aea02043b541ced247e2976c13c705

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.505-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a34e6cc8c24f55b3de110abc1c87f6bc83035f4fe8c2143505c9abd4e86b8828
MD5 fe5567d3960e70c7164a4eb139f3d60e
BLAKE2b-256 fa15184a16290c0efecba606bb986c6772ec0413f0b0571ffc16a017bffe40c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.505-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.505-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 30d9f35c9d6774448731cce710c93ab6ae5fb3cd02a6e69afb218c0085f6ca11
MD5 299dd93a1b64a7cbc73e366bfc538590
BLAKE2b-256 25731fc5b160da14a2880ebeaa609b20db230c8034b0b5d90fb0f4b456a6b565

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.505-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.505-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 153b7dc5b61b7b20217ea758cb0a0a9dcef27740ece9acc111c80c1707300033
MD5 5130c56efadc3dda9927bf57e4d1bd80
BLAKE2b-256 29c5791753666e46298c5537e13c93a05beb69b811b9d9aa7e6488318bfcd534

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.505-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.505-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 db5b2cfda645be66e0f4c89fbc9fd53cffa08a9ec3ed9e02bdb438cbd792a50e
MD5 5579483e2cab5f55574397842ef6e3a3
BLAKE2b-256 0908232052eadcd702736441a021a477532c76801f1b4061ef2ce3e21e45d2c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.505-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6034b7f203b3140b3d9ee4934c009ce438096bd09f9ac9242518b148f1f5b203
MD5 c28c1c610936992b9412832e694e2739
BLAKE2b-256 f94966edc1f974e1f79f361bb760d840586d06e915667349b15d2abb28bf1b6d

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