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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.203-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.203-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.203-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.203-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cfa44b6f60a4095dec0cc178801ff723fe2f4ccfbdb80553db87ae07aeda24b3
MD5 2116aad9c755fafddbbc30c437f50a71
BLAKE2b-256 99663a11063b43c1a7c22bf97b73684e903e821cb2f0ec68e06a3166142b140c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.203-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.203-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9d940792654c145457e771b973a670e3190b1c77ef989ba7fea79bc3e89e219e
MD5 ce5fd21a05a9f3963de30fae675cad56
BLAKE2b-256 df6e7cf77f1c89ba08c1eea28f4a60d5de0eb379b9a22c35fa817492efc30cf9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.203-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.203-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f27243c3c350a74606cd7e2b8708f52468aaeecd5293fb9dc62eafa49468bd6e
MD5 ab75785336ce4fab8fe06321e87a4512
BLAKE2b-256 93bebec31b881b4b065acd1277615f67cffb5352f0bb98901692fcfa791c2dfa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.203-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2e74128ee11008d02196b1a46e5c3e77207ac1c32f7a66102b0cc8182332159
MD5 4fac9fe60645c2e68f1ee3639c06fce1
BLAKE2b-256 3b7a0bba80923d28828c0836ce8c67baa7a0336a2e530fc848636708c407fc9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.203-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a491ddef4eb17a10281024d18aa93c78e433504e4d5bf886b66cb8bd22b5801c
MD5 570c66079af5d93b48b8b9c3ce81e68b
BLAKE2b-256 28496bdb107ea1b3b20dc95dbe28d21a617db07a3c6ae81d574375ada55b195e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.203-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.203-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6ba440f84e569a64636f77de8bd4045d776cbfbe2cbdfba049924190db2bfba4
MD5 2db699b755abc44d41ce375a9cb82f9f
BLAKE2b-256 38797c1a441ff74ac3137614122f85ff9ef6d1b98b159b4e489f25a3a99b0ebe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.203-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.203-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb2fcb50d60a194383c90a1e20ac585a405e3b148f6e0788d826f46c63ebbc8a
MD5 368f724ecf5e7755726c436024955206
BLAKE2b-256 98825d16aae777ae1e8384ab28fd01fcb1a3eceb3028427e712cfd1c984c6dc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.203-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11a6770e4f42f5a2dc2d6b5196bb1ab0bfc0474e55a9a82365a0cc4b7dc48563
MD5 eedac9d1fb439fe6fb2e03451656043b
BLAKE2b-256 e44b8ddb6676851d5092e6e4aa3fd5793b06dec841d5c008ec2fe0225df247fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.203-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 912f39514b3a8026f09a27ce33624a1f354febdf30280765748a1966204514c8
MD5 f5946e205912decf175bfda9b3e4a43b
BLAKE2b-256 1c25a6118ace201c3bb4ac54a2fb410423b94541e7aa8ac7d805ab9d0b516448

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.203-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.203-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bc2a8951dcd801216d318dbb00ba8be438c4d26b261d4d19c35919d256d778b9
MD5 5baa7b434788ae153ada7fa67a37712e
BLAKE2b-256 5bc5da4d7b9f4e6a9207e7629b923ac2470bea6db6b1f2810b76826518739a96

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.203-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.203-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5a1a524d379223bd47c211ce6cf88998284cc2ffe59d74d32e7da8a7b4a44787
MD5 2b32acd154f26dfae0a02e5ca0c41e5a
BLAKE2b-256 5ed934049694cf03b4db423ed6787d31f997a39a013605fe76d87216c81e8cb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.203-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc4a1e4b8edab9e507c30263c9fbcf8a5713e6d58cb77e5ed91b954c254f3bf0
MD5 61a9551c13094d42382b2c7ea495b247
BLAKE2b-256 aa1657e05b00bda184a0d51d1f2f620d1b55f12e27466f87cd62ad257784c497

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.203-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.203-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6f3db7d95294a118599274da297f9b12885d9f52e94173f43af6573903ccec58
MD5 77f573a26a7f20598acfa8a9573f32bf
BLAKE2b-256 1c901728066d1f33da2c44ece4deb21826141ce2cc88edd49ce19c6006e54d9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.203-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.203-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 de62854bc0609750588d02de393bbe845d467c4e9f04b7ce4718e433c92119fa
MD5 79a646c428e33427933d4249ab097439
BLAKE2b-256 388f5f288f930c83cef175d80fdae2af0d3c1ec12053c460e0306e5ec49a62be

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.203-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.203-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5afb2dffaf76789cf90771ac2e68fee71e8d85b6b2f513349b51e64b15799823
MD5 f692a23f6d93f65ed947a70b16374f3b
BLAKE2b-256 5393c53e828f12b25fae99218693cde98f07351b9b052c2312934bf7d0e31747

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.203-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff0b6b10b7ffba35d97f7ea7277ef53682b227417b6316e6b915770f5011077e
MD5 b69d6029086eea02c1f0cc9daa016759
BLAKE2b-256 875299005cc118cf6df0ddf1a6ae396e5586d848e16b483af59d129ea5ebe565

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.203-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.203-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7a7753788554fc8a96105d24bfb2aab31c5e4ab3954b601b19e35a4f705f0aad
MD5 327d52d2273a9d637f20da6afa523ab4
BLAKE2b-256 53ebd85d739ff5a4c547fb24a3dd68230547b966fd5654abccfa78ce93c401fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.203-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.203-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 aedb75712e43823516110ed6c66ea64507e99c091655a4fd35bd678cfeba283f
MD5 ee79c79c19de3982f1040b58f493b75e
BLAKE2b-256 4b58001953c6f0f7b3fed5651421c6f7b2c4b47fdff310860b5b39a5135f2ec9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.203-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.203-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c4b0eb1761acc8354c95138107a8c5e09243c3db50f6b59c7691346e1122e1f2
MD5 0394717a3f800d42921526b495555751
BLAKE2b-256 c8e4f7cb9ebb25123146958538820c51a265a4f0b86bcb0c28793e6eb231c2bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.203-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f33390ac9c3fdeb3e80c0ef0107fe8e0f46def436f99e9a3cc8a4ff1890b359
MD5 6e751250e35360d489c9a079462ab3ae
BLAKE2b-256 a9b2c68f33b5b5ee11c7c3f7ee3bf7db00398552e32b9d913633be7811f7a17e

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