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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.788-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.788-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.788-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.788-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3020a5279359b906197de36f48cdae77204681ef5c391daea41f19028833455b
MD5 0552acaad77797941614cad800646e81
BLAKE2b-256 e41f5368045ab1f594372e668f95ef492505d6ca0342b49a44e568bb57a4ae41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.788-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.788-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3d36e44e75b3136299b92e959f013bc2028efd9b19fdda1a372aa4d4d2dcc8eb
MD5 94bede2ad4a1a9aa99bc90fce82d3545
BLAKE2b-256 53eb39ada0f3a6db8fd512e01a6c407177dc9cf9bacc8ae55a5b9de3e3dbf227

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.788-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.788-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 29b9fe5a58d71bb9272e933a33ac0416d572530109202a0c9e3015c82ce3ca46
MD5 dca006fa4b3d1dbe73bac2689eecfe6b
BLAKE2b-256 f83e1b17c7364d4a96cbf4ed47f6526495f93fdab4a2122b4e9c05414ec8512f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.788-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d6b9308ff4499a1770576b63dcde15d053bf44a338ff06a2dd595641609adaf
MD5 f7955cdd260b7943862c2d42e67457d1
BLAKE2b-256 89d402c71eb8ee4d975000c2e89ae1d3917ab093dc43d35665ed36e758012da8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.788-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ec1404040aeb1182dab0b660a72cad9d67d68d884126c7f9cea6c833e7149140
MD5 967fcfa56ff2a6c9875c841db1cb1ff9
BLAKE2b-256 c2891d098eb3d757f35475b1fcf93b787c4e7d2fe0d55c5a5b7b4b1b0f510407

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.788-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.788-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4caad5fa2d78a03ea1ef73f80d953622e5dd702fbc3517dd26950e6d1d7b597a
MD5 05ecc3296ce6160622ad9bb0c2047642
BLAKE2b-256 b11a25edd668e83a6be722245442d9c82f7bd020083ed1166db003aebf535284

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.788-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.788-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2cb80da23b318c559278285f62788bd0cb5f748263f98772032c7921836a47aa
MD5 a770a98df0928e5e205df9ddefddad30
BLAKE2b-256 8f549a2650067f770c19d30c4bfe30449daaaebac792f8cd6dbd98da7274b647

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.788-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5a5a9b003cd421ae3f18eb28eb556a2ee1839e86618bcb58f0dc0d033221314
MD5 0d76bd170a81d9a4c41fc7530916c07b
BLAKE2b-256 60391ea0eb6b3bb7a4d5db2ef3235a74330723edf52849298b56714464aafc6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.788-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3c40ed740fadbc40a305338d44e93293d8fb08ad3a1113f14383d581e1cae6aa
MD5 09139668919585a3d8f834fb4a18c74c
BLAKE2b-256 09ebe44db7cec78ab589262db93aa0291cb664a365f030ca5acbaa717fd1deea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.788-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.788-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0ce0e8af554a3ed93856fb6421b05b70976256fefd550fca15c88eec3b4a419e
MD5 5470d719fa78a256db805d198b31e220
BLAKE2b-256 4cf7515fae334d006b6cadab080ae0a8bee732423d33eac3fa6f09fc58f8ef86

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.788-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.788-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2888e7927bef3235c032de405c781d6e35c63c063ea98bd6c90279d9cba97628
MD5 5af07b66596c07582c9c289cdb41f773
BLAKE2b-256 ea776204c4fa2278bc32c77e329a3b16e40d03a43281331cffc520668f1da66b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.788-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f036922cb6ecb11100fa46611fa77608677c38a6c21298f643d28b4bfdb0776c
MD5 90f4fe8ce0e9e2ab5ab797586d83e5ce
BLAKE2b-256 6991a915c2a2e9cf481b9517bd13c1c1cc3f000d7b8b6915bc3863e225b30f19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.788-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.788-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3911f5daca675051b6e4d5e378b98052acfda4905005ba47949fed84162e0fae
MD5 afcac82842d6bc25f6e252f595cfd85d
BLAKE2b-256 79baeea95081e15c1366a8a81bbbe85771af0be25507abd4a214d4db3c192919

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.788-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.788-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d2d08957b2ee6f13b5a71b08dde096b5ab30f008c93ace26e62bad675673bea3
MD5 347cba4127030b1c44cc64d1fe77229f
BLAKE2b-256 73d111bfc88f5f25134103ffd2090fc5c1df69dd354d6fbc1caf801b4f7be828

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.788-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.788-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f5aae2544b65ae851a747b91976be366e4994186ef120b2c085404e499c1b8b
MD5 1d0568f70ee89c250dfd134ed1541b06
BLAKE2b-256 915c2f3a8b543e1bf0c490fbcbf642f758332bb4fbd52045b843b62fa7d2e8a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.788-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 40d3aa5678e0714f203daa89c10eb10c17940a7e8b9d076bbd8593d665e96c99
MD5 ba10f3102bc0d96c802c2edeaceaaff3
BLAKE2b-256 47745ba656bb99993b61bf0ca7041b1a00e35882e60dc07fc4de50b63b2945f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.788-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.788-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1be5424b9dae99fd5476e32952ae26f48a2944b949b3d16632ea83e295d06034
MD5 97e87727990d09dc79e183f89f662b83
BLAKE2b-256 500b1e3cf5b02faa033c14381a9b0f0b17fa3fb192fea1c2fc9049d22302898f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.788-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.788-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c19019398fb7916e57721fa25ab6beec99e09e89c412bdffda161179a57774a0
MD5 15c355defec772156a46e49736b61d3b
BLAKE2b-256 023d0867a0204b0ab96e1460efcc4888392da4e9d5982e83c8cc66fe2b15a3c0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.788-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.788-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 859ab652d8f38bfeda0d5c1cb11804ddb442cca924908b5ba18d441436040ada
MD5 de8c4fa2380664dcd144c9c827f5258f
BLAKE2b-256 f98a9de3e4376911e1e3ddcb1bcc6e26d9f51ac9509fecaf66d9a645d0f8c7cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.788-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07a5b6d4d73cacc4773b112815723fa7c2a5a4c02c2af2d757d6444304d949d6
MD5 157eb96e4392b9e5d431ddbf55c22c0f
BLAKE2b-256 350872ab6cab52d543a34510bc7bf074713ec645024b1e9f37cea2130c3de741

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