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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.861-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.861-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.861-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.861-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cab5da8d125e3cc72bcbb97c5ed8e11d82e3b546c2f41aefb5d948d71d823e8c
MD5 3361ebccd73b7bc8e74038d4eef23d2c
BLAKE2b-256 53d95e9fb293036c00d89ea81d378279e8a4f1a3a9810308f562120416507018

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.861-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.861-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 efe963ca3242641dc72f1bf38b513b125f6310fa3975f791fa943a0c054cdec3
MD5 c205240bf1273f31cef8c57eb02767ba
BLAKE2b-256 2370b7bc40cc6cc84999d2cfa1f5dcd25fc4cb679f2d0141725c208a9536b96e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.861-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.861-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7fc9e633d80ab7c114ff7bb4bb5bb6f911ccbfc3cc2607616b18498ffb5aa2e1
MD5 30ab25087a7716aabbc4843286d28fc4
BLAKE2b-256 10f2eaf69a6a60f46ab2318c7d27451ccf4de2724c7fa8d30c1a5aa791985d9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.861-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca63ff9c81a258287cffee3517775098c39ace5495d33fe9f4766ea9f2b0c02d
MD5 830d150d96dc94eed83e84a79cb9a0d6
BLAKE2b-256 def7592a70ce8e8452aa1fcbdabe6fb4290d691050045dc32c69e59c5ff407a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.861-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 52f70b1879fcdc84743184ab80cfa8687f6984f1e9338ea15c8c0ff0ffe42378
MD5 8e4b6a93377ae4caea65c9d2bd1f4b1c
BLAKE2b-256 dbde7ded9f53aeabbd7315439882f42b260092c2eda839122defe46273975399

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.861-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.861-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ad8947b423e0e012f287d76c9539dcba22f4884ecd2ac62113b4535823869ea3
MD5 41fbdfc500841329d447bd4909d5d3e1
BLAKE2b-256 d32c8cf43913af6ef35f810c9ebe1d88271771574ba5666335ad5e4d0aecbc78

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.861-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.861-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6982b8e4cef42b63ea6121b413c332415da098aec2b5f76600c3cbc7b012b32c
MD5 cb56e40d3758d124181746fb5b35b94c
BLAKE2b-256 1b3bd5e31563b353f52f2183ab53c1cd5efe8a8889a3f8c050fb8311113b639e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.861-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d06f4be8bd4ec7a7d0004760b1d9f31f349af687d0ec8d5ad1299728472fe5d
MD5 ee653447ccb3db5a1d6b8ade3d47d016
BLAKE2b-256 ff639154c1e6a59aaf01bb8c0d4edfb8ab38c6231ab573e9eeaeb17883a55ea1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.861-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5834391dc1c49aa7924c387a0bbedd6e05569a2bf6c70bf6da883f31f3f42356
MD5 4a9885e52a1b650a167c6cb0ccb132e6
BLAKE2b-256 0b683877d1b0bcd07d1114b69aa71bc9ffa490361a9de87a7829bf3fc7f0013e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.861-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.861-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6c34b51e6a45c627862a3d139736b7a58d6ee4ed4bc39a4fe9d677dfb5d5fa60
MD5 951c96ddaf2a54eb8fde1692e49b6f30
BLAKE2b-256 5afb53cea54e6f303dfbfc0798dca741822cb7f15ecb0e594bb444cbbcd902d7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.861-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.861-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e497b6e1e2c539ee7b7055d6daf94f507b4c2fe0983ebb83fc241bbcd4edea00
MD5 05d44ea78bb00cd274cdc6edc31d7733
BLAKE2b-256 b5a51a1fd46a296f64c49ce2648e1cd040f09ef6c0018fda59a41ce56f18781f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.861-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48be4305bd85ea5f0ea6a2d4d001adb7c8dfc20f547109e4be708661b84a8a7c
MD5 aa04a0e6f294730eda4d196557b3090b
BLAKE2b-256 ee4b5a043d9f03978e22f2f4888212174a7eb38f176c6508474d802575264269

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.861-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.861-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8b4dcc3be5e81cb229727fec5a3cbfc2db3832320134c2cbfc3e6e19aa5e7bb5
MD5 d2ec3e5c14f9efeefc121f7f8d3e1ca9
BLAKE2b-256 e62762580a8b49c4feb04d0976a5a280075848fb99055d48b8c7262d7332b0f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.861-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.861-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cebce38b4c4f6588e48e15a3e9ea9a303b3c71493cc3d18b191f4de55d56fed7
MD5 bbb880ed2843ccfa4278ca2fe15a9e7b
BLAKE2b-256 669952b5e4d807e3baf6e7d345f3c3b4ec3b0ee167bda1d50bad3a9a6df6b2a3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.861-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.861-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3049f127242cc00915dc4358ef353d083ea522a96d1563acc37175e10b68792b
MD5 737276cde5b3fc0ce19339a917d9d6c2
BLAKE2b-256 fb398656f791441e3ddc6bbb017649a7338945050822585078993109fb976734

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.861-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23db0c690212261b5c29211a26b3cc83c2dcf7eec73b009677d7b301615d0342
MD5 df021e4ebb345da687647fa69764947f
BLAKE2b-256 70111efc1b16c92132274690f51fae5ee84632a38a9a5c75595e6689e0428122

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.861-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.861-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7efa64e4d08c8ed1536870e7b6185c0e07ea7230d8756058d02df3bebc760c36
MD5 8c96636e8abaaaba17fe9d3b67afaab5
BLAKE2b-256 b16ebf994745ba56e2fbf1f1a2d9658dbd14f30798ebcd86722e217630526364

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.861-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.861-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2e4e24bc2bea237f46f800953d23a20783f3777398858688ee3765133b0afa0e
MD5 549bcabfe064a5f5beeb1d3c730e717c
BLAKE2b-256 6996c8b5a2bc30d4dd8daa8ac242bc27ed4a8dad8fcd7818147b93614dd2badd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.861-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.861-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ee14aa8fa2683083011b004ac4594448e255c5af921c09fb7f28215957347eb7
MD5 f7aae9a4ef025abd23843abdc5561292
BLAKE2b-256 2416d57219d068cc1e4632f2d38066f7fb6327a27dff17806813fb8488136d8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.861-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46b5a69d0361cc176f3095718c39e50cbff0ed303ffc35344b2a5fb3b052e0ab
MD5 43631d16f404c329ebc7eb878b63f6c6
BLAKE2b-256 e71fdecfc554edd190eb1f03ba015f5e59c4cc362d961f1b6e0147399b185bdc

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