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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.198-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.198-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.198-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.198-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 09616201eb6318f770be1ffc727fae2527759fb0fd944a96f3c00ad9fbe3410d
MD5 b2f3f4762443e8066f73bf23033ecb9f
BLAKE2b-256 a9c6060e9c74a3642a4191eb486ca542f0c5a463bc5955873bc03acb13e61de1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.198-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.198-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cc7570939d7e424a9d0f4f26d85a8c9d0784d58631b2e3ae02446666fe45f3ec
MD5 328ac694126fd9662e445c5e398930c5
BLAKE2b-256 87083b7f75be07dfd2ac165405aa21e3e301eeab6d0ef4360788581cb124ce2e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.198-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.198-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f241322972c84edf4e796a34d23792eeeb991931913af7df0562fe878db8c9f5
MD5 b2594795cf7222d2fe98263cc870e7b7
BLAKE2b-256 51e5c0a43c77ea630fcbcdfc6433c1f3f4a407979b10087c72b0e0d376b84578

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.198-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bed8ec801979c77fad13c97631cc8423b88415385d57bf7508464ec8445da06c
MD5 cb1cb968b130f3fcda91da45a9da0a9d
BLAKE2b-256 dff29b00323cef1e59c35d44ab00dee30ed030ea0f1595272ad4c490e618d58c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.198-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2cec32f966b678f9ea00834d8798c3056e88a2496e3979c998e476e7513a8a51
MD5 d5ab5b3ba63ddac63463fa44b7e03011
BLAKE2b-256 27de38d2bde10ac87427f1be741087e94557075cc6d8f11ebdc292153af8e690

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.198-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.198-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 65f444664710afeb434b38736c624828b406343883792039cd8c31f83415b17a
MD5 b56b3089c5931ae8509e07346f9e7a99
BLAKE2b-256 b1ea25216994f125897067d4378ee872661275cc482300e432dae875bab1b72f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.198-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.198-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f186a06003dced8bc78eacbb3d192a5b1567615ce694cf09d8bca2465a438866
MD5 47a71a113d04aa6faad050e828821a7a
BLAKE2b-256 a69cceb24aee8206ac543d5f7a37d77d2655b693e25fc62a755cfb5349b1e591

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.198-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4fe6726ac93605d5cf7ebce8bb8c4a8834aa749497bd6c5aca4b1d24eaef394
MD5 e92c959bc96147efc327cd3e9f5ab256
BLAKE2b-256 7d8c210c4abf3ab1544226d3c4f76725804d41b86f8148953c5b64c1a58738f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.198-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ea7150ea97b3a16b0cee842ea166164d7134be2f7bcf45d60a1466a6dba794d0
MD5 f1c6ef6471fa3c539269b844f34d45de
BLAKE2b-256 e112eda5db4e0eb081cd2554895c835d2dd2d7502d83ed9c34413715d0421b7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.198-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.198-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8a63ff9f2f03319f849d681d8f14ac1fcd028aeff176b8ce01f76942adad50d5
MD5 fa44ccc77a6cd4e1dbd3299fc186f1eb
BLAKE2b-256 2fda8bedaddcd97bf8f7b19fb71e0fba3aebaf50773011c0b589cce391bc3a01

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.198-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.198-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 599420d7ad42dad4d17bf6bf03552571c2a13666edb2d75299dd6d40a1e8dfc9
MD5 7ebb22e3247c4770bd168f15d9b130ad
BLAKE2b-256 0c5bb97cba19b8f9b8d7f654c42914b69fe31233a1ffc27419d6d390dad469e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.198-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 397fdff61d445e900c72010ae34c7ac6e4de13f340319ab2c6520d137d24659c
MD5 c65e24417263a0564fdf4fec7f843832
BLAKE2b-256 f6fa6c2fa26d6990f4f4ecda009be44ec534913fe9ff8d6e4d3488950570ee26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.198-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.198-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a8052d1a73a1bdab24aa3ee23fc404a3492172f8aa8229fdac7eba599fe05864
MD5 48167fda64188972014a1174c5876348
BLAKE2b-256 5d10417a328219f46efd71a12a697de49165568b548bf2ca52e8d5c5cbc4aa38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.198-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.198-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7541685650ab3b3a61b51ef94eb25d08145d9a1a09353e2a99e6166f912a1868
MD5 8df28f04e8c6ad8d934b83223514c895
BLAKE2b-256 4ef7fbf9ae9231bd1fb6fb2094e1040bb9a441293a751768e3b9bd24f7b65f86

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.198-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.198-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 65bd0017f57e72a97c6431086c8327275627d75c994b3074f8ca93e178433617
MD5 61c7033de53a0646f97b340092122c95
BLAKE2b-256 7b66277a0c1c45ae30e6d1c350c4e2d9e705f59b7b1664460cf75eef243f0df6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.198-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84f6498aa733d95babe9a201679bcb5ddd515e786ea2da2c1c3fe689821130b1
MD5 5fe1e813203cbb96098dda263c440b42
BLAKE2b-256 6cae641847042935196208b9e2d45506521d072cce3249dead5a35ea4273d535

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.198-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.198-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d80077854ef0d2c62c9a0843db98111138bfd53bd5feb3061c3946afdc5c80cc
MD5 90b72129759ed47cc6c885170847c388
BLAKE2b-256 a3782a0cc55b86a2c9930053fb87e5f8d9c533711eb01571c34b70261cc651be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.198-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.198-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 037b5917b15dc7b149949267cb9ea651b5e6bcabab1cf0be0889a5e3ad89d079
MD5 ce84a702109d0c1edd17cb912cddfb4b
BLAKE2b-256 4cd6f5b7d4538dcbb020e558527c21deee5b9c5ac9c1337f12f2540cb9a6c3c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.198-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.198-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e2077b389cb62a88d00916a26906614daeaa5be798b75e2446f055433a0d35c2
MD5 29867e2ce87eef25d5e961fdb6ba809e
BLAKE2b-256 f0becdfcdb1de5c8c6edca2d7a17aef69673ab765cc42b5aaa03447a2ee4bb72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.198-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c348463549f1e33b813ce380408343af0a5760850483c20a33238c32e2d05610
MD5 e225e19daf7dcbea97882bc65eebca06
BLAKE2b-256 00d41f8e3c99c6fe520bc9e38829d31ddc376fa584c052b23fe63785f4f5d18e

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