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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.427-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.427-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.427-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.427-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4c4924ad95dca56f93f9959101ddd45b29235ccfd156cbfc7bf8aac5c07d5b6a
MD5 7035c3d678b27960523885d793c96fc5
BLAKE2b-256 73ee6049624f75895cd284ac0d29e69b8bbc3ddc03da56a710e20e8d2c62f233

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.427-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.427-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3a99cd9cac2058c30196fdef42a7e93741e7f94cb38e45e63ae06e3b302b6411
MD5 cb88feed1e4048235b8d2b562e5d1f4c
BLAKE2b-256 259cfb11c4102f94cd6e2a242c73a8b2e68e442307feee1bcf41e30bc5b8498e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.427-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.427-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f301f5d037caaaf3a5277c697369dcd6e95c122b3740942cb41770feb72c8150
MD5 55c8631f01760933db51334b4ab629df
BLAKE2b-256 e44dc46cd3c83178bee3e4bbaf962d20f361795b2b6d7177bd0f28aec1b104d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.427-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 682487b9ad9d8227c1d72bee32c133c0283124eafa9b1b5388a57a2d64994f7d
MD5 5c06e8e3a688ef4a067f62bb959e4fea
BLAKE2b-256 32725e037194fec31ef7842531694ca7cbc48e1c5891c8be4fbc7e2f2b25ec4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.427-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b30f710cdd42c50481a625e8932db7700e8e14bc83489cf44a4fbf721bb523df
MD5 c417078ef1c3b625f70f2511d4886d17
BLAKE2b-256 5fd3e628f6bf1edc7c39a1fa124036653f1469610f74a2fbc76f902dca111be8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.427-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.427-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 751edc2b57bf65da2816fded72089348f3e97df3b3c50898b2a0551061fb5a5e
MD5 abdb5f74033f4ff77959302b1a57f6c4
BLAKE2b-256 29c4699bcc40da6a97170d77d39cf7b7aca00f9ebadf095c3a5a19039e5ef6f0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.427-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.427-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 33d9d93d2830562283556d5eba0645b25e85f56e170ed940e427e469c29c5c07
MD5 989325e6879e8dbb235c6dcf28309508
BLAKE2b-256 725fbd388ed786a16aeded9b0cf807dcf42c5bd540950aafa0e122f5583c1b6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.427-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 08215f362b0310a5d62a51dc14ba501163e7d93412cefd633fcb5441fcad1a96
MD5 0a54d9ad84111f89ede1b7c59bc31c05
BLAKE2b-256 6644a4241a0dad54fbf2bea6d462140e1b7182dabea59d72297fb3cbbe11c006

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.427-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8b5dc95d905aca3541791aee43db11be3e79cd3228db59f8071c452f99743c49
MD5 35f347b6efa8626fa39b289dd4ab9d0a
BLAKE2b-256 fdc49827bec08b5863985feee2835a33ea838be758cc25e3bca35908a48f3141

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.427-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.427-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 55b6e2f6531dc4bbdfd94e2a6e3e5616009470c6cebc8b2cf55c80e85f5132be
MD5 bc5d8c3d871dd297e0e9fdd50f643566
BLAKE2b-256 999750315a0325543b468517e384c2ebf50ce0db64e72bbb9bd601554abefb7d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.427-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.427-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f15d028fbdefab1724b0b023fe6a145303d0bbcef3106d04d644a29a5f06fd8
MD5 8ce8a2e9c510e0e5a4a708259bdd75a7
BLAKE2b-256 6acbe97b48691f7e3faa3bcef9ca78462b7e0a07d037c64f1280202ca4962ae1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.427-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 176350426a11d6b644b2f6062858396c1cccabb5cbae4b417e5c274f831655e7
MD5 b5407f8d991dcb3547dad69cffc9097a
BLAKE2b-256 519df1e1a5bd98acd8e17af5e8f1cdfb4e1a4f285970183716d0f25483d23d0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.427-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.427-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 12e866b1b3799f62e04be8fdf527a08fec523329ad3f55ecffd9f8114259d869
MD5 aa576ea2139211bc25245e41372d90c9
BLAKE2b-256 838aab1ec9c6e48841ce9675ec64ff576c046c8b30e0bf51a5ca78485f57becc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.427-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.427-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7c2fef6b2e144895a8dddb4ee986d6ed97aa14e781c985605283153899934495
MD5 7083eab63f202aa07201834289d41131
BLAKE2b-256 91421220983ca9aae917683bfc9ecb4de9c60d468f5e1692430d89353ea64a0a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.427-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.427-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f1ff572c1e3c28692d30ce0dc8ab663934f974ca9604c80bace68808b89a994e
MD5 357a00be39798296b63a6708eea5aaf3
BLAKE2b-256 4f756058ce6b9fad8b8cb0ce98c2ef9d166018d8acabc946beb25d17f20d4fd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.427-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec201f1050d981e763cc437d992d1b28d9f126e120d2165be3cad375d2c7a5e0
MD5 c2a82ba2863c73ce1b8ecb7629e14e1f
BLAKE2b-256 6b0c1c4152772571ba920539804a5a9e2dd5c91ad84d9182577bc0260a5c4a2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.427-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.427-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 24ee6c858a628c2ee99a908dea4a2258106bfb2f2b5ea1915891776a6df0819f
MD5 367e1a90cba9b5dda932b19902e4a6eb
BLAKE2b-256 ef1ef25c30ce11f2b6dbb2f404542855eecd569d5b4cff707126820610a65b00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.427-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.427-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2962f2c10416077da6ef2821e9423873ad144fcf1bbc820ba03f9c212361fbcc
MD5 398aaee17945bfd838cad2e3288116ca
BLAKE2b-256 0f03b67997657b8a60d655202849671c99a6ea4f56e19470b1332a722d480fb6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.427-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.427-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0d6bf09a0952814363b2bf494cc5422d3557f907d8f57e625c5d33100377e52b
MD5 24535f300b6571654916662ed315502d
BLAKE2b-256 cbacde2dd83bff28ad47c8fa9f4ba936b917d96b8ac2cc068e5ab9cd83889ffd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.427-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 490372bbeaf783ce9a65d41a6dc695255d7409cf5bf301cd7690e183607ba3c6
MD5 a7375594dc4fe48b8548b7d397c6e3d3
BLAKE2b-256 9d732cb85d380b46020fc52a5bc03a9c85c6342fc8205c9f19bc857f190b514c

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