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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.349-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.349-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.349-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.349-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b36907f7999abfd9c3efefe21c9e583d95c751469fabeb415f78d29f6bb80072
MD5 50fd54a9905fbac8d76430577730c89d
BLAKE2b-256 1036459b4c4278564e7e5c95d78d13b09ed72aafa73fabfc9e9beb353248f30b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.349-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.349-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a0411f9855b84ddf478828d9f5da981af38dbcff59266ee070a1bdddae6a40aa
MD5 5550790b4fbcf0ccd9166c9b8d486eb8
BLAKE2b-256 86c1b44dbd2d47b5e742ac88016c5bcd5961b48480705f702741cc746809b8e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.349-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.349-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 34c17677e4654922987d3d75bf5b7bf311ae54e8263072f9d63142dde59f50b2
MD5 584217592f3478aa0aa971ca51d2731e
BLAKE2b-256 840347c0968684b8f6951053f68d9e9e3af6263df46db694fb017f1a56d3e16f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.349-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1390553551a0cc1a77feac3a6e7205237015db38c980a3e134de9aa4ff57c2d2
MD5 847fd807ef2d79c6d2d46f05868acffa
BLAKE2b-256 06c9c86b7528ac12a3e8965d9faf28690c0e54913a63c52a8328c647660c1e5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.349-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 51c105ef4211d245e9ecee961875f02a7775ad1fd909a865c13174079a7dcfab
MD5 b8b50ecd7c2038f29e52d9e567f6b4d0
BLAKE2b-256 7c0da9f2a8dedff1406f82fa7f57ca70c67be1282619c47c78350617ac4dcc68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.349-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.349-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3ff82339df0984ab3116d9d988c26d2fbe3d8914c8a6846b6d8494d86ab745e0
MD5 5ed49b71106266f097031b8a96092998
BLAKE2b-256 5d1c7b6f7605b72b94a6e11398f073ee0d537b734560eaadb8e414c63ec0de2e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.349-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.349-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a9446c4e71314a297debdb7ccb3c7a8e9cdda35f5e0b0b6fd20ea3c54b94aca1
MD5 1b4caf2ebbd264822b5a09af8f3e936d
BLAKE2b-256 049bd4c5f067930340d857db370b57f38107b98b072a31849ad407c5c5112a32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.349-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b149daff457648fdc2385eddde7384ffaf6713873c44289d6caaa70afce23344
MD5 7b9414f4321122ff67949c254654c1c4
BLAKE2b-256 454b9c719e3aea3802c40f38952b9da301959ae8d3ff2d815d0f96b8953a3d12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.349-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 816e44474cec68ed8208a2b68782d3101890b37ba8ec04f4d4efd7bb6a293066
MD5 7ecd6faee1c8146eb0c8d3a694381ea7
BLAKE2b-256 04c9ea9f9f0490bb7248b4c91d1f8f3db717f2731d60d2d088c573dd71c6b970

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.349-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.349-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8bce5122ff9e975a512465a64d4aa84154e375a5c92082bb6336f7c41cd27ca7
MD5 fb72f5a1a1584ce98e5aab3fdd874155
BLAKE2b-256 af184ef5f247d64ab7441e3aabc4e2bd94c495be8c0dda5c22b4cdad9bb799eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.349-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.349-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 58941d3efaa5db01944c1c442c889294c3d78f5ed9345bb0552d7313f297d4bf
MD5 43cc11b197f153db92d76313b1eefc67
BLAKE2b-256 0210a64feda7540b271cf727001bc23100c0bbc52ad3a29bd62dc6814c8fe6b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.349-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 817e4b060affd5019fdc9b7d6905464b4b655974f58219eaa5aebc6066a62e5e
MD5 19bf5028d24d402b42649e1bf63b21f5
BLAKE2b-256 fd3b7acb0006e8bb3024a64f414407bce915495b3c215c4b96f3e3cbfbf19962

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.349-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.349-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8368deccefa64e0ee84f60846d4198f83074d026c322f5ba2a547fbdf081d61f
MD5 31e2ff005ea6c506abfb06c1df4876da
BLAKE2b-256 e0d2001a07f1b6404fcaea8ffae1f5d9d42257736deee683d12d41d1da2e4a5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.349-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.349-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2204fd62be1cb8bdcbc0c5a72a62b62e91635a938440e527b51b3388f6fa52aa
MD5 47ddfedaa64a73089882301adbefa8e6
BLAKE2b-256 53f4f198503675b77d1486b41aa9538ea8e664c4184e4c50096b81ae49c41518

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.349-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.349-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 22f783628ba972de18c0a94fb8e212c50adfa46a6133f46b40cc15b06720934e
MD5 bb07079628b59d2d4da37cdd1c62fd9a
BLAKE2b-256 4e4c45751beeaac806602a9375641a06f7ee1b7b485e2b2ab1fb1876b9345b2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.349-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4bac671e9882def230897dbe20e48648b663aaa68103a6bf7593c09a7156c218
MD5 7ca492f6d35f7378005aa45ffb88281e
BLAKE2b-256 96769a2eed36bfdc02557dd24583eec9996618b9b5a26fcf71fa4238379528ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.349-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.349-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 86dccb3877171b826e577cb3b7983e452178e7ff2e436dd25ece1c7c8637579e
MD5 6db39e233bbf9b6e91b496cbf4b39437
BLAKE2b-256 c4cae61074515a58a738665c16d8e86ab6e955e451528f37b45a5985dda3209b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.349-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.349-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1523a332d27258d27981d51e8b2ab539c79242fc15749d2313587270c7002c73
MD5 76ed3bfd19aeb5e173ab9a7527a80d70
BLAKE2b-256 35d5505355da76475fc2dcabd640b52f7fcd4f5f96e7d458c4212a2251a2b4d7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.349-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.349-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d2ec68270432cfa338470a691d57da7e48f1c4200db2f942b9ca58e4cd6199b8
MD5 f433d14049e27c656be2c9a259b379dd
BLAKE2b-256 38515371ee5bfae88519ad4d80faa815e63b706ea7a1750df9b10b3a5a4cf952

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.349-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02150012deb97f5939420fe445ec2b1fcaaaf8e0d34c6067dec1123a1c4fa6d2
MD5 3aa9d4734e26cabd516e293d8ec8f6fc
BLAKE2b-256 f2b9316321a082ae9b3279fccc140c2227d7b94b65b1365017cf8040a2be39ec

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