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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.633-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.633-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.633-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.633-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bb8588196bc7893b1dce185bc3e7c1be2409c64ce26ff8abf826c0027331a2e9
MD5 b235b96c32906995972020edb6b1e280
BLAKE2b-256 00c6dc9d35bb9fb26bc7e0645652bed7ed28abe8b96d157c6488bc1e654a16a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.633-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.633-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8c449f43178799994f083fb41aa19af7a7f55600fb72ed29149362daece4d1b8
MD5 74e1b177941342b929547f320c09c4a4
BLAKE2b-256 b3504af6fb5243ae2a8cfa21623b5eca99f0d5babdd9d2a20d1eb60a806511b7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.633-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.633-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d62610317d87582a65a1acab82e9cf051b20aea331ffbea4551baa50f4875af8
MD5 936b2676ba1a8bd2f7fc136e489741d9
BLAKE2b-256 f9880b9195369b5bb4989d2901d32bb3efdc96029c91268d4ef1bf5ab2e6af75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.633-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4f08d00ea3642c544080df67eb43a3e25a1f6392f4e78e08c7cc6e8084319ab
MD5 f805ac45064ed240855195d44e49e672
BLAKE2b-256 2cf061acb8b5aaef8aaf52a49bc78806ac331f1912e385676881e94ef04505de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.633-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e2cadc71c9873dcc4bcc61c1f62c4bde11ee82cbbdfb18249c8c3cdffbc94fb1
MD5 a533c395261be75e220880d16507a3c6
BLAKE2b-256 8ed0570ba6799d4652d0d6d82112d3d2f91b5d6d8042b849cbaddf998b769cd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.633-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.633-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f01f7d7f2605cd886117af6636b15d3c6e71d35f7c3314bba815022418ce6d3c
MD5 3cef8bfd243afdfab8d479194b421307
BLAKE2b-256 c699c6668cc4ab108d66aaf68b5b59f173339525401c795d83004219c50cd319

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.633-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.633-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8ab992903c41e357b7c1180c567b42e5284c91239edcef2a2b2f86b369df865
MD5 e539593255eaa84b957fa0be5eb6717c
BLAKE2b-256 2c6bb7df57cae9a3f7f1426417c8d18ac34037f02218b22535e8a5cc5db9cdb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.633-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7b4d4b8e4c640f1039f070b3ce3a3f180665ca7ebdb3676a45bf94b46a914e4
MD5 20421b6bea56f888c07dd89b6ca8dbaa
BLAKE2b-256 051b74cff7053608c4507f4ffefd1fc47b1a53a688b55655c0b444b237ed8805

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.633-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aa5f39bea7e7f050c07300ebf8dd9742af1db46ae362ff005bd3fbc678e7464f
MD5 1d50baf3d40c76df103c9abc56e50d7c
BLAKE2b-256 96fd84deee0379710129c29e0a011926668429983c6c18b0e754885a8b5ef10d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.633-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.633-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 45755175a4b3fa958f31a535f3f99563a8c79138ad97804cd40e16c2a305dd60
MD5 ce004040215fe94eb2e18567ee785c3c
BLAKE2b-256 e6799b0c83cc9a23d83fe0982e20b1b6a8654693d110732af5dde78ca1e45b9c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.633-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.633-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 89a40303fcb4ff02deb09fc2958f4dc69c2d2f2ceccaffc22d222cfff512f40f
MD5 297b784a0002568254b3c1f351312bcf
BLAKE2b-256 d174e18dde1b764d88873c670ddab7edf71fbe07126368408655ef3373009b43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.633-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b59709e050fef6622e01f59f19662c2c9ded10ee4cf585a6e229d13aadd646d7
MD5 ce6aea2d214876f756c0aebfe5d4306e
BLAKE2b-256 cb5a04aefca897c0972e3c21e43bff76d72994108643d53f64d4a14e3e165209

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.633-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.633-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 217ba5a16b4c0266cc77d47eef90c73885f2f043148b4f2d02b98f23909bfc28
MD5 e6ff6470dd83f29a8ee0b3a3152ffd1e
BLAKE2b-256 74b0828fbf71852b8f0328e89fc26444fd43c6e3a0721e0c5680776bd150ae85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.633-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.633-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 38ff514ada7d2bed41b99c8cdcf46a42eb2d8407b3bf238cc5474a534a6731d9
MD5 62e48447623f64d6fb88f86816d45c30
BLAKE2b-256 5cc60a59122270ef7d04db2852e85bfa4b99b76102afdf376df64f4ceae04aba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.633-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.633-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f095e7c79761b4854f586b3b0e531a033fe6f5e77f0b8acaad17fb559125664e
MD5 7831a2ab955596509006f5fda785bbb7
BLAKE2b-256 72adb323008caf29442a1d47cf4af52ebeb44ff5c881487c5a2d82a6811def52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.633-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8dd951877283493eadec9210f2d51f102194d9ab1df3960f0194ece1ff9a915
MD5 ca32122ac716948d68a75031f8b6ef79
BLAKE2b-256 c221eb6c6d6372e2cfd4cc9161f1afb9b48808f87b41d1da16982c4a450f4450

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.633-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.633-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9354ad0400509dc8478601a3650a09178250183fd0aa7b2ad433457c3ad4cb55
MD5 ced8560e663b06e448fcf8e6e56bfb5f
BLAKE2b-256 93947f911aea409fade57d290c4f4e2d46415b9658deaa0354ed5e145cc8ef39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.633-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.633-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5e3f0e78ff4598e6fe7e37cb3c56fcffe5b00689e245e2e9e8999d3f825a2a4d
MD5 72c9fc03a08b1ef1d08fc7524229553c
BLAKE2b-256 5af72e81ec60795ef5c505bea4a25c5b21627d3d57aba2e178c50e7cb6ba372c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.633-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.633-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1c350bdb5e2a81f5ebca0860a32d88a3784f8f912ecdd765ce4baa65e1bfbfd6
MD5 d0beb5cc887e0f2285ff066adfe5cdd8
BLAKE2b-256 881d7d49dfe622214ade3f0d15719a0fa4192c5eaff72a00524637b2cf6fb59f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.633-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd425bd797ab97d0d7fff0cf8dfb10f9a2f1db9e77979614ffb00540741a1714
MD5 748fa0f8219139364d0e3c5c9431b5df
BLAKE2b-256 e36f9a1f155de6106222b12195c0a3c6d32adfd010a01a6ca6b7bd8aaad4dc30

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