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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.470-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.470-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.470-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.470-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.470-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f1dad5bc91f121c233996694800ac1191e978dff6af239ecf635dc619f59543e
MD5 a1257f47af9845cbbc43d2d414bccd8f
BLAKE2b-256 dbed3cc1e5cdd20e07e5d3e036ee0c749fd6e06e816991798b2c2f2a6f90f105

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.470-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.470-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 df22aab8ab64a5cc4539cac971e5d0853ae000c46db5799a5f4d5c61df385363
MD5 ba59df9e5accc2b02039822cd0afb6d0
BLAKE2b-256 a3a53531feb31235472b13dd06b6c366677fa42484f1854b49037d5e11b37369

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.470-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.470-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b895125bac43d57d9884040bd0a55bdcedb9a5d9094369e17037af2521bcce3
MD5 f796ec3a5982e09fee2e67f02f6254b9
BLAKE2b-256 1e6414f01d60a61cf708ad10c839ad33a4405ef910ab7bf7d4b61ed71c76bb4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.470-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58ebc2f58b2658af0e9121cdfbdcc95c35dc1ff4e2582db196d1428c22a1beea
MD5 6cf1ff65066378f29fd0a7f87413539d
BLAKE2b-256 09e1c050b388344a447d78b4af1293a8e1d70340ae6f2bb5037524553d644b4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.470-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 98e31402495d3a409595cbcd98025d941b697ca7114d77561d9568491e599c90
MD5 be228f18060ac239a0d331fd3069a81f
BLAKE2b-256 2b160f233ce2bd7e0c6547f0a0d3ac5a05f72fe51465190582b7ac00864a9be7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.470-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.470-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 51a6d86a88840fef3bb73f207fdc9ca79093af869e2bda15456635e9050a4588
MD5 22ce8815106950b24ef28ef681b12ffe
BLAKE2b-256 10c9a11efe741ec9d6c623caa520a093667b40255394544cf6fd6baf65589467

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.470-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.470-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d66f3fc2b391747112c250fb0c0861dc8f297bac863027861c99be5b07173bb2
MD5 a7379ee1be9f5a874baa99e51f8e1bba
BLAKE2b-256 c9625ad0435e014406b0529cb060f6be0ade158da21176a8d266021bfc096d43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.470-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 60e9358b22541101f3528f61f1b726a026f5300226e88f5f58344ca965c896d5
MD5 1a3df14cd620bbe3a775a55bb002d561
BLAKE2b-256 55fb11b73ec4406b0d5080aa7c24d71ac96a1b9b7f3da44fca557a7e4958687b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.470-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 40f1638be82941f38ed1fcbf20cc6f62cf24a22d5e824b73797b9516fa42751d
MD5 5d0ae1bfc4c3e6ff27067beace78c003
BLAKE2b-256 415a4010bb400ec17d9b1f01edf3ea55c680e7d3cf54c26d9cc384510f8ef373

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.470-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.470-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 83ed4f8e5570d632912958d4ef50d15f3e62521bd68b36742a606c431a7ab595
MD5 8ffa6d0e872d5d67e1c898860fcdecd4
BLAKE2b-256 a8f3416ee700c7fef27fd94c0241bcc4b30492fee177216638cbcb6552b1df3d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.470-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.470-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4d17827298aaf5043675bcb85f64cbb9b30ea7ee171801a62b2b001c33c66e11
MD5 409efc46dee1203115a91d55c63c7d37
BLAKE2b-256 989caf762ff666672d0712269fe8c5cde44d9a0236e8827b1785db5179260491

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.470-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a55ebc445d54d1bc8c0c3db0adc59511a0a5b019d8b42bfe04a27f1d79104ba1
MD5 19449e67b47642fef617f9192e4eb3da
BLAKE2b-256 72af4bfa94ab36116278ba37a6e81f3bdf55ed0f692c8b683a9051e3a05f261e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.470-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.470-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f5b85225bdaee1f56a879d6030f19cb7478a51e6d1c20974bd2ef4b32e3fb495
MD5 69eadf22fcf89d1d84c3f03b31460e68
BLAKE2b-256 7327a7d0b9dc2bf9f9ce12e03df4972debd67ee77a99bab106197c55ef10771a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.470-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.470-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0af7803ea59bfb3dcd876f9e1ab47128ae7cc5d88194caf4887e343c5e08cdc3
MD5 bf6695c221570d2d1f8f500635c77bc4
BLAKE2b-256 0ea10c2ffcb631e58c91f0c7cad49d4ecad7975b8f0c281b29275d5f14b6c271

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.470-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.470-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73fbf9e6e5e728e00fa46f8f2ad62754ddac0b3ab92eb51461c4d9f07abed6f8
MD5 fa17a5bd42a2597e8f8e263b074dc74b
BLAKE2b-256 c84291cec532b8236cc36e517a5e8f690e008641d5c431681dd7f5f23797b51d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.470-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e80be0d4311870323fecfc4877024fc799516920e89772009aac69dd7e19ab08
MD5 0ee3266e4c96fbf68ce2a4d7fb741f1d
BLAKE2b-256 b3502cf193a1b2c8a3519dcaeb697c4694c0762bf05d006a0d57d5aeab8bc250

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.470-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.470-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 90b2e747cff5f230f50c9d8e74eeac7a1e0438e623c7c49ed2831d23e3c9145c
MD5 d210216e36c41151c55d4158b1f917ad
BLAKE2b-256 5e7dca3064092c43cc461dbba9907a521e5937e0918a0320eb849c13fb765842

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.470-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.470-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d2bf7371b0be9c6a0dde86f3aae7d3353da159877097098894f1242caa9b033d
MD5 d35a8f92ec238d3a1f47a19a094674fd
BLAKE2b-256 dae4ef523a7cd66bf773dd69d697f920e65ccec08d183232b661d08de8784d21

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.470-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.470-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20246fa7605badece537abb2be0308a001b73d029bb2b558d921ba7215084f8c
MD5 ed15bbfb4742b2fefc2175008a3156f6
BLAKE2b-256 0a3ca73201bd7f17f577cd8de0510d0299decf8366518dd36adc79011aba04ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.470-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65d90f3043144e5b361e79be858fb62bb197c061fb5dd2fb19a1ac3f00ac2933
MD5 0c311edc39cd2ca2d7abb4718a5b1164
BLAKE2b-256 e9cf1934f785573f14e3ef01e33f4fb99c42e2b7713f63469d328c10971b7fe7

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