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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.5.7-cp312-cp312-win32.whl (118.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.5.7-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (371.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.7-cp312-cp312-macosx_11_0_arm64.whl (124.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.5.7-cp311-cp311-win_amd64.whl (122.2 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.5.7-cp311-cp311-win32.whl (119.8 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.5.7-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (332.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.7-cp311-cp311-macosx_11_0_arm64.whl (124.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.5.7-cp310-cp310-win_amd64.whl (122.1 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.5.7-cp310-cp310-win32.whl (120.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.5.7-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (321.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.7-cp310-cp310-macosx_11_0_arm64.whl (124.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.5.7-cp39-cp39-win_amd64.whl (122.2 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.5.7-cp39-cp39-win32.whl (120.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.5.7-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (320.1 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.7-cp39-cp39-macosx_11_0_arm64.whl (124.6 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.5.7-cp38-cp38-win_amd64.whl (122.7 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.5.7-cp38-cp38-win32.whl (120.7 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.5.7-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (303.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.7-cp38-cp38-macosx_11_0_arm64.whl (124.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.5.7-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.5.7-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 121.5 kB
  • Tags: CPython 3.12, 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.5.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 52ebebe1280f81b513dea15663f17802aa992d3e91cd802de82ddbf9620e18a7
MD5 4c5b2fda31f5f99f35236984e3182d76
BLAKE2b-256 7ca90dd257cc2c203b979061854d78a6becd4017291fe8ed26969d92748c05c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.7-cp312-cp312-win32.whl
  • Upload date:
  • Size: 118.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.5.7-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 abf1a80ba551fce7774109827135af9ac9092a2a6278edfa237798955fbe94fa
MD5 6a4075ded135cd59e59b45b23d94e4c7
BLAKE2b-256 3b91ac0221b85ede8f18d4e16d5d4ad3e8aaaa3a0f43cba5c60a42b95b8d633e

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.7-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.5.7-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be6e018091861941d2392ba351dc034f6ab8b6c67570bf625f398ce00cac47e5
MD5 1c5ebda72443b9837605993e397adfad
BLAKE2b-256 8ffe8c5608878a673741ba276b8888d8df920f49c931d727c064fcf10e2941c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b6bb6d5e7d7d4a1126dfcee8c205790b9ebc6d7ceb77a0c73f985388705d1fa
MD5 b5f65526cc03647b938f3eea7ad22a08
BLAKE2b-256 48cd209c99a429c17b1ed3c04dce4d6c08cf4e897ea0f68a850fa62590f65f14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.7-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 122.2 kB
  • Tags: CPython 3.11, 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.5.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9f9f96cafdde039a77effb8ad7d9b4aadcc9edbe05e8fb3da0c82b803d224a47
MD5 1b964a53a371b73293a8d232b070814f
BLAKE2b-256 f76bb204cfb92977cdb51e34d16e4e45e3228369555d144920dac95e9249e578

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.7-cp311-cp311-win32.whl
  • Upload date:
  • Size: 119.8 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.5.7-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 12da2c992adf9fd6d79b48ccb0134e83c999660f735df6525eef8d8d0e731217
MD5 a25457d28916ad5eb51e2c7e1e330c41
BLAKE2b-256 44d7802e48d60a07efca54ac2e32e4dad27c008d722892173a3b45a89fa33e93

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.7-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.5.7-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9f67be3cdba872e31211dab22839a7b91fd446f0c3a53b0099f8734c58d250b5
MD5 36ec0f13500baaba40c82f2952605970
BLAKE2b-256 02237668324bd0be8ba5d5c5086f599670544f355eee3f9f8d0ac26db3d6936d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca53792c2ec30ea3c6602d0d97f12e4cca5b6ef9956bf86cbe4dfbebe6dbc262
MD5 5039b45632961f7313c3ea05dbc385f1
BLAKE2b-256 7ce61481c73dc135cc17583a1c02cb9c5f290ece3755bab0856254bce072bb03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.7-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 122.1 kB
  • Tags: CPython 3.10, 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.5.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b18558ce35cfbcb6288bd8301db62625b4eb96cd12e2ecd909d5cc1e31e36d89
MD5 47e9c4c14ebae3d670eaae16880214e5
BLAKE2b-256 54893e087771171df53525eb20121e34c76e641a55fe69f4b4403cb99fe19dfa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.7-cp310-cp310-win32.whl
  • Upload date:
  • Size: 120.2 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.5.7-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9d7b53083e00b575cc3c698571672845db884d5660d375cbf300bc43f10108c5
MD5 269a9aab56850763f8d59d56387582c4
BLAKE2b-256 65281bd6699b2a26f15b263ce5da518b276acb40e1bb7298c17808c68eb09d4f

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.7-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.5.7-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76348b0b38b1ca4f9a388daef853bb1d1a959df2708cd0dcf2296331c23de159
MD5 f479d5a06726392477316a2678242bd6
BLAKE2b-256 48bea7fe965f89a22165ae40236b15998541e79dbdf2e7e0556975b6a6605227

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ddf41c45388a8902262e93a1526177ff59b6b0e1951f2430b756dd9a40ef4873
MD5 2f6e709229836fd1c8f1377f96f47068
BLAKE2b-256 3fca9b0bdcf831efc7bc710865f642aa84f922ff36f532b8288af799065ea100

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.7-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 122.2 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.5.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 896991536093ae2a7691990820992d00bd0951eda22bf38f17fba880dfa8484e
MD5 1470aeb35042188ca900778d187aed70
BLAKE2b-256 587736d1968793b824eb9357a0b3a9a11080b4818aabb473f735144925af3f03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.7-cp39-cp39-win32.whl
  • Upload date:
  • Size: 120.3 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.5.7-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 324403c88696cec877f0299dc87831d8b249edb57ef7c6c9f77c3a3ae3c6454a
MD5 af24716e757abfff62682fd0faaa1221
BLAKE2b-256 a3a2067748017740f682c5973017f20d3aa981f3b149fcadf482f2a3bede5cf1

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.7-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.5.7-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c77a55bbcf230485d40fa80f40ed7fbd4439db78d221f6896280b3ae2d3d61a9
MD5 85e60aa5d6a9b1a6297e231d9d8faafb
BLAKE2b-256 4bca4e86dafba753f8f8b64becef2d306c1e7f405757073305f243860bd1a48c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.7-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1382d87778cc30f16cd0473f3f3a3a6071341e87aa55dacbeded39417b4fce9e
MD5 f7800ce6261695f0be3d8cd795468442
BLAKE2b-256 124de79b9d97f96fb5fef253563d9a97115840b893edf6c25b6c481562b13f63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.7-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 122.7 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.5.7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9ce637fdec4ac9051dd2d01c32e8f019814a544beec14a9bcc65d6e9b4ab07cd
MD5 6a4e453f8a74ac6a9352b11aca71d350
BLAKE2b-256 1ba1fbd668582d16fe179cadb89e897ead0cb41f0ac3cde8e12b4069ad4d51be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.7-cp38-cp38-win32.whl
  • Upload date:
  • Size: 120.7 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.5.7-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7f3445d34e2fa1a891405e7e9eba2fec6e3374407a5ebc5716aecb82e7b77cd3
MD5 9b9aec4e14753b85aa21e7bc7904a11a
BLAKE2b-256 73244374ba7c013529556e4019807000a8d6ada82c9f208768ddfe16c64f2bec

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.7-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.5.7-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 510b34fced5477a07cc4202a56bcf8f746658b8e5b660281cf47a8e0524aaea7
MD5 94e227f3453e8b1b990981301c2d286c
BLAKE2b-256 e9ee0a2cb668bf2af03245d8db3d63f5e639f7946c8831a2564da7b8aeac4d29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.7-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5621982d685cb9fc76f70985e9cef41de219e1c525fe79152ada6e72cdddf7d
MD5 5df65ecfee1a0f20b6252a768bc42b81
BLAKE2b-256 9b87bcba4b6653413d577f1758c39635005be54cfceb6a1646d776ca0548c92b

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