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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.130-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.130-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.130-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.130-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fd9b9a01f7a3d6959711c89fb37d1ef1eb12035e3f63db9052400b141898f7bb
MD5 204ef98777f7ddd34b4b31437d974ce5
BLAKE2b-256 0ef375b9edbb12cd3f8e7c1d7b1ce8399664e0fa3a42a870f979dd240723d989

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.130-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.130-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 688a07ed274c3a9adeff00938138f7d3379f9c18b303522a9f1f270588ce6890
MD5 1f5857f0b44f0173710dc9024de86983
BLAKE2b-256 fcd63c980cbe5a07101ee4b18ebd0a69d587be1e16393575f44c9b2a1ba3d016

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.130-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.130-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cafed23021ffc32224551658a93218400070037a21c8b8fcb65693b31627705c
MD5 75839e938d9df931f520b2f38d2d0bd8
BLAKE2b-256 8517cf2c0e94777e7824040cbcae51e48c321aa4a94ecd062bda92815301c78a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.130-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4fdcd0266f4a1adf3d9c39d585e3c6cb9be98a2887e5acc938f32a48d2be5dbf
MD5 878a9b6460d98a09a2dde4bbd9a1a14d
BLAKE2b-256 484c9c27469d79ff70ce29ec8034ba62cd9d6f8e6d0c056a0bbca7ea39b0da90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.130-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b9b18640999882b64f8c36823eef509c0eb3299c87a6262ddb4fd5e4ce373297
MD5 f223a471427b6ab864d3250488ccc481
BLAKE2b-256 9d62e3c2a0d0a12da4b9a5defa6d80fbab7e6930fc3f23415f8ff20e45ec0e1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.130-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.130-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 811bd6625bc5b9e41f4a841f29c9ddff6ed52a16d96462410af66ac1efcc7124
MD5 900da054efefc05867083b74d9c27e0d
BLAKE2b-256 e31f66d8437a199201e20f4fa05d45bb688bb68bdf0f00d397ea2b9ca4af3669

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.130-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.130-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5df2d504372309ad41c7895c31180eaf744f6988954016872d3bc45a02a24837
MD5 e6a39c009cdf72e126efc00e8b5f8436
BLAKE2b-256 617eb5273e6f2a930037686d5b455e72e56a725c7d1164ff9c4c7b4aec7e3b27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.130-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e80e3c8a1d7787fb274508839d007b51b10f69552eeba14b98611a8d5797f567
MD5 6079a5eab316f9cd2f8da5270abc1de0
BLAKE2b-256 3e7a386b1f1e69763d79739047b375e121a476978e23b9a5a56f2fe325a27d5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.130-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 351d8fc5c99eee00b104f2348678136f4d9fe4b7943407467eda308a523171c2
MD5 c790fee13bfd9e90ce33de383bcc1c69
BLAKE2b-256 7c06dbadcbd5a0922b7f4af92aa007d79171de2543b1d59778d3bd43c1999b04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.130-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.130-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 aa5ebc15dea7cda0f1be6d172b3f649098cfac57a1abe192ecd477530d22a858
MD5 b3273ea54044187a62ea5c0da6ef0e2d
BLAKE2b-256 6dbf21a61cbd21364e74bf4319313f6cf359397690466d04c0bb4564b60172c4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.130-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.130-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 05eb4ffd262bff8d43815c2d51067ddcfa29aab53bbc110fcf817065f50411df
MD5 9d08bb14c314d108f0eef8549d2d7a9e
BLAKE2b-256 f5b9811b5bbeb78257bc26c6cbc4387cdf631c43f2b11b7512f8b6a0a2bc414b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.130-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 854966b3aa420b1612c4b86ade2f3e61eb95937747e15a0b8049abe1081187e0
MD5 42e80d2c8fd28ea7e7b10cbd58fb855d
BLAKE2b-256 25a40319eb2ed40b1dc8a8441692c6021a03f992865efa71d7439767bd51b6f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.130-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.130-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 012b256f0b8f2972e3006e4556c27fb2a3f689430d1831443a5a037bdaf6e07b
MD5 681bbb9dc25db3aeede99eb33c5b9e97
BLAKE2b-256 19e2085d92e73da43e2bb8a4c83e5d6477658235c1aac80b6a3cd15a32f06d88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.130-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.130-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 72d695e83bccc3acf8970bc689c072ab0f85da737f9ce264ec6b6c6b4aada9c9
MD5 a61e283c5e72ca77bd8b803bd1b7b866
BLAKE2b-256 3dbbc36d66ad8e8313f06412f22d7a12f3c88598de7890a927e239aedf9f0860

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.130-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.130-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 014610c853202dab30922c270c614eebc2907e7e232449f5dbbf6340ead55daa
MD5 75128588949daf3b53302550a1e6b231
BLAKE2b-256 629007ab4b626ca04613ca15920e12f35f7c4efdd24a63b4486590497de3bc4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.130-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1cb41a85cf2e80cc91ac188c1cb4ecb4146e6deb51f76e628ba296f38bb3edd
MD5 4d572775eeaa7f21dfcd2c197dd96a7e
BLAKE2b-256 7cc32a8415c2b5165921181ccb8de2e8941c3bd7a521a0ba3f0d90d748f79dc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.130-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.130-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c7e1a859a5b9a3bb5658e61f68199da8847cd6e22f7a40d443daee086d1860cf
MD5 ddc16ef0235cf3c0a4c5909e64233038
BLAKE2b-256 ce3590b465b47b90f2ed291b3a4fe96bb068da96f51286dbbda084a56d3c56c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.130-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.130-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8da4cfec03b88a3510e9c16565a7c5e4f68980b66f2a89a433005dea77646bc5
MD5 14313acee51c1fc00eba011f92e7b10d
BLAKE2b-256 5d988f0a07170f6c6f76c879c5806c7e22af117e9e9890b42671b083b5aa4e09

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.130-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.130-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 63423ee8771f608ae4bcac88d9c2dc0fad42f254bb24fba34221f263a8c383ea
MD5 8321f190621eb2ee0484c1beba242db3
BLAKE2b-256 9b7ea99bea60767e4a22d21983cf1caef7a4b336e149d5fd2f2f7eca2117fc3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.130-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0e52f8d3024aa8aec5b83169728a6f845124440b07c9a261644ce558ee1ce6f
MD5 fe497efb2b15b12e6f4f32493bc7ab57
BLAKE2b-256 60a53e2e6431f47a6cea7f8e6d49336547949e937236bce013c86cf2861d7495

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