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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.892-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.892-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.892-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.892-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a9a9edebebc240860c21b43cb1133150c38a447e92c46048aeff2e0ba95ec935
MD5 73334c9de7e1a91883e82a80ad15b3be
BLAKE2b-256 fe3cac624fe1b9489bdd737d67ddbe891f4fe6fe1b292f919dd6f163348df9fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.892-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.892-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5a4e6a72f9759843b91940564d4db8ce6e7c0c84f92d09f4b0300c7410601be9
MD5 44a8073886708427178536c3c68f7d59
BLAKE2b-256 d4668725235427f06aa5277bcb2bbea14215a8cb97f40ae86a77cd0d00040174

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.892-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.892-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f96c7b23b92881dff07eb37eeed418000ad0f7e54f77b1d28cf3c0bd64f5611d
MD5 1a367bd74192883a38f41c6809515374
BLAKE2b-256 d1c058d75c55b2b9357a3d27dd328d12fb88fad8a227063e6dd5d3ec3338f221

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.892-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d83ab899019fcfc0d762ef6bdaf8b27d1a70513c3bf46cde1899eb6cf59348cc
MD5 e822fcf037dea0d1b3ea32d60321f049
BLAKE2b-256 362c072e23ae9cf917f7e535e6a4931e16caaf323e4782ef570dd031391ac471

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.892-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f08ee036684224174ab217559fca4588b448306ae1db53fb7b87f50c03ad48ec
MD5 afb2a98ece45385909d271b60614e43b
BLAKE2b-256 a47900914b164b1e87c939adfefdd7f295eb1ba3ef8b730fca77cd9d3e126d8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.892-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.892-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0ef12c057df553f257ddba0481b5ae2a4ae8be89a505b7496aff37a8fa1b5696
MD5 5e8fbd92a815fa2fdb5caba3ba01e13d
BLAKE2b-256 1775eea3a035cb8fad3913923a77e6b09e4cf4b58b49a4ff8886a37c9c2d2b61

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.892-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.892-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 614119fbbd251d34c63f9e1ad1d1a7d72330d6ba3fe232779367cd28bac963de
MD5 ffdb1743143cafdb34d54b4cb9efee75
BLAKE2b-256 72662f19fc8d9c1f54ba4e27d1c510f58b06e6d6b6fa411186727be59c60fbff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.892-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a3d94542bd9a7ef3a23adc92fade2f86826482033903a23b2092daf14f00b5c
MD5 49510f37d6f448d6375b3b3c2cf81c1b
BLAKE2b-256 466605e3fc9bdccb60794c08bc689b9a84650a39f82b3235607657f9c6c18048

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.892-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9945b3ebcefa88f682c1097c47ad2cba9faf5fdeb7ec17a79206fa771fa805dc
MD5 84fefe66c22ac853aba61ea8b771213c
BLAKE2b-256 d69a72d12ee2c0d50ec25a7fd24349b8a2e087bc4867d55f46ffdbed5678f91f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.892-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.892-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f5d622aac6f23ccbc8eaa4ae93e2bcf866bbde3cab9021fe58e23be917025bbd
MD5 cdd00411470a5363d5e79822812d87c8
BLAKE2b-256 443a90a28f0ea5440e6bcefb3d033c839ff8046c4847cad53114aec234e54d18

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.892-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.892-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0d361ed560292f2dfd009e7ec9958c711f7262a116822b31d2744f385f0b1e4b
MD5 33d4d70c24668c4547eb1ed2317e02ea
BLAKE2b-256 156fc3d858663bb21919d6676763baa6987f21478dde1286b292bced37ed058e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.892-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85af44209817c872ae6b7c5224d4d4503a7a7eb625e64eeee1dfe89e5ed42095
MD5 e569b24b7584e72882d90549577380cc
BLAKE2b-256 67096a8037092241c2949f4fb711391d2c122ba885bd3d378dd823f75dae3d2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.892-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.892-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cdc51b1386a1f579d4c4de68aab5e4c4ec89af08c86ba939242f876dc73a8649
MD5 a82cd29ce6b3e6cfabced5d990eba049
BLAKE2b-256 3d5631585ada2fdcabaa8b62064b92679b9bcff7fe4b9a7c507a7c0745946db2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.892-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.892-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 86fc93669818a580b4dc033f3bd49b81b4d66ec3bab31f04852be95af0aa0fba
MD5 f689c739bdb455417b6b39c922f9b3a0
BLAKE2b-256 4b4f39b1adefe94154029add4b2c70e013ed3aca91b8876b749efe23c244861c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.892-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.892-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a4651f18bd5c0edee94d5018994a376af98fc20438983ff4402aecd6ed4ef4f9
MD5 25b2da4d77b3362b302b3ec8f734bdd3
BLAKE2b-256 f70d3c8c497d614c9e71dcd967427be01cdf5ce6345bcd29bdcc058f40a964a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.892-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78ee57012f777e226469fcb363c3d85625de30d99943d6c1be52e542c7947513
MD5 0e61cb5e9932c38b581d1119c87fbd76
BLAKE2b-256 7502582191e016d351c4d1b4fe7185b9da6998a745e4df6c046c0380a49176f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.892-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.892-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d83c494d58ae78fe681ffbb3d67fde5b3f8e863b95bf9ce23b13940ebbccb796
MD5 d65330d4b13edc41e2b0574dd61dcf90
BLAKE2b-256 db899a1cd7908b625c21ef37ec081dca46da2644ef410a6f82e979d510d0f488

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.892-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.892-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5664477be5ddb12f9058eaa1c639ebf8aa53b6cf8f15748e6560d6ec43865704
MD5 0f74fd05f572697b1d87cab5949a9e1a
BLAKE2b-256 de271b6df73fb258076b27c405067d74f994a6832191dcc2073e286655c7137b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.892-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.892-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 69228191d163326f47265d5e32020ba9fdcccd04bc7a649fa89e30923de20c17
MD5 fd864019a0f94f9815010d95b28d9860
BLAKE2b-256 cca7c8de8e921f0174a05a5a3772e72904d088caa222509a4a9993a8bbc0c008

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.892-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0167b31e217ad00525898d79555c43e829c5778a8e3e98ecfc13b2b791b99d1
MD5 f377411b66efda0e67fa0ae8f4e71087
BLAKE2b-256 c2fcdf0e0841ef5b79996ef6c25710b3d987d264aa4b9528d17addf8a51957f7

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