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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.502-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.502-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.502-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.502-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 33e2c06811027d3d9ddc042ffebb0867a0964ff1f52f0754d9e08c7e640221b0
MD5 990628888dc9dcbfba90ff353a7745d7
BLAKE2b-256 a3fa2cee7732ef088f1060185b30893c562801838fbebd998ded55752f122902

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.502-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.502-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4e43b84d7ef9710034c7f082165ff12cdc8fd1a60165069f1d3552b70e5218c0
MD5 0ea3bbae971e13911f70b661cb40c4e5
BLAKE2b-256 d2401f6bf03b53a52f72825a2351662db9d0ea8ef0de15b9e8e110f0826380c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.502-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.502-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 499503ef7970d07f7ff7167d3f216dfe11c6a7f1927fc0f6c4275624d76e3769
MD5 9c3302812fc8445e64abfad2a5aeaad9
BLAKE2b-256 e215e53917d6b0ebeaadf8d3a8fce747c7f4c98c418cc029b23982ea8015ecf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.502-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9da3433036379d1ed4b382288f56fc1a75c24abfce894cb6c3d2220856ab899b
MD5 8d968535a27af1dd3ac868e9f157ef9f
BLAKE2b-256 21ecb0d615d44ccad2593b6a9adbec72abfac87c41a7a33aee0ecb4264b962b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.502-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9ff19d815b4589011706587c69dad00a1aea1f2f4fb49a11814ca14ce65ed997
MD5 0973002833c54e7d7f9f824a8cc9046d
BLAKE2b-256 5a3b088fcbbbfc28c8effb564b98063358eba65687b4919255acadd99a38e868

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.502-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.502-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 df950c9ee8a6fe6c3ea637da83f1396ed6ea670ec0065bfa1cfe92c3bf2a42d6
MD5 7ebadb3d32955c7da69b48755161254c
BLAKE2b-256 94fa67754faaec789469dea00aaa651c79f601c321181b845ba2ae5a5cea60aa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.502-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.502-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d1fe4c8f85a3190bcef985c88b55da39ee98c7a51c6e2d5df2e52360b350b8ec
MD5 ce644ae891d899ce1ca86e2541d16287
BLAKE2b-256 fc1a5caef07adc3b684d18651207c18df714ad70850d0cd363a07c3b935d933b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.502-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a5286d139f3c50394c3eb414e289e25a21f7f901c28d75c25a52ec8ebdbd49a
MD5 aba311e8a9ee4bab86a525ac53cbd022
BLAKE2b-256 71366e45c27183bf4af68bf7b1dda1c7fadf6a9d3f445c743f4ef9a15682c7da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.502-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 902cea3dea5911d401c42c1c48ce4696fd22e6f65e1b0cb5ec070e8d5506a7b4
MD5 ad5687c06616cd57f7cd5349be7181b3
BLAKE2b-256 6548bf4be8ea5b8729538debfe27bfc05671db8bf36ebfac32dcecf12fc228fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.502-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.502-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6dc557d9c735c683589bc5c2ca843c1579dc7f8eca2420137ffb10490a9d98b0
MD5 1d80afc2e88f2dcc09ddbedb9a4acc9a
BLAKE2b-256 cef939b07b6998ed1e03373697871af388855b5defd182dbb4ec09d0eac090b3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.502-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.502-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 007ddea143954ad3a757fefc0b35dcf3001a1c72f89f45307e47129abb3527c5
MD5 f3b066c00494257fdcb9fc8ec33bff62
BLAKE2b-256 2032515b7097bde13bd4f30e7b10cf839554fb328e437e358e6bd4a3970eb086

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.502-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad0767f2c5e71b3b5b97f2c23b7ef0ac30831edbf07d13521e5f5e51c3eb019f
MD5 0c2238d2633b8309b47fccce2b36086c
BLAKE2b-256 3d99a338811bd53ab5c0ce12ee861d3373fa88ecd5e95b5c37942b2ecd3e0b15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.502-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.502-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e016f4b382dbeedd18b97d90b7e7645dc45885f5e925e702cbdb0eaf5d5ba74b
MD5 9e49c33533518dc4c160d206daf545ec
BLAKE2b-256 b19725214fd4380001448ba219fb2daafb7cd522f9bf43e4b87e0b0512fc896c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.502-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.502-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3a0760eb688fb7e99f934f6474b0a92885fd9f7f37b5128a1f899cadcd8d3e07
MD5 e5128699a0699b10578227b3add677ac
BLAKE2b-256 f35f20cee03f9d9fe35d0648d718a77b6ea75bfad482ef60f9724a92eb5fe852

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.502-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.502-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7f34687d4da2b568f5b738c0355b6a99dbd085ae15d1928f0a8dba17fe83eefb
MD5 b7991d6accb3663eac5578f7af62ff92
BLAKE2b-256 2535f66c551b014d9c6da5279b4a710bc9172b393a4bdc3e805022122b248338

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.502-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 943acbe978274422588cbc18d41e2bb2b1a881075129512d7f713b9117ef1af5
MD5 1b99f56b24a422b22fc95016b83e1ee3
BLAKE2b-256 247c90a9ca1561d7cb9631114334c526d90457b4879644317eb1eb4afbe84c3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.502-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.502-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 90ed42a2728aa27354cfbedfc4919e9e33f9c24e564a8687c44b6a15b12e19b7
MD5 b1296456c242a0da37fb4786c32d5341
BLAKE2b-256 e68ceca86febf6b7182e4dc750c6ee714fcc53244966a6edc41f7d9d25734ab4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.502-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.502-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f65754b34a96adacbb0fdde9d9b581721ab93bc5da01d5409dc600a6d62932f4
MD5 f45c3aa08e6e987c4aa54d756441d140
BLAKE2b-256 fc17d6f34b64fdeabe847a14301ef875f2e53598baa3fd10df2b7f6d40bd7b1e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.502-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.502-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ae20b071896c28b9549a09357c4e25eb853f439ddc4939ef6e16149ed629d5aa
MD5 5b5257fdc59a29a10c35ed320a5cba25
BLAKE2b-256 1ab7c3e38e041e761d597c1a450ebd3d5dbbe5196d3ae1e2b0ee8c2c512e4dc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.502-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a0a39c4d16784efcaf646ee6b77c70b7e2d78919676bba3aecef92ada606af3
MD5 8dc0b869880cc4582465991455371dc7
BLAKE2b-256 f960a5ab3416a1343fbc84f212b05a7143f069031b3c3578b5e508c4186f821a

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