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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.547-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.547-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.547-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.547-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c19e8e2f282d1699b9dfee38f9da23baaf2483a764d449d17cc4890c5e547581
MD5 3e58fc84c21b0322968f842ce95f91b1
BLAKE2b-256 491ec1e0cec938a5376204f241289662df8ba529d65bc1c60ccfc260b8805606

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.547-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.547-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5417d98ca808f7eab51f85588645bfe89211ca428287b69cb213cba965fa313e
MD5 64d962a8adc4f6e0d648f5c4a04ad397
BLAKE2b-256 8b765b792cc6243ee066c681ddea9c196117fea6e9786fe1512cc2b5ec3d28df

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.547-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.547-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 03b65a54d6fcc03f71e28f2fb4311328aa2ffe20da89660a79c32515f7d8ce13
MD5 8bf105ce12d1aecfb4905f3b01f696e0
BLAKE2b-256 85cd2a62d35a2d6cc9b3fe55deffe78b91158e5da7b1da4f52355343f2525d4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.547-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e62401d952a9a9381a6a680a787fee1f70348b60a05315912c770943bab08740
MD5 af657fb03491b8cc5cddd22327a406b3
BLAKE2b-256 f2bc3344f86f1ad8fb9b84fe2b2e1dc0174b369ac1a4ddadaf6c85454f6fb8da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.547-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a2479f18572657e14d90e093b6ca01300ab0d8d709910af8c324f8e85e7999a0
MD5 3d83a9d67f05373821e39d50d285e843
BLAKE2b-256 ae200322b7f977ee30fefda3d3b6e7d2aaa1e1d29e451f11e903a1386b663e5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.547-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.547-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a97bf6ade214ce8abf7991b506ecf526f42a8bbf7c12854ba3b3eab1cbf91e68
MD5 0554c23dff8186479edb36f73313c1af
BLAKE2b-256 25816af14c5894a36795876b83068a96d77dc95533e22c813028778758bd61be

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.547-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.547-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bed8b39a1ce023db31144d20a69dc79fcaa6185d906e1a6fc39a9e07f2a93456
MD5 9b5c7de6ef942a3af6ef0f83a65829f0
BLAKE2b-256 318d867209e58f726a6164f6f566cb5308125214478cb3365de6e0211dd36f67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.547-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5a6951e1987ca9abf93c580adda2e738dc6a44f85faabccf3a56d64c8dab949
MD5 c6ddc4c170c5df58a73d2ebeac89ed99
BLAKE2b-256 a34cc16d0793a9f2cd1b8045a3d1d4302f4fb452388f6ecafeea129944f48f53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.547-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 436c0745a58da5a7c8a07af9bf0a6c46caa945ed7478286beddf065583acf2eb
MD5 92037ed185a052a54086538e331c23ad
BLAKE2b-256 8eb13d9894319b085a1a6a61e0e6ff5bbd99b5b79c9d2bede08a73f3c9590cc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.547-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.547-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 acb848aaf3bdd772d2d2532adda803e7c88120480a4facb9b6652013e780f4d0
MD5 a31849627c631b8be7a55271322cdf29
BLAKE2b-256 711154e0ba0a1fcbe6dd31e57a89b06c2541beaf6fb86afad3e8e2cdf2f034f2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.547-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.547-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 569548e26376737de956d976583ba26d35da22b77f3fd907cd30f2767c8eafe9
MD5 a2b95b39f724302b58d3ea2169b9b9e5
BLAKE2b-256 c0c5ce743f9a3668d31c38b41faca491babe2f1b46b81691e54ae9db7e03319f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.547-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f741ea681cdef535091ba204e1765003b7740fea2fd457a6a4f49d6475130cf
MD5 6d07223a2407dd0e3d5d336d2a237a2c
BLAKE2b-256 a7a71212c38b5376c89e8cdbd2a0d16dea930980ff8c91c8ca786797c89a1187

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.547-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.547-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0c613cfcf79bab0a06f7f8e23a6aa47056ff0cd75afb96150920cdbec9323fa3
MD5 a2f56075e6cb91523ad6c880fae91fd6
BLAKE2b-256 d8d742ab5e2135d28bbd036b49151ab8741952f1d7f69769690dee6ccf5c2ef9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.547-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.547-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ad88c93572e30a78c624700934bb414045b878a7b45820fd998fd98ee780100f
MD5 adb5a0675fde2217e48a0da83ef7117a
BLAKE2b-256 7efe65a7bf7eb793df391f885246c316585b467dda4a87d0ebdf1bb9256a1918

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.547-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.547-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e5b431e26199f5c7b81529981d995c5af829488251b0a9f7fde288ba59b808ad
MD5 51afa516d14aee2999e0b613005e0203
BLAKE2b-256 ee0d7b5b915cdaeaff527a22e5189ced447f0a50ddf6cba8b41c3923907a7154

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.547-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 62884cdb62815b363cf6698a8eb13e064eb35afb0a9354087b4a3e5af3d140a5
MD5 b9afbda5867f28b387d6a24d045737da
BLAKE2b-256 a98c63461e3b59492aa1e691cd59cd7dcb4bba0766a6959ce73b91a569193242

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.547-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.547-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c93138e519992caaae74487e199d78973777ae52de991308121882510c601665
MD5 64ea96de7e051622a0c654009e76457d
BLAKE2b-256 a0204762a2d7450d6ad0de413873084ca652ebdf86f3cdfddec6a25cbc0f41e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.547-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.547-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 579dd6c854d30db25582726f002b183b973549d98d23c9bd5d6f1b3b5aa1f860
MD5 f3e05aa52d572c6478c972c77a456618
BLAKE2b-256 601a25d80a38c7d39c6c24d17c0f03b77d341918073fb3272f50914577dbc4d9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.547-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.547-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 deaa6231f04b64520337134b600a1cac1d91f94329cb786aa089774e3109c1c8
MD5 32b973929586ad08c9d0d93567b5fde6
BLAKE2b-256 5eb81343814d242a85709f45d7da7fbf8d15561447202e795648dab01ab3ad54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.547-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 081d66717835249334cd42245d6f33ec1fcd4fb0e94530fa521e0ffec911a9da
MD5 8c23522677b540433bc251152991f055
BLAKE2b-256 d5e0cff38ff23594ad48644714b64797875eff3cf0388ab340a6e875eae1e958

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