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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.301-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.301-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.301-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.301-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.301-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 08a8064c5b6d28c25e39e9fc43169d87f613f7cee664187198251a88c53ef57e
MD5 7a6064e60fa989aa3f5dc8190907af9f
BLAKE2b-256 15312490427f78ff201202509ddd6474b094cfb6583d78a03f8745da0a4f47d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.301-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.301-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 848f28053f59b6b02afb91e8e79c6be2acf7121ea6ab832b0df6dc52e05e3e66
MD5 3148411f54e30972b84b22dfa2a9d637
BLAKE2b-256 33b60d14f0b111b4051b1f7a629dc88a0159a9103c3c7778db9cde07b133859d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.301-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.301-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7decdece9afa4b3daf6dfe4a01b8e26e6c10b475e6e5e7bf1ee2a3a7142e2a04
MD5 a9e015c48669bbc101310e3b7c5188d9
BLAKE2b-256 35f5987c40a9e8e230bfe23952fb4931b4734d866d842abf17d2c938e05cdb89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.301-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7d654b23360b4253080535ab511530f8032d6d3b33a8116e034e580144f945b
MD5 445f01b2c29ffef601a1cb4fbc081c96
BLAKE2b-256 1fd4d03095fce75e7c8920e90de609a0e5073711712baf5d744dc11371f436c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.301-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 602202900427a34f67b44cc9b7a680be20f5dfc48077ce2bf06eedc0a56bca0a
MD5 4b8b08e78e7a1f1429177327bc724cb7
BLAKE2b-256 2c24ec16024c347a20a529a98b45b23c8edbfce7dd0d526aa867b03716925344

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.301-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.301-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3e7ea92b5b3ee695b8c1c05071efcd3b5a30de18ea7bc115f2b9cd94daeab0cc
MD5 4001c52c0400eec7b6bf731ef839ad12
BLAKE2b-256 7894f1b3896e6840c9a90c1c034a7af84ec3c044a819aa79cc65fe6d7e4509df

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.301-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.301-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af36af8841353c95c67b52e10251f1516f06f55c8b7c3d896d72a4d7bb723822
MD5 5b4f0dd939a606b89b1c5f348564f434
BLAKE2b-256 700813586df76f42de7d121646fe1fb0d161a113f29269f5975f65ed8ab06d0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.301-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2241fc3893154e34bd8611fe2b48d6820913e197194fe5051c767117d37a066
MD5 9208b667be5693d6624f645a0fdeade9
BLAKE2b-256 28da4fee732d68fa01da2701ce283a12cf0a7da23585783eed4807ff1b6f82a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.301-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 380ee7d5be48cd60ae9cd9262b46bf05c0a0687a9e55fabb4037078d3dc90e90
MD5 72a04cb748eacbb2d021513745505fff
BLAKE2b-256 78ad9d1e2bd53aa4475dae710b74156d9f1cc5a4750b9a77804ba88d17212bad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.301-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.301-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1591ba1f642957325546fbdf8725c5963030ad9edcd30d46e2af553a1540293a
MD5 ad79b0e45036e308faf2d1e891f0e951
BLAKE2b-256 620f139b38aaa530f821f609ebef14f37db375fcae80c1e2b6c3bc1a9a0e7a83

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.301-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.301-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 255e1b382ea9159b6b6994266d30369077dd81af28e6fa0536b26c417a0cd15a
MD5 12b3c1f9ebc6119e3dc3ed458196bcfd
BLAKE2b-256 444fe1397b77e7e329dafb69c26afcbe6d40249be73198441882bf7f896dbf96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.301-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3eab5c832daf3a63254583d9389323cb96e9316e9810174fbf214795e7573d4
MD5 1d15cd55fd506455c4e4b4e2b79d2246
BLAKE2b-256 a5c83833b190ca74547a307183c4c3574b5a0fe622f037413bef1bbb8de28b96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.301-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.301-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3710c3d80de45a6a25adec6d7a8ea822f679e8001284c0c0915156b374870086
MD5 651a04ed55f8499c084fba2c829d9f6a
BLAKE2b-256 1db4e01deb05f40825dd32f9bad9ee0201c85b4c8514f0920e836b6c72bd6f6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.301-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.301-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bccc2140b6b4dd21bfe2269fec3be85908c3864e94a92cc8cc29e5bd2030fc48
MD5 04f471d1086555a5c604b5dacf5c7696
BLAKE2b-256 7274e2d54d8408256dadcca72f5b01f1d063cb8e11cac6f1512a8afa1263c1ac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.301-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.301-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f3267029c1e266d93d43db13dc89c24b30546f092a989ab9df3006867e0b41f7
MD5 6dbc7cc0aa4b7bf614510f1277ebeaa0
BLAKE2b-256 86bc3b2f08d3c12c0c692bbbb6abdd0cc50d30813ebab7b5f0bd2e80df717696

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.301-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5428345689e888d3a920266117d3739e30e270e520d5e35db4d7272fe0dbc89b
MD5 62d46dac063e7eac6c6be574d0fc0fa9
BLAKE2b-256 769e2732203d25bfef5c14cb09e3a9dcb58ea2adbf298aaa4355d328bf8f1d29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.301-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.301-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9204ef85fcd005311e6fb045dbc34e9c322f9561a41d8530dcf15be1cbc29470
MD5 833a1e73829f30d42fae72c8459574ec
BLAKE2b-256 dd0e0087e66f46d0b8fc293a415c0aedc9efc084696360a238be5d7b4cc28de6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.301-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.301-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 480e09ff98a5ee90d7026f0cda7484c648311af97e0fdbc5733cd6507f2375f4
MD5 d0b137510a1411936f597c4374ec0042
BLAKE2b-256 a00a7c168898ef5e7c18f11a8f8d3c2cef35a8031617d1591f772e4ea2e86fe5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.301-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.301-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eed312512d866d234b148f1f9468dad193d076dab97bdc720ee7c9e4e5b5d9f5
MD5 34803906c4d3649de1f703ae9a59cdaf
BLAKE2b-256 90a06247e7d37ee720916743aaa0fe21d78e9df76877205aa3e9c2f9bf96ecfc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.301-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1bd918d4692dc4b134c9b735de08cd5c83e59218f99a3a005aef6aa45bf1625
MD5 189f51f57120314a5b57068801854b2e
BLAKE2b-256 46ebeef11a0002c9250928a56d2bcc817a06be3e8f6b815a1b9b08a190ada646

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