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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.523-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.523-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.523-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.523-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 338b94306cdfc75cb0083fbc9d5fe470fe479bfe250db08e5fda81b4c4d17754
MD5 434aec8056c6b61aca774b4b5229ef6c
BLAKE2b-256 c9c2ca957c96e09175208a9149ec50fc3c1842f66616e71863bc178f7de3c89b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.523-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.523-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9b733b23afb2f8ac93a79fcec094a0bf6fdfbd216c47f5d203e6f84526671845
MD5 3be265314a04b658b29f7ac1b38a601d
BLAKE2b-256 fc8d13d544c2021d6446f41b6d94fd24454ba73478f40b2925c2ec186f8303a0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.523-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.523-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4362c3a0b58467f535171b979dd9c4c147a00caab7fcb4dd18c51ad028e5f34d
MD5 103a99c666fbb75db558d108833102b7
BLAKE2b-256 508f20aa5e56e4b4483cd60cd6c740bcada65354dd944a10102adf6b039c21df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.523-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7a01f0df22f6bd44939a92e077247e6f31296b91d9223651c6c1989dfb4d64b
MD5 ff65ba3aaab428075e06b9655cf3be28
BLAKE2b-256 d0c436964e79cabde8de9f083da7b4cb70d7154690f12c3afd80a0cb966f74fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.523-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 61a2e59991bd6ed07cf054bd3c6a508254ac2ca2f31fa205854faf2a55279dcb
MD5 feed1a85913afaabdca1e66488abd39f
BLAKE2b-256 2203dec3b8ec6419ab497c34e769ce16adee59d3b41222be02513c15d09e1f9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.523-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.523-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 96ce6585a3c5d39f175c84dafa1e47ec9a53243712f7db2627ac3b98108f4974
MD5 e9b2637586270e98d47e004f6d0a0213
BLAKE2b-256 96e725c9d1fc89889d6a45ab4a41cc6178b515bccecdc811051bf084c9b581ed

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.523-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.523-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bac2f5a0e5e74e89d190d29dd3f8b31347af63473514528b9ca33f8fce04d29f
MD5 bf7ed84b40631f655be1cbe8c8158689
BLAKE2b-256 88b125fcf1443fa749da78c0c7f8bbdbe51985fe96bc70464d03ea2167ecb832

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.523-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 92051151f58cf14658dcf381d70b08b2534bf5b04d4d4e5b0ca7b4ab668dd8ad
MD5 a25353c1e233ac2f19989f563ade2d3a
BLAKE2b-256 84d17db4f9af2d16fd3f2dac2bb6198eb0b293f31ac84796ca7ee15b599e87df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.523-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 409be152e59ac4c7160d06dae307279cb091ed433caa8d2bc7f4ce0eef582573
MD5 9b23b5362a735c83a4053d718f93bc66
BLAKE2b-256 d400111c4b2d63db4825e1cea85c0f10692e1967b7c61d012455747876d872bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.523-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.523-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7d012349ab72cb35ac23609fc4e8613ae9f8231546c830702b37edf86630bcde
MD5 50e3c7c2dcbea8b9a457907ff43e6bf1
BLAKE2b-256 070dbb565884820c72faa4f9962016943aa2bf02ce86624d1f669ff41f53406c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.523-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.523-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 46f8901ed858de35417f79ab5b5a15e5cae454fa055d17d99771943c9cf8ce6e
MD5 8b2a07c7c27a96e0fbd65ac825500515
BLAKE2b-256 614a492b882241f7f23b0b65fb01ef1d2f4c5467c718df34c8099c7bdd32354e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.523-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e5b9a272448ad804e0955ea87fba24ba9591e0b071ae4603db2a912cfb7e236
MD5 e28d973b5f98e6e2fefcf7b0edfd4f35
BLAKE2b-256 85f65d5236dc81912d8c7648a224d39ab5c5701aeb8362cdbc799ebee7d25e39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.523-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.523-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f7b6ff616edc1bb27aea68d5086e419e964fe9e10ae257557e4f9477f8f9aada
MD5 c667833d2d112ae7baef69fa089c4e42
BLAKE2b-256 aa7db9487dabde53eb4a06bb63d17fd8bbcf11ed164ce166ff82129419f6d12d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.523-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.523-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2f72b88eaa6f7600924822583b2170e5ac557d93ff2a9829fa6b66bc6ac1d345
MD5 7e5845aaba92fbfc85219c8b6a613964
BLAKE2b-256 f130a5ae6fa7ab58c48510aabb7be5786e0c4d4987672301cebfdc9e94f7e6a2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.523-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.523-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 23c1840d653e161d8c69f0d09503547ee6267d5cfc6dc5c91e97e35adfe5554c
MD5 d3b0a6023264726b3a40f86f34d22ffc
BLAKE2b-256 b05c8dc012c26de1847335c89cfcf98d77fe2f7336e1413a6f44c812c1638c63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.523-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f804a62bfd94102ef51da195c034f7c242b7209b4f83ce1c68d7efe86d81e76
MD5 9b5a45049c8a868affd0095119fbfbad
BLAKE2b-256 894bc5665781e44e9d0caacb536d30877396189e281b755960d26fe50ac9252d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.523-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.523-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 73f8fe1bfd11442b244940955e4b7b8a9d18a13e4ccb43ed318958934ff3aabf
MD5 750ed4ce5e2efdabd394817354b9790b
BLAKE2b-256 23a5d25a098af41799d90f9eef994a6c8bf0557a7d28be05f47f1d8b15a0bcce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.523-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.523-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ce905427c5c98b7e60059a732e60d58573e8e510544868b61f353ce96bc83f85
MD5 3d2adf8b197446421e2a418258c95b83
BLAKE2b-256 6619d3bddc75ec60676dc5082c30704e79110bbe9fb2cccd4f275a493196b573

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.523-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.523-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f88f9fa984cc955fcc0abaed47348c0a6ed43ed3e5f10b5e526b98cb5ea5834a
MD5 669e22992f38f57b605fbf0746ce8616
BLAKE2b-256 1f3889e96fec7ec3ac5fa8d0b4af1d8b299d3788ce619764a65ac85502592cb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.523-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c229da0d392e4ee4d7c1b1c84197b385de9288e5f2fc1ec210acf33e38b41e7
MD5 4e9f6ac21bd0fe82368c1ebbf4507e97
BLAKE2b-256 64999bf493625cf892d2abdda992b67b951a5e45b61ac1731e201780d8c27e37

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