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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.392-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.392-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.392-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.392-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3539217d17bb3097a20293868380aecf164f81c7d816cb68732c774d06b588b4
MD5 76e200bf414ae38b104fc489009cfb82
BLAKE2b-256 e06409db859442921a43f4cd724088af01f0e6a78cf7b51d21a3da759f62d1bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.392-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.392-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 90322137aaf3ec6e19cfa9a68c61b9c8dcd61488e7dcdaa8c38ed3eac712cd83
MD5 87ee5eff6bafeb20d706da5d49c9a28d
BLAKE2b-256 ede05555a497927b97656e09cc0ac3fc8be66e9f01f1f550710b7d56016e53db

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.392-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.392-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af996a7569eaf2682559e5faaa44e2f5da5bb52bd1f34a236e3f81281ef36074
MD5 6a2d5bafdd07b3ac147f913609a0b869
BLAKE2b-256 98908917e4b06221973890010e62372cb7bf8bcb9f79c8588529365f6c5e2d8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.392-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0bcbde70b79c16046f1cc083cbc25a521de8bfe3b0107fdaa6b1b81f9088c8e0
MD5 740ce7ed8f17793630148b393b3ee78b
BLAKE2b-256 f3d763b6a6358410c68b526d57c491fe26737b9d874b7d1b347980ec86136393

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.392-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 258e70c6cefece645392ae2b484e262a00fb1ad8260278f9c46cbe4f5b5fa087
MD5 f83913c1780b31a142977105b2c4fd92
BLAKE2b-256 b68793c42faeafb9c6eef1a8c6e91362aa009e4babc69a405ea483a535ef9eab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.392-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.392-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5eaf086d3b8d95c5ef8a8713769d2e1c12835b29c3ebd4a1d2d18deeb85986d1
MD5 81ae0bf0e6024d6c149d8f2097504ebe
BLAKE2b-256 3adaabbf95acd7a394eb3f7b143be8a51bef47c7b6f88b59d3984cd5c4bee0cb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.392-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.392-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ada637ed42760944e789ab754f0e424f75e65eb65f26e5471c763ec9f0749137
MD5 c28636b4319565921a52f839752b736d
BLAKE2b-256 d2084969432e6dcd6f63091aa489f78ca9f4954cc104aae4b19c88e83d24759d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.392-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b413684e7f9cad4d13ca2342ddf836722d7ffcbd4d03e51aa6ca315eff53fc0
MD5 b88f080304bdb9cee2d22edda6a18c30
BLAKE2b-256 7ac57a3a856e4e82a8615f62656b7dccafe32bf5c846d6e38ce9bee205f55740

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.392-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7d1c48218796ce13d4acfe1c4be0948e979af76fe4a33d5a8bfb64f15daadafe
MD5 4f5f7972586e2fe5b1a9c0943330bdc4
BLAKE2b-256 60aa23451cd8db517c0b93c361288b296f35dac6b48ad26a1769183ca3b9c510

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.392-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.392-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 efd2bbb0d0d94f9687541848f00c19f6ece8c6c8156fd282d49268c06d7f45aa
MD5 cddfe7e27d23458adf21f499e1f917c7
BLAKE2b-256 2cdc4ecc47f84758a97213e7a5b154d66448cba250ac4b9cd20ac5e0d3e0503b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.392-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.392-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6e4cb9dd2d80535d2572db6997d2faec73cec2ff04804d44a256d1bea2ffbdd0
MD5 d1bb3623f1c29147497b4a6037f3641e
BLAKE2b-256 4e56aa2c175a8958f7e20225dd9373c9c3a6561437b29200f3f625ba77f6ef42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.392-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1aeac784f1cc1bcf58bf350293e59e46ee371065f958a7463a1441e5d3e20ee8
MD5 ac9b720550a2ecb5057a069068a4fdc3
BLAKE2b-256 720a092726a88e0beabf22e6f78d3d2c492c9fecfe2dda431c147e83fb4dfb0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.392-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.392-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b503406a158f5cae8dfbb133a2cc451b746ca41efb5989b321ba9e835a73fea7
MD5 cd6446af5ac225865c3b62d7f5d0cb65
BLAKE2b-256 52683aba25f6070a3592740e424cacf57b5a3e7580808278f63698719e50edde

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.392-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.392-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 da55b3b045e745a3a1cecb0bd5cea5c16fe93b88c68cf4f5c3925e65a01e8e1e
MD5 b9dd3c3ae379772d8fdc3002a765c5e5
BLAKE2b-256 bf829d736fe7d0366105d40edf8d57ab21d9527fb790c7cdb99a5b2c56116e0c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.392-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.392-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e9afc7b557bdd5de4969af17af80b74b8b72533d4c2fb2e0ac7f643e2b966c12
MD5 6d189c2cab1b2ceaf205295372a1e3b5
BLAKE2b-256 15117a9117d172927aa574cbdb2302439a90cf44570bc0bf2fbebfb7685eb73c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.392-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3009ad71ba0d2983c5923ecc6964cfc425e42fdbaadccf03f56b141c71775771
MD5 0e15a346207b4c3744ed5417d6f2acd0
BLAKE2b-256 da834f02d689ed8cbfadb1e2956478563a01796db737d0b15033dde81257bc12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.392-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.392-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e7bcee5d7462402550329af78a2ee60780d45f2ad7e414cb7b1d2165089e50e5
MD5 84e70ba404f48dd37d02344e7ccb49ec
BLAKE2b-256 b55991ab37031700dcfdae5cb2dd5c6f955fbcefe9cacac3d919ba151c40905e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.392-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.392-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 82d09740ef778791d667132da773f53135faa8f5b8fc8327c20df25334bf6a44
MD5 86cc46f9b6e8486dc0d8ce93902754c0
BLAKE2b-256 0044cb2830e70900b7620bf9058169494cbc892f27730a052ecb1c53f8884c77

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.392-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.392-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1f27e8d6ad6bbbc821d3d6a83c44eb57156faa6b46af2c270f9e052608352a4a
MD5 5dc5a02c18d18529578aabc61ad2e962
BLAKE2b-256 c62495d8864a674e483d3b6132164184af40d55863fe7c34109e1a88194cba5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.392-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc5bee956c697812fd69918a090d828715488b487e6949b6f33c32259986da18
MD5 6f6d1c235cef9402dcc4f21defdf73f3
BLAKE2b-256 ddfc5735e4fdfec5d0b1c0c5a4eafe97866943fc67b249b7e3d6c9afda27c8a0

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