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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.560-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.560-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.560-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.560-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0de660dc377acebea3b07e905b7c1a788c7ca1d9eeebe9d1b133cd266cf97b22
MD5 d095e9b0cefe0246773357738a8c296e
BLAKE2b-256 5e2adde3ceac05916bbdb004e247319a9214b59dcc7849f41c62cce2abf4154a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.560-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.560-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 dd211207dbd02cc1968fcc94bfa95156b0cecb660fe4354d43abc8790e995ebf
MD5 3449da0843dcef1392917f4f5611f57e
BLAKE2b-256 7ba9b85d88c0f03793a8152a7ff41649365666f7a6c0f31dcdc5ac00320c405f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.560-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.560-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2d7ae82c53aebd2b1bf357eb05933dd9157f89c5472f1a97388e18775aea2949
MD5 9d879f7a39108c588cfd63455daf81ce
BLAKE2b-256 c47d2b822ad9c6a3a6c8a051f97357345c90c5ce3ef81ba37323002b473c9db9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.560-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f81526a0b2b22c4bd8b31adf8437fa16b0fa1b08ffa60c15302b90f2adf37201
MD5 f68c118569c4f53eea266224b6ce2053
BLAKE2b-256 60b061e7007fcbf857413dc56ba590d7a58bffb6d58525d7828954a8d5ea3805

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.560-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 261d7c432d9dfc49d9aeae385f90da9363f1e2d02af05c11edf664aff8242d51
MD5 5c81fc86f2689ade7da8df0a0683acb0
BLAKE2b-256 5026d44a7f3d3fa6e535f69d64c5beccda1a502eab9249887cac7b6442fde534

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.560-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.560-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 04a7daf012bee8cf903b563c1f57270bf92010c384e5d1715de0549adc4939db
MD5 a40600490dfbe5902630984d308b83d8
BLAKE2b-256 b44f2a3745f7ada216da287987601777fb89532adaab7ce635d524ec1240698a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.560-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.560-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5345e291fd75403f0cef8c2fc088058d5d7d22e308b7e3c1d5d34df6fe6a9868
MD5 da5ad09f8cd61e4fafd0ba9faf26d90a
BLAKE2b-256 b4c90424dfe01ea5a9cb8da611e5eea267346937a746cb8f06966b9357a30c88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.560-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f66fec166993ff484f266118d01f5f0bcf3742ea937cd887b6ea584ba8a280fb
MD5 714716f6459e05f01a7de20e9a1b5924
BLAKE2b-256 c328c7425a5eea0891be1edd17ac6ae15c3df44b305dee7573def52dcd961c60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.560-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 525af01d28d025699c7097dfce6c676b21a0012109a1e9a7025de0f22e755c57
MD5 e04b3b0b5777210e71266086643923ac
BLAKE2b-256 6db5e036ab5221004f430d67f39a56b68bea4d5c6d7d25e98925a23a6912c0bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.560-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.560-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e825d4323df73ea61466f2a9a7d58c49f23ba53e183a374868ae99c56818962b
MD5 8529913a82fcdbf85fbe9de39568b6e2
BLAKE2b-256 8c88acb160b8049a3d579a6432c963fd16797686a456e4ba4c8d8bb5480f72c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.560-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.560-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 99e4fe2708183965746ff0f2e1b8f7cb44f531bd5c91af7187503b8bbf1f6d61
MD5 04bfa20b310a252ca443f514a56c9dbd
BLAKE2b-256 a10a02b5788958afb8815c8bb8a3cf4c903845755834d488e334fef7c2508ef4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.560-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c2d1d85c35c731835094986fb5e7510009d3c41d2313d0fddb018d5c63bae1c
MD5 c0fcfabc7f2dd9ee143697f8c217e653
BLAKE2b-256 c55e69c801c220ff5e063c423efbd7be5a97f5bcb47a592352370edd252ad6fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.560-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.560-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c6a528aed4e29e8562cb3ba8f0d7331fe6e5d8ad41ad245d4932885f1b0ac9c6
MD5 bacff809898cb96f676070d8d428efc4
BLAKE2b-256 608f53edeed350ef0eb7af57ed3aed7860b373cd0cf9ef81ba3ec2f663a7e117

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.560-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.560-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f7d74cabce7c1e81b3aa4f267d6236640c06bec8b32b10cae61e32fc1c5ad82b
MD5 0857e3f3527a176449ab7bddf4305fe6
BLAKE2b-256 ad341d2d77b465fcbfd07faf869efc9c54287bef42b98844964b084264bd4570

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.560-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.560-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 181fbf68abd63b97937bbb48f511132f2add3098aaaa215919c95c56ffdec270
MD5 2762c8bb9c22961c93e4b30f135d0fca
BLAKE2b-256 f8845ef4f418cd1ffccb69b991f7bd782a47cd808705fc47f0f4906f0649f4c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.560-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37591151dc57c274473f5c2c75d48c8dd14f413d62656b12322797aaace15953
MD5 47b11ab9100009bfbc02a5f5625e3c0a
BLAKE2b-256 37bff9c079f4199eb260e42a365b6a17cda7acb102b7ff2d0199091459178873

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.560-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.560-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ede1e8013dc23ecf24a17e5ae474d6e58d18e54b22750f34b0ff4f690c47fab5
MD5 0af19890cf092da883a2c684bc45ea77
BLAKE2b-256 44dfa48f5043bbb20af93158182e77005ac3e4d064b3aaa117dafd769d66d944

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.560-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.560-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a738f84b8ca1cf0e817c304c13dfd908389d11e7b2fbd8f432647d9ffe5f16c0
MD5 ea64900901d38b8e9da26d821e35f1f2
BLAKE2b-256 dc49c5655e02a0f382dda3c3f5f5e2b388694204bb78dbd88975a8c83a99d4bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.560-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.560-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ad6cceae3aa97d7d4480311d37c7b26c8b437c83fa34acc7fca2be17d925c3af
MD5 426dff46826feb0c6f3b1f31c5cd5a43
BLAKE2b-256 d9b52d6ae06973c0253568255bfcf232ffad346d6ba4fccf0cf9075b6a6ecc61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.560-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8a8e86acfd19000e89649052d773bd1ddc31e3bcdf9792b92869a7f1088d395
MD5 665334b0526f141e88578c42477108c2
BLAKE2b-256 c974ebb63c18d9f346420fdd5bb3f8cec29650b1ded97120645dad7031a79fe1

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