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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.636-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.636-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.636-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.636-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 11871ce15bbf29171d11ead535ead24f035e52c320df78619e02f8d07f55e005
MD5 a77975faa6e9d0cd84b09101fec75f58
BLAKE2b-256 d3fde12f83a5e8cb4c7d3d841f2a9d93c6f2a3e84a565a588132a4fca4604e49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.636-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.636-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 78c2a47e9e711d535bcafe835201fa98e97ef8036f123f81a42b479d211183dd
MD5 2b847d04b7cc88d064efa39b9b7cec96
BLAKE2b-256 93cfa9b4baeb8fedf09c1f91301f31427b805c368960acfad0b5da0c6721328b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.636-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.636-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3ec2dcf3965e5d63a29eeb527c25a20bb2e1f2eb6d7d8fbc52bf8e5bfc098e12
MD5 f630f365e67d46297f04d4d7e62bdc11
BLAKE2b-256 71a315c39d78fb5fbcd7ab051041ca51c0982407f29dcbd3990648a33bb4937f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.636-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbe2c91df2b13b6740e58f03ed17eaa28a939d6e3f6967b66771eb1216ff4abb
MD5 3b50e7f9d08af38697b077cdc81fecb5
BLAKE2b-256 6d5d8faf5433c3b95531d7945758b540b0cc5c6ef79195f5446e3154c8b0d5e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.636-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 199144fec866b77fbc654676d9a8aa30fe6a72f9e66c20a4ed0adab582f26d31
MD5 01bf65965629251389a6e9e6934c095b
BLAKE2b-256 ac68bfe63e0be242a36bb921e974e22fac673f6cb0c06968f055136bedf435bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.636-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.636-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fc44ee8feb0a13a8deea33246424b67a428e52be1be671139e81247f6ab001f9
MD5 177b045b8f8a6b4412297ce7d0aefb10
BLAKE2b-256 4dac8b37bd8108f8967b50c313118f038e32f9a8a213653296c9b4ba3a67cfd2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.636-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.636-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a9740a4bf48d098b58c761a3a3e1472b3d7ef2f8785b4dbb30591b53338f9679
MD5 2b7be17ff714644695077a56855c3a63
BLAKE2b-256 e8ef5fa4af5ae959298155e36ce267c8cc999b8fb8e2fc7a56112033bff5bf19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.636-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 693611da94bbd81cf31df1106d9894ecc61169593d76d352763492f098160419
MD5 5dcc9a83468dbe8a2c466f1a820bab4c
BLAKE2b-256 2c83d9e297b3a91f6878cef3a83a4ecca7e7c7a5505ef8515b7c3e9e449cd37d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.636-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 752cf4c9d728c2a0daace806eec6ba6496320802ae8836325143033db1c4c9fe
MD5 b07f64c5496b3111a8bbc7be0cc7b646
BLAKE2b-256 a6cacf274448282dd4f4dd150c17062e462f93856a44d4d61f2bdd4ed37bd911

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.636-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.636-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 26e66be2f351d13f88da048004723eeeea91cf533ec71fcbbe148f6b4b51c61f
MD5 41375e9c53a6c6c7c4eddddd230aa6ec
BLAKE2b-256 f0e6c94503785e9eebf7b99583e9d0d1e74b19f07e31b2a4a2e5749aa45f0683

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.636-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.636-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9f66dbfaf5a8136f6c3f7d76bf28d05cc789fd642684232b2be990f60f9a4e9e
MD5 cb5bd8647bc2ed4582e4311358e311e3
BLAKE2b-256 9712b40d3497f60842850c1990f152bd99de0284518141e79517924ec7870a87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.636-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 69c64470168278aee105b2f62fa9d4cb3e775271b5a42c9a71c035709b575582
MD5 de3f095e8ef1b8a4f736f8afda5f557e
BLAKE2b-256 ab2728377db10ae60c6fb9903d898dbea72c41050961483e773560a8efbe7778

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.636-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.636-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7c8324148e3b1be225b16d931b14fd3837a7e6d6745788a886b74bc3fe6cf670
MD5 e8f409886f2e473b1fe638a6c241ddc6
BLAKE2b-256 5fe40c3ddc203b3a442f0dcfe9edc27edef2f6ab1139a224faa0277589fe5635

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.636-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.636-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 37fa7d4130ad135fded617c27bdb3844c79cc9160dffc28023b71b54196b39de
MD5 0b978be985fd53787f14468661c1def4
BLAKE2b-256 2b1c808f84fa11fff58aa149da55f7856518c8886302abf984399a0e7917dbbb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.636-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.636-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ab00fe1e264375b7e5f13a0f31209e3097c11d978f5ec88f47aecbfa7699c914
MD5 192a2fd9ed1049aef81f70c69e34fe25
BLAKE2b-256 76e21b419ceee6ce2b032bd525c24ec94e7a7dffc0aea84676c583c13f4d8946

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.636-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc2f097ba6683010a8cb15f119b7759ea520ef839687ace0926f363405da2c97
MD5 11393c2999930e9e7e37447cbc0f4016
BLAKE2b-256 db2670e478394ffcd729c3029da67bb8cb0eb8ef68370103e8efd464acf3bc42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.636-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.636-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 39315314c9a5edd817e02635c9250fe01eaa91460739dea2842ad74bf18e15a7
MD5 12ee23cafcb61cd1b14226e4cf8a5594
BLAKE2b-256 cf03aa5aaaa239af2a1366db91c12893c159277edec00efce6811d22acf6d23a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.636-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.636-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0120ff8397af4970de7305d8db63f3b3bee13c0973cb6cd699da6ff1bd0430c4
MD5 cc795d4f39001d1745b2bc0c85f2fe23
BLAKE2b-256 53e95e234177b4dd2439dd638ba9a31c3ad3fb09db021e6c2a7b8a13de435317

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.636-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.636-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7e1e2743bc03b1f1974c0763f88720dd62654302c1fb7710cc41878a31c27fb5
MD5 a666d235696c0c3bd8e6d8697096d38e
BLAKE2b-256 27a777db46d4d1bb0488eae96ccb7abd4a4a794ff586576e59debafb97a124e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.636-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c8b537d78e4e02b40581ab36af2510debfe24f313e31d6de2dc1b588cde8a5a6
MD5 6b1044f63eb05a897462ba9eb5b29363
BLAKE2b-256 e8c8afbf9c19b30ba73e01edd1b63ec66e43afd5452134e134cb69c49f3d4959

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