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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.105-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.105-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.105-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.105-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 703d24b88c8eb1eb8a12433c3c799c53cc65d7eda2df6bc3b35325a4d7106776
MD5 3c074db92828c81545121d4b37b5ebaa
BLAKE2b-256 5cda022e8ff9193b45d3f6b8eebe7ac8054c13fbfdeba2bd437ecd75d5eca6a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.105-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.105-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fa3ced9f2e840d85f5a109bcf0383af3f3db128daa37344cf4b6ec4dc194510a
MD5 4ced56a58099420ded6c8d401cd8aa3c
BLAKE2b-256 c5880fb70b4b9f147675da4b33ec84bc9f23ceabcee2f336fc1d7710eca70b1b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.105-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.105-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 480417d0ca071c0ea5c3acae8d7cd18911aab67e1a88454e89ac79bf59296491
MD5 1fbd6c57173adc9854d7c374c1d69f7a
BLAKE2b-256 7871867cc1a1fe2b38b37d18e87cb5938df2abcf2c2a62700d737c8a0c3ce03c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.105-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f754328c6ce0ca163d52602e07e73c75f939b7c57a4546fa3db69aa922d4cc5f
MD5 42a7c3ea261ddee15a124ffe233cc81a
BLAKE2b-256 d85df8f7b2cb756b32ff2a2e11948cc35dd30a79ff5d5a0f58acb6771fd213ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.105-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5d170dbc8d616cb4fd85365148f94a1beedc483bae2be75f63b8f5ab05aba8b0
MD5 04aae79cb3ee5f8d5add27c1067fce2f
BLAKE2b-256 bf849f5057a01a43511f0d141d1303f00c8bfd4e5a8af1ee1af7c3264b3256cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.105-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.105-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ee72286cd82d72bb6d82f58bdd2543d5e40fd46372494eaf0d22f37f71ee01c4
MD5 cd0d762876881f8aaf9afa0998e21b79
BLAKE2b-256 531594a35cd4b1bba08cfd1b658a909312f601a136f703784c1d0f096a5081f9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.105-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.105-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f0976a3c831463981f1b568124ed6a06a12ca2372843795ae8068f5d46c3f3b
MD5 01a06b97c160595813aecda9b6d2e9f2
BLAKE2b-256 0247a45d7a110d3f0ccdbe3505b58ff4356fa9d0d57f22c9d07062b08d3d5c28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.105-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16e7e2ffb8e8c05da3adf177bf263e03f5d96e77950e2a852080cdb7b63a3e0b
MD5 2eb40f12c8517d3e9754d4d802a68e8d
BLAKE2b-256 f3952a5b867072d5301b0bc7b40556cecdcdbd55fda060f90b07eda0a2c18f0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.105-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9025b5bb4a61a8e7265d6c960d7f6251a53a12ef4c8677e912954bf3000c694b
MD5 8cb206bfd4096cea010905e69ce6d58c
BLAKE2b-256 de81e38975a29b5524770049975ff9d713756c36f04f2202728687dfaf03d267

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.105-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.105-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d3418abad63b8364b2d7746a0b826406c19f41b4b5fe2e6b06e1a6f9d6fc2b95
MD5 095846877bc68bfc70ba31bec063c109
BLAKE2b-256 5c6fb1567599e996a05be48944e2929c26094f58204ddd44e29e61953a512493

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.105-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.105-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 77fc222c84708ce63569485ad9a86d3866546d4f44dc9a8ae23e0bfc3af27bc5
MD5 7a647c8b5831e5d5d1e8ad9e1f403e8f
BLAKE2b-256 dfe01685517e28308f4ceac525d5eec99aa32c4d12162878f7a2cdd900599b58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.105-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 013b69aefbb0037969159d2a41055f3244e104d864216de0bb6ec708abd18abe
MD5 8f7c82d38b1df274f1af55e9db7ffc63
BLAKE2b-256 fc742a5d70742fc2278a6cfcf7de5d7f6f6ba47cb252270e692b9fb9869931ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.105-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.105-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2f312bdfaa1597735b88cd285043b206c4186e262fefeb5e22aef7b73fae0b4d
MD5 74d016008f3c5ea34eaf832f405ba92e
BLAKE2b-256 7d6c0e293500e2713393a34befd534562040c652e2ffcf0bbd91d2e4e11544c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.105-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.105-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 854ec79a9023d323735ff9413deca83c5b0c033daabd4c47cd48a748003384ba
MD5 2c8af1d42914327629b89302ed9fc295
BLAKE2b-256 3cfd9ea910d2fd4358c9d34214cfc18f1ac2bb0930ec4d49ea50e9ed644db25b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.105-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.105-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8305867849ad32b62fdc4e3e0b6ce8b5cbe57f4ee3d260d30eb7914000f18e8e
MD5 84a6579a4a179991987eb8cad8c4be51
BLAKE2b-256 412ef38aede6e04c2b2b48b1c7420d99b1ff86f87d23d4d20e81c06c81e1412f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.105-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ae5736bf45dc20926c199f5726213cb271582754a695952ed8f0077fbf7f859
MD5 a9a46296292a20fef68d043816df6941
BLAKE2b-256 4a1a5b8343f2e150db8bf11d50b12288208d47305957fb2387c4adcf6f1af9c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.105-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.105-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 24edc3033e9c784a21d89941bab6a07230e403aa6bb516718c0cdd14489a12d5
MD5 b8b57fa58e6225ec5f7418b0f59fa017
BLAKE2b-256 f0bca1f0f4247b304bb4305ecad5362fd269653ee41f0ab4156eba4dad78514d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.105-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.105-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0f2c4aab879ce7cc659973989ebd9b75efe0e95e476ccbeb4f5446601261b65e
MD5 1c10b029829e20996998d76588d8a947
BLAKE2b-256 28a960993ef2f21b9dc62243b401d335799c824c7d4d8c7dce83ae8644d46ee7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.105-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.105-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 23a8c75e751b5cc37e2f35ce26cc8deb84f302d3ddc5a80a2879afb5be96c382
MD5 5552554b4b94a1398b31044e57647cd4
BLAKE2b-256 eda016f0c6cb6060e9dd109ab8004782ff087f3b5f81504101700ccce0316495

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.105-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2723359e63d8213aeb94ed93fff9a5126161a55ae124905944dfddd730ae305
MD5 155bb72bb8bf25e22570126a79d29b81
BLAKE2b-256 76c641b98fc1144713dba460900b4f7c714dbaac3c8b8da54f8a3d9b0c082949

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