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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.902-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.902-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.902-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.902-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ca1c82aba7cd8e68fbb4d053f81d96b2c2fd613a6ad7370ca1b8e6ac0a47597a
MD5 de9e11c563a88cf582f8a33159fcc54b
BLAKE2b-256 ebe492002384c13c9f77d7a5c06842f2d009b6eb35077dd1394a238014b0af1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.902-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.902-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3ac787de002424daf930e7144d3dddc09fe674ad036784e2c52409c9fb79c558
MD5 e8220db256253ed7a7b88d95b80aa4bd
BLAKE2b-256 fecde5c2ff211b9780ce7101ac8d58dad01a5272bab06642179c75a44a400784

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.902-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.902-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b6b2060e81432e43f37181eb6fdfe5e967d2ccffda6610e0217365f9cbbbe942
MD5 528bbdfee254e59a72457dbf5d717bc5
BLAKE2b-256 2963eaafe3c5518c79c8514cc28208cc7e6177fef4e6675618813cf99d58d0a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.902-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c3d0aaa7937cbba2e6ae44cfadd0a539fd497d328a0de0ab8958caabae6cc3f
MD5 915a2e382c5b9f0e59a5e9b59484f6c4
BLAKE2b-256 9994967dbd1be0223f6b48f426c2c561ca013961848471c923b7a9b4742332d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.902-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e5e7673d0c01e89ec19287845d4c7edc894e458f0b5704d37cb3f39463fc0a63
MD5 e69557f15ae790d22cffcd38e4111b7a
BLAKE2b-256 ef78017fe4fed2c0c9be5b7d71569b053d0099493c650eea0ea12d621f550ef8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.902-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.902-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 54330b6206761c174884c4698d29681a499ebfb500ce86832cecad28fd7e66d1
MD5 6a197f087f6b03a92327bbed64ae5be3
BLAKE2b-256 4b8c60d0ffd65bbfcf2062898f34fb35428251b2b94f273bdd4a14d539b969d0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.902-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.902-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d3ff20f9592c4ca97773046a4521c1c9997f7a10630d6be1cf9e199379008f27
MD5 65b77c7cf6649c65ca119b109f7db6b8
BLAKE2b-256 3671441a4e8121573fa67f57f8afe54ce5da93fe8831e8c272ff47bc92d5e8b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.902-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b28a58dc0de7ef17a14733d410b69c70fd8001b55cdcce5c0bc698ad7e90429b
MD5 d942fd318a41e9b026362b912d5fc9c1
BLAKE2b-256 b55bb0080472c4457412ad171ed2df4124f729a442da44699c2d060f2eaab7ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.902-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f344fb5215c609e6a8db57ca8de4a113be3e88be57459489580f6142e08152f2
MD5 9a02f2de6689fa702f54d97efc3e468a
BLAKE2b-256 b5364e4a827740686cc983f7424f058f9132a22bd470a93991a2f921ac02f2d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.902-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.902-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6dd127c40519a3757c389b1e9a5895f66d983f8c0a42dc5b194fefb9a57238e8
MD5 308c2fa93fa3e5e54a52826f396a162f
BLAKE2b-256 d15bc47de9157ee0546b3e9b88bbc3bff2374d9901a2ac1a31244feeac86d3df

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.902-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.902-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 12e8a7fa54f8a04384ea17b9d3cccdd9fdde275ac61b8dee16615fa6716b4b4b
MD5 1e162d3e691b08329258eff2d275f06b
BLAKE2b-256 cc31726b10cfdc117726516cdf5a0fefbc4b1a009501cae4243f8cc4f735433e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.902-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc8fd0cc59475eebb27fc82b25b97d0854db7177f4e9b9e61cf156107dc5a318
MD5 77a50429ff607a9cebf94f3562487ef9
BLAKE2b-256 5a816928fff2e8319e9c593cf46cc6872068ca035381cb3bc7ef5f8e2e8a86b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.902-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.902-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f51dc85ec29e69e11593eac1f96da73d5462647ddc7318b77e8203123c054ed0
MD5 cf1a673333a0969ad1bfc0d1302f3f72
BLAKE2b-256 f6b0e47aee7730d59d12800ef10481aa526bbbd3dab8d95de1dfe3855b0bf6f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.902-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.902-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 38dec56bf6c781b6482227bcde8bac2b6cb51f901f6bb0ac1bf8a74b80878f6c
MD5 30bb8b8da225653fe93c1971bcf68793
BLAKE2b-256 69ca133848ad99330c2b361efdc2273239932fcb300b189a59f85315310e438a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.902-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.902-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8fcf16e14ce7b70a34445047822dea53f8ae383d25fc18aba331f145d5846c7e
MD5 9871608f4c45ac0b5d6ed511bee13316
BLAKE2b-256 e732ad7c00274cf33f4ba5b1f05e49963e00d5dd6a5ecaebf55e0fc28d7b108a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.902-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97172d9b38325f376fb99ae54ce977932d9ec4b09975229fb5992a8972ef0983
MD5 5797923e13dc68b156c65b2c2e2cf432
BLAKE2b-256 87dd1ce500ce475992769231cfcd3281f75aa33ac034df7ce055f392af6f486f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.902-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.902-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1aa533c31b7e463e259ce1191e969c92289421ccfaa769ee434e5392746ed6b1
MD5 d0d1af547333f26d54b9891e79a2f18c
BLAKE2b-256 b316261f8744c9d136c0f9d010d70b8c19ba127ebd977d5692f28cfd657e3df6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.902-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.902-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0aa7319eec3272eecfbdb563befca89d4e18a70b171ca3abb3cf2c4e9ac6ddb4
MD5 9520863e3f59038102d473998f4a9749
BLAKE2b-256 6b655bde802b3512139c22c042a19bcd788d4cd189092ca55fa13f3ca0e7a153

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.902-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.902-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e971c6d70b3ae5a8aca5e3a6f1b210dde7931159e2d0f795fa5a33f8584fda11
MD5 ea77b14e7ca97d63c3e87143ac46180b
BLAKE2b-256 fcf3cbc98caf7c9d51de71f608d99f17342de372de3407d15a221b38224b494b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.902-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bddbf18eb7cc43dd772459378b141a9ff3c87f232f0c8fa1eee27b3aa795a15d
MD5 e0afde47b6d422e5930cbe1db85b11aa
BLAKE2b-256 beb1411dd14026072dbce5e3946de86fd39561d3d0304da3ddf2c759156d4306

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