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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.511-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.511-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.511-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.511-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f9f2ef9dbf3e487467ed75adf343acae4b8755368ad1e561cac6c282fe5e28a5
MD5 de23d56de180d80765790446d32ab368
BLAKE2b-256 3514278b581b5fd145a2c03d96bbcc2f55e057d88e714306a39cdfe7bd3ff80d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.511-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.511-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3d6b4e323cdf287bc5c06c073f42f157ea6fc2317f817ccb15e259b8bbca0f23
MD5 6df41609f1c0195bd9bee53aa7441fe6
BLAKE2b-256 01475363e82038a43c84683154928962eb7ff7527b11cf9969aeff2c716d1a29

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.511-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.511-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b5a901665984b727e2b6e383770f3fb384028e0bc0cc32f4992470e45772b10
MD5 e57f9ca7ea553a6dc27785ef59a03f01
BLAKE2b-256 9243ec032d9e93361f5d6a3145b7933251a23122e659ac222e1725a40efce2e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.511-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2bd93d7168ae13aadd293ad181d74049bbf5a9d38b76845149ca17a80887576
MD5 42ea9314f11416dbaf684d0febdf8aa6
BLAKE2b-256 0dedf0089ec16c08c6e0da14cb3df3057fe59a75fbc3f84f0be3f350974f111d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.511-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bee712857c342feff0f472cf2bfbabbd610321ff2fe2b06467085fc3d901dc94
MD5 b5bdd5d2ecb0ae52a215529cbffbaa13
BLAKE2b-256 92219d914bbd15af6f7c6e144a156595534ec61ce957168c3fb956abed676838

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.511-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.511-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 34351664998995ff4772c633605b640e3c265edef429f898d36dae7569447fb6
MD5 6871dd4d91356da97bf8cc3e8847d880
BLAKE2b-256 fa378fd86aac492c889f37a443c46d91593391fb6168dc9449e6309b26e89277

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.511-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.511-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 19fc0b6da7238904e50e4906d2f5de0d4fb813b6d4078ba83317f40ec8b06fc2
MD5 2f853e5d59706d02df8b42f5f904a71d
BLAKE2b-256 2af71d8827707c0474ebcf78b0232972f7e36b3f945d9668fbcdd52631cba31c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.511-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8fbb0ab1e08ee22d2ad1d1e2b2bd6ed55efd87c55e00546f5ce7ba73b959d68
MD5 ce4898fc9a9281d44d94afc091af6ef2
BLAKE2b-256 2658219b8b8db0d97bb4fe808509150e9d1504e854a87d3d073e63f289b293d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.511-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a3fba804bc96419cc591076fd5a6f33b90bbe0edfda4c43a76c337095803563f
MD5 125d67e558634242fa082c7f86e3c886
BLAKE2b-256 fd562538340dfaf5f9052278efb3fb112a1cd5e5c97059040c69cad099f4da83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.511-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.511-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b64818b23ef1d7fff752321b0cc340ef6f0a0d0c3e83f8ff0367bd13ec14f3eb
MD5 2a1ea174287024f6573cee887640ecc0
BLAKE2b-256 6134a91cb9b69c804a64b3cd70af8c8f3bfb206d2ec88c08f2507164defb6a3a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.511-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.511-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 62675bbc97a6538ab563a476c956d67f0186bd6b8d7239a024f583b10f34df15
MD5 bc7e72b5143a2f94928eb80b04d0362b
BLAKE2b-256 3f733aa1315494d6dcf81a0dbfcde49db5ad4622086f877b0725d06dad7b24a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.511-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3958e085576d2699eb3087c73a88ac9edd7cea5ca8cc4c0ee1b6bffd74a368e1
MD5 5b4bbe56edcd74e90d68a970c1b554f0
BLAKE2b-256 ea3684562948bd849c864b523c7f0e3ac1e90aa3ff762cd61326598aeebf2066

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.511-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.511-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1878492c1f24a23a31e6dce5cc3028f3dd67a2e44a87a8557e75bcd9343536e8
MD5 a46a03e87221db56cfd1ec972d900e64
BLAKE2b-256 32c4913a071351c518e4d1ebf4bd22a911a508ca8a78e660cc2d0f4d089e0170

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.511-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.511-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 fa388c63eab7ec8c0ae21f6dbb57aea5c737e79ec7b23fdae644b13352cbd2eb
MD5 322467a7ed544406344cf77e40ca45b4
BLAKE2b-256 35834ce2c8ac0939e7fbabb6ca5ec0732d04b08899a01bcd43bc8e6f093dcef7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.511-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.511-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 465f90a4a5772c225dbec2c6d9c87db7e3f8a629d1366dd6eb92847fd4a00254
MD5 9ddb8fb7deea15efb6304ca74b1a3cf9
BLAKE2b-256 a3f6f42feacac54e4832f359ec8faab05763bcfdbe829cc1a4dd5b9427e0014a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.511-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba6166989dea260db59b20ffef96048b35af465402fce94e56ed95834e874a2b
MD5 6c4dec4fa2309d1687a41d0f4b226fe7
BLAKE2b-256 1274b98998c977a0823fb5d6c1021182eac342eb4d3d3fa81e97c261d6c206df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.511-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.511-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ae93d9eb0deb71c3e497dfc196cdef9244aec79e96ca232bfe17bea44c45981e
MD5 3597630c1acd3e9a210c030d3a42fce8
BLAKE2b-256 f8b5451639aca26bad9b05d1a8a7a9a62adff7b5a1cc29e699b68b6a579ed163

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.511-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.511-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0d14024c9889c82136270bfa18958a151726759c8b7697df496e3e8e01b7c861
MD5 5a9468ab1af7707abb1c3f843e11fa1e
BLAKE2b-256 92dc74ed0d2bdbb6088d8d4e8f564c29aea958274454abbade309f5c7a30f1aa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.511-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.511-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 594ccebba362845e93be703e1913fbb0eb951b7568a10607a5a263e7424ccf09
MD5 f43a2c9c7d24502e44eb509ec02a2b91
BLAKE2b-256 41d2eb7bd755e860ebbef2677b11969691a715e3ab6049475a9f6f4621cdd1f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.511-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf549949074bdcf36973d04dab59d886dd26f2b96cd84871bd89096caf7004a6
MD5 c28de8b7550a210235b624b4691c2188
BLAKE2b-256 03ca90d5236e502a98bb292eaa8e03af702f38145859371adf85cd047d36bab6

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