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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.5.10-cp312-cp312-win32.whl (119.6 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.5.10-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (373.1 kB view details)

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

simple_equ-1.5.10-cp312-cp312-macosx_11_0_arm64.whl (126.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.5.10-cp311-cp311-win_amd64.whl (123.4 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.5.10-cp311-cp311-win32.whl (121.0 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.5.10-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (333.7 kB view details)

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

simple_equ-1.5.10-cp311-cp311-macosx_11_0_arm64.whl (125.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.5.10-cp310-cp310-win_amd64.whl (123.3 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.5.10-cp310-cp310-win32.whl (121.4 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.5.10-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (323.0 kB view details)

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

simple_equ-1.5.10-cp310-cp310-macosx_11_0_arm64.whl (125.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.5.10-cp39-cp39-win_amd64.whl (123.4 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.5.10-cp39-cp39-win32.whl (121.5 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.5.10-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (321.3 kB view details)

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

simple_equ-1.5.10-cp39-cp39-macosx_11_0_arm64.whl (125.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.5.10-cp38-cp38-win_amd64.whl (123.9 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.5.10-cp38-cp38-win32.whl (122.0 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.5.10-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (304.6 kB view details)

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

simple_equ-1.5.10-cp38-cp38-macosx_11_0_arm64.whl (126.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.5.10-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 122.7 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.10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 35ad3a83970870d3a3de033fef2b480e08022d17707242f9347a38225e06cb7f
MD5 3f51f80d26a02dd12b902ddd0251fa43
BLAKE2b-256 2b0f8b7ba1fccb5517fe64d3ecb7ec5a086f2d69818f16ded9ab309472e1f22d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.10-cp312-cp312-win32.whl
  • Upload date:
  • Size: 119.6 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.10-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2514b785bbdd11de80e193f0847c2de4fad283703d51948febfa4a9fa475bfdf
MD5 a90ed2e4e7edc8b5e9aa5d1ca8755cbb
BLAKE2b-256 2c497180fca082d584318f95ac075659c0246b6d4caec4988405f4ac64c51fa8

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.10-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.10-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 45c8bcd5d8c1b6cf71d3422a81a4eff2b095a399e15706bc9af3fb2a738c1a2d
MD5 41112998c7c40781c34bb6a72686ba20
BLAKE2b-256 fd4cd2607600761767a4ca720f94043a3bbdd767ef08abc11f54ac26592cc96b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.10-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61e67536257c7ae742841b40daa7a72dbc8fd902f36fa4ef26c983842939a63e
MD5 d62ae569fd2ffb41f571ac2f98681735
BLAKE2b-256 9eb6b1dbacef91c11f648b0f14d3464af2a4cb759b154cdfc89deb4720d13978

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.10-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 123.4 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.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 810c825217f2454a491c70b2bef35560ec810077d4a50770774ec38956c85aec
MD5 15410f40c32b4e6d2d36f5ad9ea7443d
BLAKE2b-256 962a4fc4c6dceeda21cb0c9274718829f1a6a3fe982969dd3212b41793efa57f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.10-cp311-cp311-win32.whl
  • Upload date:
  • Size: 121.0 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.10-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e29129658008e01af2eed6a59b9a83b8b3069b7f6bdd8bd1f35f8b88107114e6
MD5 4760a5abedca8655e7853df8d5666e74
BLAKE2b-256 f929e289fe18da3c1121abae85330e200ed36ab187951b8f2d10ea2cdb037610

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.10-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.10-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ce933c51d82309d610886694b741e103119fc21f2d5b2afcf36cf87fffc5136e
MD5 c723115003ef54c99842e0d2a13b8525
BLAKE2b-256 ad5e5f094f892490c670e040352d28c657ce433c7d3bb6e3b981a372914a7f0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.10-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04ce05ea79e79ef857125722a81e972946e938b2d616174816d1b895d30e32a5
MD5 342e1b3aba43c26ca1e889fe18a602fe
BLAKE2b-256 be85e38b6cf029ee1a983446e054ae4278a3687c65781c5013ba154fff62ae88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.10-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 123.3 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.10-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e2dfde5c6f1011e02df5a4147c7a43457a834e1af8ebf7d31e24948d195dd057
MD5 11908d1353db4ebfb147d6a6ebebcdcd
BLAKE2b-256 5be15bb1d63d5b191cba855b3a8b7b7934fbe54e6bd322969b5b8215c1afddd3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.10-cp310-cp310-win32.whl
  • Upload date:
  • Size: 121.4 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.10-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 582cecb4a7827d3b79d81e4e51e353f680d2874bc8ef088e67ff7499fd9a04c3
MD5 2b083cf52384b8c3c877132f98144f36
BLAKE2b-256 0fb7f61cf771ff0c233a4cdb40ad534c033b322f9c5ff93d394d60124a422968

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.10-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.10-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7caff942b27b9926b670ccbbe64a9ba39769d33d5ee957d2a0fb65b8cbd6a11f
MD5 7ed6ad130a7f081d15c0575b15ed52a0
BLAKE2b-256 1707c0dec2633b5c16b39d1394af73ece77df7104c69f3a6ab98c62228eaa4c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.10-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11f6c3dc00f11415d0f0e2065d2274953870d94f110a57a2ca31685551e0fe8f
MD5 5bd76f91052ad56dbc4a9c3d28ad0171
BLAKE2b-256 750af23947da778c86c4f579f5059a4972e0be9687e53a3836c86e592632c236

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.10-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 123.4 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.10-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 87a47f075d925a687f898ac7eae80c0efc16f1382ce8edca2ebe8c1abd387802
MD5 dec25e584ac36623de23b3a192b45583
BLAKE2b-256 a604984422dbc6e9018d7faafafd7227b2084e0495de0017c0d31b808cd72d5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.10-cp39-cp39-win32.whl
  • Upload date:
  • Size: 121.5 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.10-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3152961895d9ab3797dc83f861c11cd8a08bfd0d11b7e92ab945fc5516aed7c0
MD5 f7e8cf533367b9099f96d223348bcd26
BLAKE2b-256 20369b6f85d41f411a9a2c32823ee7571984d62a70e4600a51e4dd79afef76ce

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.10-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.10-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b653c50453b8cf40febec11c885ec57c9a61e90f26be013f9021a23267965442
MD5 9923151cf084417c68580d161c530758
BLAKE2b-256 8c1c038deb3e90690c188c18ccf4372f848edbe987dec3ce9d6e86c1c70adfe8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.10-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1bcb461a2c28e1e70319691a23b696c153e2b6cdf71caa82aba761fe4e6715cb
MD5 a9d7568aaf676183aad92de774fa1a1d
BLAKE2b-256 722c9fdb2533add52d44f9fce2052a938c75f2cc079e181abe3e600c187db200

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.10-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 123.9 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.10-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 752935f31508220a888908c68953eb20c5f2d7fc4a3c6d4972805888b77a9d5e
MD5 ffed1ef811ce0bab269769047741b0bd
BLAKE2b-256 99fdaf1869768fc6909ee224622385cc7f2f961769b5aa523a9586b3bd2c8755

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.10-cp38-cp38-win32.whl
  • Upload date:
  • Size: 122.0 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.10-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f35619221581db3df949cbf561e1202d1bc5b541c02665d0c3d003bb1623e4fe
MD5 740772c2db3ed610ff92eeb499d1fd17
BLAKE2b-256 e660095ded81df968600888fbb90b50e37d125d8e05a921cae3671a6cec44af0

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.10-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.10-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e998fa8e5a97d53a4f0e4b0f97d5a3314c158280aae996e4f01a5072746bbdae
MD5 3c8fb22b748804b54390fa95cfa24525
BLAKE2b-256 1e5f5ed595fc21b18088789f1f8fd6eea1cac6a3c2dcdb94cface80e79bfb35f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.10-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 444f569a1d1f1f858d187fb91e7196d615cfb17eac1013dc8402a13f74b6a629
MD5 a62663def2a1a3ec8a6a8018c1468d39
BLAKE2b-256 370bcee86615abcca00f527c464416950231fd93079e4f11957ae604a14f2885

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