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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.218-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.218-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.218-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.218-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6fa4fba808f4e12526e63c4a20e942ae158fe5815806845804508dcf7e522ee8
MD5 ec762e65a98de5e8047e9ad4c5c05244
BLAKE2b-256 2efa9d0eabfad2f5c12a18a7d74b7a42e4ac6385621935c38982c65a70e8ab6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.218-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.218-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 567a69c5667676cd6ec6517afaa31863c039728ba0eec61ed70bd59e4e4f4e82
MD5 5b841c6852ca387d6ca8d02484f8af52
BLAKE2b-256 48c28b0b1c0a5db1df27f467e3817872bda6f636ee2319d56c822d5a202fe944

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.218-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.218-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ce2144c1f92b7bbcabb243c7fb418f7e26112e848baa33ecf1c75dc4d679221c
MD5 af189beec9447973319a9bbdfd5bdd28
BLAKE2b-256 2790a8e046b7bcc77631bcc54377c5ba3751dd1e13b22b804b088f69a64ff746

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.218-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9e2fea1406034a025fa54f954c1f15834d3fa0c446dedad253db27800373a8d
MD5 6fcf63ced9c46b862d8677d1f2ac931b
BLAKE2b-256 f8726619a8561eb8da7ae1fe4933b9a489d0d6d4fd1da1249d26bb86311533e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.218-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d2f93b1cde197ad1ae80f9adce8b0f94f7e31625a51888643c884e231ba73f0c
MD5 97eaad752d56f13908103e43fd881f11
BLAKE2b-256 b176254664dd2383a30976d8254be322db8b5c4ffb92b56c699f0c8fa64f57fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.218-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.218-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a9471ff674055bd4616dce5b8aa901d4a7bba67c06109e3a4e5d1c03499cabb2
MD5 7c2a834cce83b396a2749211e091f281
BLAKE2b-256 2862668a5815963e7c1c1a9d35739f0c76ca4b83e46d8c502c063604c2ea99a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.218-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.218-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 391c4e95e91942b71f97c4f0828a4677c4129c848caa0dbab7ae04c0b2c60bd3
MD5 45884364ab9ce584e7c80bb817ed9f28
BLAKE2b-256 33646c208f8b91913f57569e88d25634b644e4fa978a3d6b249c847dfb24a9d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.218-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ba68a4fd7aeed8a45b031886d7b372e6e990cb9d0cfaf8a294af4d488b18727
MD5 c5653517938029c9039b36d60ed8c5a2
BLAKE2b-256 6a5df3eaae17a0215f09328a594ff64a706f5ad7f9edc71a2c8ff7bc34ce018d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.218-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 07fc6df4885ac37e96777f50f7d2abb1b13a5cb86ad9849af69fc9375cbf6bd8
MD5 9dab9308a86b780cfabe82d679d35f8c
BLAKE2b-256 09d9c1f14e99cca107108869a6f81021870cb9736693c4287db57c1d9b0a927d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.218-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.218-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c14f840dbc6d0cbad56c278a785ddc0b22eb10378ca5c3014c6235ebb6e3e012
MD5 9d29ed63523d4f945fd74dfcbb2c4a9d
BLAKE2b-256 caec3fb9b7b017606e5b1276b13ed1278f69cbb67bfd281b5b48940ef7937fa9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.218-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.218-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e98a69dccb55a8c4b9ce2b99060aca32f7e1b3117066b1a93af24dfb90b25f14
MD5 3f0f4d798007e09970e652cc592dd72a
BLAKE2b-256 2ef0036920120c1bb345624dd532ca93d617b6d212215f18446702e802a24726

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.218-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c43c901a7eaa6d6346a86513e5666c5f830ffcaa7b89e865250e347c15fcd3b
MD5 d74eb16af93c0d62ed80de9df9656629
BLAKE2b-256 24e88f268392e0dfd758559a949f09a95ad163d6347516d7ccadb0217123009a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.218-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.218-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f716ae35f5faef1511a93f44c7b09f6523b1ff6a8d1918bf963a42b0d0f71895
MD5 e5f179bf1045652eb042eb5837f85687
BLAKE2b-256 4f66c7673f37a72064563a0b33fad972a55ae6b6bfa8f2a9c58ed5af48334173

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.218-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.218-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a263aa6e850e728815b2dbfc2528f09159641d98f66d3f609590332071ef3355
MD5 30cf8c408a1663ed9d712327374c9e64
BLAKE2b-256 adcc64f78c28a59261373fc74404c261b98078858186c5630ecae8271233e1d6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.218-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.218-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c4a8e5a81a83da514bfa1e0027eee9051350cff09d0b76996fbcb06a48b6149d
MD5 f2eebe558deee71016643948c084a2ed
BLAKE2b-256 e920a67e18ad7bfa26047e24f323ec9f36bc43aa8192fff7b731857e1eaf1f15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.218-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b277c58531e182e12dc4393600575fbe787f3a50130b3ad6a2fdbd39a8b07a60
MD5 ee8ee25b50d22699e8c37fe975603d03
BLAKE2b-256 4ab4c753861ccc465e7ad300f8f3cba2138cd96321ac93adc033b35c05a20405

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.218-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.218-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ba83efface68e8fa2190d33dc7f84e15d70c4bb31f6ce7a96b56906d1981bf84
MD5 e27cc8ae09e830d7ece5489356f3c250
BLAKE2b-256 dbc5e47914ba31635c9be258837dea24b775462dface5aebe08ed7dcdc16b4e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.218-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.218-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 29e8aafd395359dc947d32df4d0d8f48f8b885d1e718e16f9a2057572ecaaa0d
MD5 2c429b997dac84e250a78af11e97193c
BLAKE2b-256 1b28e041850fb8ff33dccaa966e5781ceddddf2fa3a19ff08e5e19c8ab8bda6e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.218-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.218-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 931254c7ac5d862a2bea5dac4ff4b91516eb33aef3a1092a7114247778c0da0b
MD5 7d3d7d941d5fb1dae6936dff1e692339
BLAKE2b-256 8c01de780aa2fee04e650176fb5ac20093e3209ab8dd47d5766be5c8321b7eba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.218-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7977d7405c7beca6cfd1b1053a8b93ea36fb9c41a484077df872c9fdf5d17f37
MD5 6e8bd499888ad9815bf5dbf19026733d
BLAKE2b-256 bba862e9b9c4b5394bcb907311917963635ff3e331d00c78f63e0ad54ce8e75a

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