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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.263-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.263-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.263-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.263-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8857f0d93ab8177f53fc7aaff431bb036048f3a8f51107ba2b3acca819324531
MD5 a06e8e28f893a8ecd8dfa9df5b8b0ecb
BLAKE2b-256 72e03656d0c4eb9eab23501ccf9a17b178c00b5652919b8ae54c519a10320098

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.263-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.263-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bd375cd3315da42751f9cc15d3b0b70ba4ae1831b8e3d3bcb1d4e4085fe5ff9a
MD5 f9b8fdb2330bfef4c39732c702b408bc
BLAKE2b-256 96a94e14acc8bc72fe5c98291e31699165767d190abaf2d492a5fc94d1d0db91

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.263-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.263-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4584a675e2962108af4a5520f29143c3922a3f174c55e72a336b7841c2a3673d
MD5 3d9efdf7333f09b1b46d2fac26ed9561
BLAKE2b-256 c1c8216d0edb8408a15cfaa9a6e8df013b93c98f52556ba4ca12a7b185cdf1c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.263-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5746d8206193c2265a106d50abe7ac69ba26cd27e46588b84301e35ea1c1de57
MD5 54d23b4fa382866dd8ab7e01d20fa4a0
BLAKE2b-256 9fe7fec7e86ae67eaf2db39bf42d09a784b15f04d39873ab53ca9e7db45abb52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.263-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6c9282159919fc4a47e95f92b166fec069066c9164c5e8f8b793f0e169a167ba
MD5 920faacb151c30fffe19ce9c189c9f39
BLAKE2b-256 a090cc4a88067c48c668a05b9d147555ca3600bdaba0e7f20a66e3b73b540edf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.263-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.263-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 13582097dda18b9713f77c33d5450484f5bb6b9acff13ef5f2ce40372d888da3
MD5 c752bcad3da1ccfdafb6692f7bae314d
BLAKE2b-256 5d71068f5c947d2b9aa4ee51456f78d7324bfa3a525e0afc7dea7e426a7248aa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.263-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.263-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7dc341fae75f8fadd16d9bdfc4d6b57c9c519a31b13e42d2059ad4b4dc166513
MD5 a210fdb192f3b87f1b321dd36e6be697
BLAKE2b-256 5bf422171543308e9ca1e2cc2db407bbff43d7bffa7d63ca79e55fc53532b6c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.263-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 869033661acebf1069d8675668493162ae3c6c81afbe91e616a48c6e6bab56b0
MD5 66e24432685843ae75d1e6b33131e796
BLAKE2b-256 6d57736d28fe277989b54a98180cd4d074dafb78931696bb8f008d9f071b7314

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.263-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2dabc0bceb2b194ca0274a505e90852e10b67eac030caa805c6ae8575e3c74a0
MD5 022b057c8482333ace71993d1a230d4e
BLAKE2b-256 d1fa837442527439c3c9e591284d1d83379c60306597b41433e083f316ac0a7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.263-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.263-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cf8437b512f69ebd05648e8f844122882af5e2c2ad1816b42b856dc6b3ca4aa6
MD5 a598eef155ff01aeb3a99fcb161c28c6
BLAKE2b-256 b9edbf1b6fc62649f028c4aa260870784104e062da43367423893ccb8828eb7b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.263-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.263-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 709e0f98b481bc85056e350f6ec6d6cfed99d99e39b8f9653a1ea8d9cd32090f
MD5 aabbbab8822eb04cb895c26bb7b809b9
BLAKE2b-256 faa411e0cf19b2dcf6ca55648eea4954278ae06b82573c363a2b51993eec10eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.263-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4851b418c5306002658ec315a773c020e7dad4a62e831b9fba905f20c2e3440b
MD5 e4cd91095cfebe04d1411f3de3b2fe80
BLAKE2b-256 e06ea09f61cca93dafce41f0b6acaf082d57c22d09d6f8b2318f03cb0c2a3e17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.263-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.263-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3416b2081ffcf097317b34234adb7b8f30ede54c412af89c19cf6488373b9d25
MD5 5c4ce23ab3646195e7e70d40b0ccd4ba
BLAKE2b-256 e13563a03b70e2071211421b0cb650ccdabbcd0797e8f7f3a97e7a8cca15826b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.263-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.263-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e872f4bbe90765325daa2591c31b3a2fbf886123b0631f96cd297cb0aaf9a801
MD5 822529378f889a5b08daa9201f755ad1
BLAKE2b-256 6713a92b717ac8f62fda5d411621f2cd5d866a257f76df9c06d42c570f2e5731

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.263-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.263-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0524ef9bfb5dc1295c75685cc3f93a01762b2944e29618bf4e9817f539b2daeb
MD5 ae1809d2ba0806e0ac21e07a79003008
BLAKE2b-256 392668219d861f9ae48bdce37c94c5260f6c22c3e1a51d6d40efde0f5022d61f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.263-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 513f15491db078c6daed113dd9d8e09fb7bbcb6118b884cb69df649cfd5b5d6f
MD5 19e2a1ad7451b64caee74446aff569bc
BLAKE2b-256 8143d71df1776c4216246d4df120bdd37dcaa7f33074078f85baa9ce64924358

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.263-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.263-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 061fd64f06fd8846f95ca54784969e01f323a746ef307c67c2526e7ab32328d6
MD5 79ff23beb26df03eba3dbe3839f6471a
BLAKE2b-256 2055a7842f656d83d92ea0a9ad7bec58f265c6e128449d596a505169baa8488b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.263-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.263-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5cf95e38bdc1c9b701a15763047cc4e0c890323059a7e3cb4fff444ae2ff0081
MD5 e59802ea8e54a600a0c68d343cb073b6
BLAKE2b-256 f41f134184a863825e3c0b304b7434a93ee94c5c7451c79af0673dee4d09ba72

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.263-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.263-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4823f36a175df70eb754ab0814f7b89d55e996662e3e8f989b66e3134badf817
MD5 7cb817556f5cc65c6be2324462a6f68b
BLAKE2b-256 961c940e5ed041ba11c3cb80d1365914b41fab713b7905cfb295f7cd6d39938c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.263-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8842c23efc1e72d309c7fcd0c7c63150368b68bc9834dadccb79d6d2ec2a6559
MD5 fc4b8f30f823ec007da385e18c907e8e
BLAKE2b-256 efcffbed5382f3952ca2a7dcad64a7d5312e003a0fae2785330927fa18b4e6ff

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