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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.678-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.678-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.678-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.678-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 df76f647c1710d110e5cceb64da17d009362ad789191afaab614a9399d016800
MD5 8d4150317688dae47e782145424d06ca
BLAKE2b-256 4f41beeb4d88aed5ddaa727d350df77e628ac052f54511bdaae50386f6475f0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.678-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.678-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 452b851534c86f6ff70cd47c8c67974e8755fa6f36125312495a4d4ee000c518
MD5 d07d557f118c46ea595bb112eae3e632
BLAKE2b-256 ccbf15995dc1139570005ce62e79be3cfcaf2eb61871c3a42c0c919b74465dc3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.678-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.678-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 042fbefc3683f15a8a4b956c33205e177e408ad32cea3a97190ebd24933ffa2e
MD5 3e2f6ac2369549f44a66b0e68dd536e8
BLAKE2b-256 b8971c11b694247fab7c899e6fe137c8cbb3586556e16abac73442d7cef6719a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.678-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bfc402310894a1421f0e1af3565ab2deb280f53f573f6492afce1fb708e2e469
MD5 7ba1f75be313f8701f8281da57cb6893
BLAKE2b-256 89c4873dcf249dbb269bceb07142b4225657a58b89c77528400a293a2ca23709

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.678-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 94a35e2ceb94df135fb21263c689dd86c0ef17aee7b1a46f3feaad8ac0d017d4
MD5 90195c32d07b214cefd964931a954872
BLAKE2b-256 3bd0dae1d61cc8d868d626359cd75c02285077bb953761b4cf3dc45ae544edd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.678-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.678-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6d48cef199c14387ef7f84240da8c78b041a04f0437d3e42194ab7f9ec2f8b5b
MD5 2e3209f66797280f83fc4cf9c6c137b1
BLAKE2b-256 c7082e7566fbc9a2d79eada714807ba84c7ac520854fa461696d9c3abce075fb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.678-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.678-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f674d7a11c82a6b8b869770f52fdc7ce020508be71b17953be7ca31ce68f1b4a
MD5 bcc74080bbdbee1a8b281978a383cc56
BLAKE2b-256 6bdbc51e827425d92c2d124845b626de0b320239237b6dca04baac77d1d97404

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.678-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8481221444796fb8918ba651f591f6333bfbf008e46a4c7d123288a62ec26b15
MD5 29d4a25f7149651dcaf35ea8c3ed4840
BLAKE2b-256 e7cf92cb8dee496435eeb14c9d9e1946f6be4e43d3b75b816d06486b4e88cc09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.678-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8398bea7fee3acda4f02186c45901e840c66ad75f79b0ab6d1b6f8c8f869323c
MD5 37c9470b475c660aadba777aad61aa2b
BLAKE2b-256 7089c1e4efba3bb2245a0b299f2e7908154df9a80d57572d89eba9c8f48092b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.678-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.678-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4b3ca900e9ca1c729644b2fbfb1241c3b8bcaddc4f6177fc4cffbf94223af4c8
MD5 e96eca749a77f72009e10857ea95e2d4
BLAKE2b-256 5e169c431a06a9fa4985b7d01746b06c9677279f16dcb8e30eabd3dc2030d534

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.678-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.678-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc35ed76ab1cadd50164bd79934650e17173ae7c919530b381bfb265d1d07316
MD5 648bc3bceaf33373b0792d20d5bea2e8
BLAKE2b-256 5907b10047d52b49d790d62d7228563b27e115a61bfa8f3f0f9dae0952f38336

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.678-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 963a25b6413fcbb39e8ebba8a0b08a74259d113607647b2205230fcb57f10165
MD5 24473d417483ee525bea4538d8197614
BLAKE2b-256 9d66beff2fe412fee6bdef5effb7094dcf90b5b54bf6a24e9d53519e38300ce7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.678-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.678-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cc3b8f913d0cb0a67be7a27c4f933b658c4dcc7de28b22c27703b401fdcc42ba
MD5 f6c79fe20e454cc6e4710d39772132ec
BLAKE2b-256 79f0291b2c6a664b7d1f81ba0db53af2b210445a3ffbcb6950271076c3ca4fa2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.678-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.678-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ddc4ebe71b3eeea9862da0f86d5809db91a51575f9159233c98a09fb33605f17
MD5 f7f4f1917b71cf0d7edd25a3190db078
BLAKE2b-256 870d2c5b7b8affe7851cf8c6e663d832971098839813a84a94b7bd9a716dff9b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.678-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.678-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0a10e3af567294bf645391a0a5234edc007dd148b18d4b39b327493f9f9136c3
MD5 2b4d53e241f8ce04ba53b86be051ee07
BLAKE2b-256 2bc7cd3109423c186d8e075112f3ded9d36c10db8a83d9e1038937279f70c12d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.678-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09d763d0b045939bf10a3e97c9169a665844dc878a36b9cd7e2b6b3dc5f83be2
MD5 977b77afba14e7a2e901f3b5e30701ea
BLAKE2b-256 dce25f03293c52303aba7a3b199476250b6c3c4ed2978c28d3dce9bdad6f1f04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.678-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.678-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f4e1725e1a4116f81f4e01a33b21e3282276fc0e46df958b361e9f37f50cff7f
MD5 9a360c4fc19216e653c930b12733e213
BLAKE2b-256 5a441f2e8f2bb3e75aca9574286cb4f084530e41714f1a6b74bf0e07e10ef6a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.678-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.678-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3249b460514674865c7a11d3f2c858f641a2779356b96a49ec9f0d93c005a200
MD5 52857b675a83768e9881581a8c7dc592
BLAKE2b-256 49dfc5dead43553af33ef118e550891f7772194745946681fc4c44f9e76fd6e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.678-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.678-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fabbaaa42b11d10db4b30da5da2ea4490bc0563778414c6719793fd91edb66c4
MD5 7e5b97ab3e6e6492e4eded8c6bf417ea
BLAKE2b-256 d82982ae43a37ad35f453817a8ee1711f625e2eeb2d3a966ba7148ab5ba38436

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.678-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0bd57beb50613acee1d56848f44dce5bf3ab2983136d451a8471ba3722196e06
MD5 84b1665612888fcbeba740100d036e8b
BLAKE2b-256 52a2a4354d8928b369afa4623adfad87a783958507030e0257a77e748f7162df

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