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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.884-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.884-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.884-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.884-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e483ee7ff417776fbb1338705f35d8239ebd9340e32d8cc17917c6e3247dcd3e
MD5 70bf1bb917335800c32e2934e55e9401
BLAKE2b-256 11789cc8b8e374d7c585ef624f8b76c4927157192ec098d7a6bda3b849cfaebd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.884-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.884-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a1913b7b45780eeb8d31917bb83f0798cd624dfba714abcfec696774a55b4a32
MD5 465b120fa8dc0ddc594112a1d97297d1
BLAKE2b-256 546ecf8cca3840d39dd9d9e3a4d8435e73ab51603f600e9d2e3735c0fd9658cd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.884-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.884-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c15d76e90b188ca52c4d7116dc6b41cf4296455214e79b34a7268b18c1f1ced6
MD5 d377e08db0f170aeaad736ac8de01cdf
BLAKE2b-256 2a9827263905b50c65715d8391c1facf15651012ad74f7b2b95c4c31376fb53b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.884-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d62221cf46835d592c53ab17877d6b5b06538c61c45d83a5d04497d9dbb78e4
MD5 fd12d43cc6691b284de13971665cbca4
BLAKE2b-256 66408a05e1e47422a12302ae3c15637502f12bd708eba342923d56058c4cab77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.884-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7a1e67dac2a0da7c1972847a198c0edd1d0f17691fbe1e52f7a2fc7d9ddc4b29
MD5 e7b373a9710ef1667437be2da9587535
BLAKE2b-256 abc6b25a133087d60d3e8a71fc9c6ea1eeba26e9d10bde8a6d907976b8f97392

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.884-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.884-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8ce1cebb2d04253627493766e4345029502dbc2f000ea2bd7b6880677be703db
MD5 1f08321715b66753db7e653302862a3e
BLAKE2b-256 09818812ff68f3e35087beadf88026593daa5ff0d18c2882cf69bd8741241ac4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.884-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.884-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 31831bc101b1e6cc42f7c4981a0aea887ff9a1041e68f866bbc014752623a897
MD5 73eb4e20a71368575b4ed210532c4994
BLAKE2b-256 a147e079eeb9c1307b28e3038606e2a64fcb0b14451cf00c9a43ce6d2fbdc873

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.884-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31a27e10f3dc5e6159839f2d68052cb6177a30396f8b61d325e2a090fda94e26
MD5 4137915088986bdb21ebebbce31e0601
BLAKE2b-256 e7e1b6c9b5f08a0c352641f072d452c9fd4c7ff0d1c6adfd3ba71853abd7a494

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.884-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9bfda36422a8d958b40cf1e97404db57f5f3193e60d11ddf2b63b7451df1a0b6
MD5 6719f7777cae92ee2b2b407c8312855a
BLAKE2b-256 65bc91e33d69dc102f4ac513f2387dd3991599193f5f9ed18b33f4d2295c4b07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.884-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.884-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6d94bb96ee0c0cff099f61c9d66d4f9fe0ad0ec50041b7065dc76bb3ffb9252d
MD5 7c09d3f17a79e92861e4e9875c733912
BLAKE2b-256 23b3fdd4866a2675f63bc0b9c140452c82059b046f3b2ff816057648bff91790

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.884-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.884-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c8f47e1f727a4ae10379805e411705b60e74e182e8ae16aefe412d03f91301de
MD5 1fd1deb1111112ced1b1f0d2a2f878f7
BLAKE2b-256 d690be785889c41e97bd27e4a7d3371261e31a25c45ffa492174f9fad84df0d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.884-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f182d00966e3c4d1fedb27ee1de9cb185d09f3e1ec6794e10a683a68b8a1645a
MD5 d5f2f0ff04caf5101ad986a5237a9893
BLAKE2b-256 afa44f0e70885c2d8a6e78ca70e52380a663d9c8d5d11a4c367272db4b306094

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.884-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.884-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3471e73a92c34abc0f6a256ca0acc02f561fc0a1eaf44ee956509f86a5767767
MD5 1dd59f0c580ab5a90714142b3d4474f0
BLAKE2b-256 29367afb9f38c71b0c6c9f134b2a927dfffc807c4c01b23eae293e0e445bcc1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.884-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.884-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e8f31dac6bd6a9907d192379512966e62b5015bc56b766d4396f1bf496a9fda5
MD5 a5290271d88d7d7a312b59577a098677
BLAKE2b-256 2418ac7fcfdcdff6a6340ac118394234ee3810a9cc25d44f61d5363306db0365

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.884-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.884-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2f2db3a7e959138ce90cc78d0b50860fd920b01553bf658c01da07ad70d5be9b
MD5 93d9d1dd0c22e45e06c64ae7b1a377de
BLAKE2b-256 ecd74e58b837edb312bfb0c141af1c28014842f9d75cb9eb817809ec8801860d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.884-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b42bdeaf72a70891b23f3f007387e2922f8041922f64db8163909641323cd4b7
MD5 6135224d47fbee98622a198853005376
BLAKE2b-256 3789d6a6130562757cb81a670e49138b54b810aeb9c24f0108a539720f91fc08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.884-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.884-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1f3c72a68029b84c52db1eeea760f76e939da430f30f819cf98daf19fcf0f4c6
MD5 c23bf20b91413781f1818b901e26f1b9
BLAKE2b-256 e0dcfa21fb387947ca3dd725dcbfe5ca61f53d21deef168f7b92ab49ca1f5a10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.884-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.884-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fadfbffcb2864136418edefd04f848b0262d2c7de416a8b93b322800a0b4bbf8
MD5 e99fb0f086efa2c08ffce8670005f90f
BLAKE2b-256 303b4465ec08670c852d4d3e243e21ab54145ae7599c8d4aef36bb96e4d13ec1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.884-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.884-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3ed8fb1d4e3437b1edfb06569da61735ef481b31fa58851cc33fca4199fddbe5
MD5 ad188295a71e1cc24d44845adf1ab9c3
BLAKE2b-256 af0084041780fd71e6cc1d5b71f04f20520f53257e554a6011994027b99d00b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.884-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 13c3f0df5bab2ddb221d9b332f37f96f2670723947f632d82bb19faea3952af2
MD5 e64f07125a69102f7438d1817650e399
BLAKE2b-256 3475e076c54d8bf2acd329e431a573f9e36bf517b3bbc73851273eea3da3bd35

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