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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.19-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.19-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.19-cp312-cp312-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.19-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.19-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.19-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.19-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.19-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.19-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.19-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.19-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.19-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.19-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.19-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.19-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.19-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.19-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.19-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.19-cp38-cp38-macosx_11_0_arm64.whl (114.7 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.19-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.19-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.12, 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.2.19-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d9f64c642dc629f6b38d34c5f805ff481da246700675dc1d3d2d20e85327b19e
MD5 e98a2e92a9b5e01c6e129eaff7449332
BLAKE2b-256 78568a4be8833bb90e83d5136515ee2d995f75c69939c87fdbff7c023bae5254

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.19-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.7 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.2.19-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6ed4598704a281c30d62c213cce07186aa2eec8bf8ee4bf785a96cd51b291919
MD5 0dd100096d5ba059442987ebbc32d247
BLAKE2b-256 7d6ae5825474bc7d02053d6766f36ce3e31c6eb6d888a9357c995c60805d566e

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.19-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.2.19-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d108b9919469332f09ddafc76a66bacf3b80c7e16dfeb8c174739d4a204a9799
MD5 7c33577ecff8d4a1cbdd41d952cdcb27
BLAKE2b-256 b2ff75e9f59bc0318b2ddff8c06522317ad1333512da2ecdcccc204ea4355b2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.19-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e611b0a37141e33706f5ef1268fe6e6bdd9b14d391bf6a0e9d05559848e1c857
MD5 fcd7b72dec13ca533be3de5bf5c878b5
BLAKE2b-256 286587a4db7e74b62ced1e39fda2f4856320b8938b8b0030295b648c65fbb6c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.19-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 kB
  • Tags: CPython 3.11, 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.2.19-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 680b4c03abc4c09f2b9db173a76908ae1b7c7994f41496b2e99f226c1eb82859
MD5 966447d550a3f291f3e6f15d9139caa9
BLAKE2b-256 831f82b384ec944bd0b7e5482eeb852c22f8b3bf0e1cc2ac82d6f9dc78b4b366

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.19-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.19-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 57a29138332b1a0f02146007e351c5e08986c15c7b090502a754b4d879cd07a8
MD5 c2f0cdb8cd287ed898416a2f88802961
BLAKE2b-256 c33095140310195129e9ff86cd00570c4a9245f6c125879ddcc54d8820ea33bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.19-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.2.19-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c1b4cd96d76143f6aac00a4f3e002c4b04a5c76abdd9935d20f013bb2931052f
MD5 722e89e69377622215594211d11cfe8a
BLAKE2b-256 aa11dde590082cf2c57423df0ed684e50b3895294203f2f5f557b81f2ff6807d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.19-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4ad20b4bfed24d8136fdfc1c4b52ba7697ee40116af3c374b1d275716d97dfd
MD5 6b10ea3a1818e3437188bfe399931257
BLAKE2b-256 bc100b01d4f805805dcbb2f9866fa1db925e685522379d81514ed9be9ce1dda7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.19-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.10, 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.2.19-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7863010dd5dfb5ac3c940da72812243547d1d7475ef40ddf06a5664cda95b51f
MD5 2d27b8ed1aa4e420f3b70884b3082a28
BLAKE2b-256 1bba1657ef7446d93a173fd9abb6e957c352ae86189e60e4e1005caab40e65cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.19-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.19-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7bb0563b9e6ed9f168ba020296ec5ae0c8de18b3d6522b5bb5a7bed95de4418b
MD5 448205a02579fe7965d0bb65a54aaea9
BLAKE2b-256 5a5fd3a253eb8b054626164e799ee937dd74927e965dc891daa5a7fd1c679023

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.19-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.2.19-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 567952dd9cb5f53bede63fd2901e1521dcbf998ae5b0f9354d743fe20abd0d77
MD5 8191ddba96710bb374b6d1bf4668e998
BLAKE2b-256 1d740ff2ecb718b44b1ff6b75642926e0d391ca928c2123120be753c5bf78087

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.19-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbcd6759abb676aabc8f4a966d99ae22087e7009eb7f4710a6d6f9a1f33be844
MD5 e8f71e1d2f0f0c2df46d73f59313729a
BLAKE2b-256 cf1ebd94e29934deb7e5954d7873fafbf2b36f2960c84a79b722d9609e4e5bb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.19-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.19-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f4ce5bb474a8693959bdfc90aca9e9d180733fc4cdfeb6b46099a380ae8afc15
MD5 48c50d76e52a5867de876124e68057cd
BLAKE2b-256 aca019ccc6a3856b657db531e5783dafcea54140f0458adb7d616789f3a74854

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.19-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.19-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7b60208fa332b155c03869f14ed16906760ea7784b6f350716e0f85af3ea364b
MD5 186223032d11710393ea55ec89250852
BLAKE2b-256 d2e7b7eede347daa190f30976f24b2efa9a1113339d3a0329bb97ced3ef59285

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.19-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.2.19-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd5b640d73212872e627931ec231c382a2a217396d3ca3c2346a766a109c01fa
MD5 755f89e897b0041e7cee919a939a96aa
BLAKE2b-256 5b99898c0d5ac470f1dea37794ff96508e913c62c1bee17548c35f7c90f75af7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.19-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00e178b5012f798cc4bb3cf4fc7dfaa6dc5cf6b06a8cddec616661d9a127ed6b
MD5 73a7c45fafd6688096f8471ea8a043ac
BLAKE2b-256 54a453c582ec47ec576f62f95e3695c396bf1038d8a28e21ed171b17565c7c12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.19-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.19-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 24ee5a0e4cc4a4e904087fe574402f717acc87304d3d61bfd3d42e02d7879d20
MD5 6448600b91bc3430e3c0644a723ac4cc
BLAKE2b-256 952b4eeffc22ca6573c9ff57c56ee8fcf46cdb57bce76d550ce4460d02474498

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.19-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.19-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6a05df044c22dd63393ac8ada8ae0ae077ea570174f5310551d24c7b16fdabf5
MD5 215cc2831f66c686a12586407d2a5593
BLAKE2b-256 e58da599737653b5708c425c7bfe971728610e019534c518aaeabc803b91800f

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.19-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.2.19-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 30467f8fc00271373386647ace484ab8614c638119e7a0234ff6b70bbba36563
MD5 7c78d3559d6da399e55e491498b05891
BLAKE2b-256 acef570d7233619f9babaad39cd78d74a280788166b0ccb3e87afa6cba16f7b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.19-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b813ac714d76f6d436ba1ad096c6520c0d7485360ca480d26f50cd7cbba4b34
MD5 2fd120b315900fc96bb82f8311ed7acf
BLAKE2b-256 56af642b402861dec785b6727feee2b58dda46955e061fcb3d0e5141339f1a55

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