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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.155-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.155-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.155-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.155-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7700beae168de813799b84dc1af9a29438e1b12c23b7a523155f6e9526187cdb
MD5 76d135efca7fae5ee64a57a385a75e25
BLAKE2b-256 be23d59182974696ed720e035dafec88b9bf08d353c910c4d72b5eabc19fc08d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.155-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.155-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6ff9ca2fddcaceda7ba60c4e032a970cd6e10690f8deac7e4b5fb48cbc693b5b
MD5 afbf050b73f317104bfb09ab6ba52140
BLAKE2b-256 65eadf0b5f78edd1faad81b3d4fbbe26fdac0b6a6bb0b0e7f4714a7ab35fe1d8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.155-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.155-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 97e7850665cbfb4cc3987a1d24b9785bfa0a4ee903a018324bbcde0a8fa3cda0
MD5 24e68942aa5e727fca72ba102ab2f0bf
BLAKE2b-256 18cffcaf1d63a40e41279374f7e28b968c4fd0bf3048bf85557988382f950794

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.155-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8397239e220408dae0d8d7bb3664f02847c7e9ea2bde30db2c2bc5739458301f
MD5 e1bc1924101a6d2477202c66e3ab64fd
BLAKE2b-256 60568dde7dcd98788572b1ba1734170c922ff77768c01b1823337226939d5d9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.155-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d62d8dc53a52824d29c8c2e0e53f254def3ce87b37413c81193f3ee470a8e06a
MD5 91171d38d795fb53854ee1460dee09d7
BLAKE2b-256 bdabe5db1a9d17d11918f5e3715c43784b32c11fce0ea7ce49f0f7baf619ae76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.155-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.155-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 49bcd3947c2cd5f94d9e88e27d86985af25245ba92f3c5cff875d65a19fcca62
MD5 a3a476bbf7c978b127ace1718f14f1d7
BLAKE2b-256 ef87aa0d37acb510bc4e6d739142d13c83f5eeabe140bc514db2a989fd46afdf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.155-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.155-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ffebb902f56f36a8cfdd41df6c0dc4cdb19b962038d3595c572f92f1b4156936
MD5 12c319f2d6edb184bca46644671bea9d
BLAKE2b-256 7670d997c2968d93bae61cfd3cfc56a142c56599fc013b05e52e4aac3d703822

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.155-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 231cd17a06dbdab6e827b0c5bdf54ee066d547c3c1dc2cfc46f731f945a6cc7f
MD5 7b4596745af417b180cb7621a6042820
BLAKE2b-256 057c51836f000e7369ea31bf0bd3ca3dcf987a2b317244bd9fc4fdda8da04b18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.155-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 02228dae049a8b89cd1d66b1f0415db01d2a6ad78fbbd84267ca02f7e366d0e2
MD5 7fd92fc6083df283d7ec15ed1e89f87b
BLAKE2b-256 8a30a166e7683845c930bbb3633905742f20b3445c7ad36c07153ab7d0918dec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.155-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.155-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fd60700442f963d847af5db5cdc329fd9ab4adadc8d9dd1fe7d0e2fe8c0bd134
MD5 86187df6b269a22b0d1193f87d798727
BLAKE2b-256 11c05a092bbe2d413a0fe798af4f38bc589f09f8b4d849e48f514b87e6b58524

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.155-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.155-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 890e3ec1512d7712ac389b9477f7ca03d0a43cc7b0f2ff3dd265286eeced8159
MD5 9c1eabc7c3dec2fcbed657db90b616d4
BLAKE2b-256 2de505737263ccfc0f200b248ef9d635dcef74bad8ef5ff9c2092706b3e36dad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.155-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa019d74366ecd64465313e9e73601810a3f50f8aae42e5ada74d1895ed83689
MD5 12b31d51ccd8aa2e8457e0c49945e2c3
BLAKE2b-256 d15edbb5cc06e3b335990b9a65d0efa55988f1edae5e74d7a3297b9a1bad8edd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.155-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.155-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b08bbf6b7c0009e47a03c54ef2f3d6205ea645404c49daf099d1391a79857c11
MD5 2400270a1a478837108fca0c984a6824
BLAKE2b-256 89f67c552d762d99f3b36f308bb4c7749a763f971308fafd9a38ef0d81415db5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.155-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.155-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 da607d5ca6b5c16fe9150096a8fb2f2d5d37b9fcc04e2fd27e5e16294b352a9e
MD5 e64fe95ffe4558bf3cdfd698d30ec9e0
BLAKE2b-256 e80b723882782e37ed52aef43cd9a48c5adf68e965ccfd94e2bf0e57e9b58e74

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.155-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.155-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f323c473ca179ac6d0c6152f2ba57bdf603b8ce4cd0329e9d4a5dbe1aae28072
MD5 1c456bdf1cc70ce97cd067cffa402f64
BLAKE2b-256 86f810ff7afa8702b80d72a52c84c9d0cd83bb421a85f6f69b78b8ae124b3a75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.155-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 250c15f1022a4fe21aa4937645a5fc263bc458f0be202fccc511e7590f6937a9
MD5 34a27d2fae4c322b3578a91d88b9f186
BLAKE2b-256 f3e74b10384a886f5cabbf27c07c787951133243a833320e09a50461b12aa3b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.155-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.155-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 427876570b8871dedc19926bc5a186b4be7b091031a2789c551a694b34d82f63
MD5 43aa5223d545485e21693d0473752d3e
BLAKE2b-256 32f7f88c438fa1fb338ca3e3f5a995cfb03328cd4e9abeb9a383c6ad62cd6422

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.155-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.155-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ce557729af63ca325b924487df49a4de80bddc86f0ea99d1884db7daa5b2f4fe
MD5 5f7e526c3cc686b404991088a6980549
BLAKE2b-256 177a3776d15030a587a33224ef76b3cc7e5b76ac5f7b0e2810b788796e6e1c68

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.155-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.155-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f72cc621717fb72b1af226016a02ce5711fd5a98eff0702af00f3f3e4af35a1e
MD5 f749f2be49fc04d31bf2eefa77019a13
BLAKE2b-256 a9d87c85682c198ddd3e31be0f38cdd213091b805fbbe13bbdc94acfa5cb6e36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.155-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e9b00321f39162f762b7304302494b126e1f6366e6802e143e3f19045be6a05
MD5 a8fc918ea0f3a8b48a8547c5b23d71eb
BLAKE2b-256 191642a263960b716020309a7bca06160e4b40e367fa85a06b138416b3e14ba2

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