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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.591-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.591-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.591-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.591-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a30fdb95112d366fbb57a16798017630fd15c93ec96188491a46e909a2b3876b
MD5 7f2646cd2fc7fde7b6094d53abf699c9
BLAKE2b-256 a0341281b72ddfb9ae0156a7a5f2405bbd1a83eb72ca8683b7fd46e3294ba071

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.591-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.591-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9dee7faf46b58c9f2d25c2a0e4e65b26cfddc8da939a7221740d08cc41e269ba
MD5 fe260ff9291184978b656a2c08da11a3
BLAKE2b-256 bd3ea4254a107291ca0b7447f33649ced0262a5d2fa79985c94d1bc8f69efeba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.591-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.591-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a3a2435b1f4b0d53439a9fe8c8ff76afc759809da275baa3e82f071d883de58
MD5 ad99bf7a41efdc74aa9420dce673202f
BLAKE2b-256 4f93aebabfeb020363f5f23fba324cba4a861218c2d5bee75826e8e200afc363

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.591-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 014792750fbb08c417f4d57aa0418dc960ce79277b933e0891dc9a4b9efa662d
MD5 3d18bad87f7ff4dcf64bf936d4215e3a
BLAKE2b-256 815cc87cc5282f7290553cc3e0d390309d25c24ab848ce3dcdd614a16ab03b11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.591-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4bb11303c7dc352ff1fb6e47c1d9dc3e9782575388f52bbe9fe2f905e0b3c8f4
MD5 71468d9c08b57d6aa5cbff85af11b64c
BLAKE2b-256 16fe4146f79ede690b552259a253c0c506e94d956e64d8ee96d8b1610bb248c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.591-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.591-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4f6e227cd0df815a26d2599c31545e95802d6f1fcb3ee6791023be35c23ba29b
MD5 e6a2e2662dacc26b5382ae6e8d5d7cdb
BLAKE2b-256 e4fa8795906ad17b3136296c14fc2a4b78a6399237f2e9ed4ac0e45fc0b3d6ad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.591-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.591-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8396d0e66d4b491a48ed86e1aac37d8905ac070e7a10c1d8013cae61e419f7b3
MD5 8437f3074d248ef9afbc71556b2fcd05
BLAKE2b-256 ba8fb844d3139a8c2d782bf862dee723d6f7254add00d78256e18cec83c634fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.591-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8977890b11ec375b61829bf05ca7360320321bdd77e80aae5089ba4d37ac4ba2
MD5 fd2df4845dbfa9c5cc90eb25badcdbf9
BLAKE2b-256 670e9a56e709b1984d95a9a94f1dcc9b002dd19d93a74d44ecdde5c6a3c6709d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.591-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dfb46699baf0860db3bd52f122898e47eaa8fefc4e8a0d310a140bd8316f937d
MD5 4b1096a79d7f471c7bcaa0888e561b32
BLAKE2b-256 1f639f51262f55891f46112b563150c6e7a44bc7f1b27bb794189b0bd3802c2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.591-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.591-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a8374b8816c0042160d6625b0b709fc58dd75eb95a029bc6457ec7ec283b1d8f
MD5 442b849e4d5267b6399371c2bb10fd61
BLAKE2b-256 7b14412a5e909fc59de592bafef6d3d246042b4c4a006c443bc5bd0f4db142bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.591-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.591-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0093b64fa9b6c6bf5fc769a641c594c73b415f28fbf065918e157040e78bbe45
MD5 a7ff81c3ac6ddf553541543afeafa95d
BLAKE2b-256 05cd5429c3b04b8950332c8ddd0d0fcbfc8651a50c2c2f6a28674a74a6bb7d08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.591-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7b6dc1fc79f66809416c845c33b08445768aa40ca47e063807929692d970847
MD5 b09b7e8b830c6c4fe834efacee112588
BLAKE2b-256 42f89df33c895575e228d6c244ed037115847dea0c196b8b50a4766b87d40402

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.591-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.591-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 66d502849e8262a4915602308a04af1f1d8e19a81556c292e8424019c23d7793
MD5 350d222ddbc52a5cb80954f229b3b198
BLAKE2b-256 cce1a5e5668afb9defb73b1af0972f0fbc6de4e33ac86c299c2cbfefab1825a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.591-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.591-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4135fc9def9e0a4422946cc9a803f556b2b44e9c88a425150770acf5d7aecf4f
MD5 63b72b951bd391891ff29eaa9ff93dbc
BLAKE2b-256 ad4be858055c2e8d3b1609155e785f4678c5c81f1f155ad82b500c84f5dcd8fb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.591-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.591-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2f6e725dbbb439fda78cee7c1b1a79f3f076d6297791f23452dd810ea932f92e
MD5 409a15fefacfbe7f92cbcaa4b45dc430
BLAKE2b-256 d4dc8c888a5dd6f0ec944eb06a6ecfe48252954f6a7d7ad23c60b9631c443cd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.591-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0709e1b93cf6a2b95205c84a24af1e9011e59d2d82faa5ec59dae3d94613154d
MD5 0c5dbfce4bc0da4c7483d16a9840c980
BLAKE2b-256 4acd29dcd1559ca3b7575c0404482f92016f90c3ffaf8efe663d60b184af1ea0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.591-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.591-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7eacb3588f2832f8dde794ccaec33d8a48a603c299d9296c3469e587416e7c31
MD5 4f08936d37a057f6168202cc768952b4
BLAKE2b-256 9e0d39f01d41c82141ff9507b7b48a4019101ebfe6eb09d29c673f2bd30e583b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.591-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.591-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3331850878ca0ee0e9c3f7f1d58a1f62be7c9ac41b0851565d05aa9876e43f08
MD5 02bfe5861003befaea0a50096ef80805
BLAKE2b-256 3f4d859e9e25f420abb5df73d70bb08384fc1bc2497aa0dfdaf2990843d51c4a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.591-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.591-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9a4f44bf08ad2f3826152066fb7e7eaac29b76b30406bdf6e49d690391da3583
MD5 3b453269e4a685e3916fcb1ab95d5833
BLAKE2b-256 7ecd693ba5eeaa6807cc2efe2a3882c6dc12c108f81c8b83b41b2422cd488b3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.591-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 06360f4945db38c46554c79919bedf05af1d4ac77aaab230c83102fa6d12a021
MD5 f4687514336b1c8d5612d5ff252798c9
BLAKE2b-256 66f23f7557f2f145b2b824c2f01826d1b8cb0c51c04f2def1ef947386a0f011f

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