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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.267-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.267-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.267-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.267-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 95033a13d4fbd99c749f4d1f3c5a3b392fd64fa48592b00890aced35e6047f30
MD5 b942d5a7843bac904a91b3f2631bb2c7
BLAKE2b-256 a938b2e3f923ab139bc32f3db0406fe4de7dd0ad56fbb9b4e7f84bb9988c6c8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.267-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.267-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 139493706f22019699530629780d3581c169d504568529de395c725958f9f512
MD5 d02ba51880de3c5c4169e30ff7b87832
BLAKE2b-256 ff24be43bba5b0d6e1986b7861227b05f5f80205821e75b8c3f8d9e6c5db20e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.267-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.267-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f8dc5f241aaad211fb91e17180f743d7fbdf297000e88ca8004425cee4fd4480
MD5 4014a40f4ed8e7503dd3735a5ccabc99
BLAKE2b-256 37d2c34cabe81fb9db6918113192c504ead6861d32e226b5d6902be946331b26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.267-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 416b5ac11ec93bbe2e790ab9974a2ea1b5bf763db9b34b33a04bc135ec6b22d4
MD5 2d758f10d17caf5631cfe8a7f4603930
BLAKE2b-256 24b33db678bc06b5ea2133b46fd43e732f93a395cde8cc8a430ecd5f46b4b902

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.267-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ab7cd7410f311ba576c0849ffbe948e49d0ebb4f4c3bae7759193e2018b8853e
MD5 4e6ddadc926a35fe1b550a7332667ce6
BLAKE2b-256 8d746d3cbb6b362046ce76a65d428c0bb04cfcac339e9d06051ddfd531543d19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.267-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.267-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a7088f3654279bce291a8e4d342ce7be5ea77d391572d3e98b550efd32d88aef
MD5 ee3c25baeb49ef1211ad1548dfa96070
BLAKE2b-256 10de3e8c08e37b90f54c74e270467acb58dc686ad9fb72cc556912f2e870520d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.267-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.267-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4026a4231daf8b8903267ae2feb760a5a4399894a658807e6ebf211e86d6725e
MD5 d018a41d4c5d73d3754b96027b0e2495
BLAKE2b-256 6339e5c53b8f567238dc3b934e286e89f22ef1ac570f1ad593adc423dad264f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.267-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b0873e3594b268e074e81dc0c0d454391c7a4a1aa063e71c8bed09eaceb4768
MD5 413545613b6ee566a72486bca2c3d725
BLAKE2b-256 d27001f5aacbddfb40c5d635c6d9a94c639802df0a5028f253a6131d170ef767

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.267-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ed2c6d864d03690c6524a1923889f3391d72ce5e3d02aca112b04a1e617b6916
MD5 348ac6f400cfc288236c44d3a8df5240
BLAKE2b-256 2482579deae5bb99044ba496cd53bfdb50185d7f1d1d2d8a0cc225974946fab7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.267-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.267-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5ba9ec077937526d8a65ccd80134396cbc050abc8b18d25bacd94c42d9273a7e
MD5 783b14af28479bf2b720ff52bc65e49b
BLAKE2b-256 6788fcd76777c8e937caef1603843bb71c5ec858087c054e8e1bcd71f8227c36

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.267-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.267-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d4d1939773dd61b0736ea4cd1b74c03affc5633e6b1a6b10a09287ff85939dfe
MD5 21f2d3552ec9511fd0b5778dcae1ce93
BLAKE2b-256 b40b30c27bccf29e238e3a2a414d84dbfacc49646a297c281e707e871e4b1789

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.267-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 801bf6e9fa532cc64549c6c9af5773695966c7cfa91e252275248e2e08f66d68
MD5 d7804a19181ab9fa428b7aa178687cb2
BLAKE2b-256 ee7e0708bd54e1f13c6a6076c29205d84f985302290761ab7bfaa591183cd71f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.267-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.267-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 12336d1230876f2c3dda05fb353dbf2f50ca4e60aef6c0ff3d83b0d1e3b5f1d9
MD5 9c19b1699e03c7adc1e61d5763a38a26
BLAKE2b-256 57df3c5cc5d9444d0af1ee3033aa90e7c0bc58aced153d9f707b5a6fcb24f545

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.267-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.267-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8673fc8bc616464e7c8762e1ecb66bddd4db303b3afecd6ec856b6ee92f6bb21
MD5 a82b5cbfa67ac2961a7128498744e361
BLAKE2b-256 29bac072060a4183fae1f6109c58afd8f2cf6b677bfc115b92ccdfb6950b4f6e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.267-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.267-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d9494ce4df1c6aef39cebfd8879148641f00fa88018796d8d1e645dd9d78b6a8
MD5 e07af7e43ccb04263799413e35324c8d
BLAKE2b-256 55edc06d1573616f58c5b0129ddbcdd6f61f720bf69037e9b1142343767cfb48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.267-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24f79fc45ff2409840ae4f24faa5056ef2e205a0a68fdfebf283e6417dcab015
MD5 b569a586a2d953ccd82e5077fa6038d1
BLAKE2b-256 9e2396885fa634076b97b6b4bd0107ad43c360dd22f07b1ba2e945a34bcda76e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.267-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.267-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aa8108e6d2ab0ef64ccac9cadaf318de5e7fbe42a8615a3d3e1cd5995af2f047
MD5 77833dd208b6e3a35a647a6002ebcaad
BLAKE2b-256 36f43bf4d7234fc7fa62857124d4044b77284c89183274a238fa4190960a06b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.267-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.267-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3fcf65768439791061f5db329475d1419b2dd82edd9fd524f6dcc176acdf8aa3
MD5 8c9779194adee29a4aa3aa8bf9558d73
BLAKE2b-256 5fef3a814bd4e8d29b342c477cd93cc565341289f8e9b3c84d75f8def09425ea

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.267-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.267-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 79ae8a9824e056301574274a4faaf05a667bf8bc1bf642bb9a4cb615340472a7
MD5 68e7569320158617cd0dc21554595c5d
BLAKE2b-256 1adf2b2fe885f61f7768cc0017f26071c56e1b137284b467932df9c2e20629f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.267-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d41fbe64120bbb4a685c340dcce684a1d24cbba73254e0d507d62a7dda09985
MD5 fba977b3263edc62b53d8dfd3bd12583
BLAKE2b-256 e33d463f9c52af4d1b2f8a23d146d3042145dafca4b6b49c04714f4fb9382f2e

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