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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.55-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.55-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.55-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.55-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.55-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.55-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.55-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 124c280871f2836da8f06b925a79c71e863abf9ea9dafe33727e63be90c7c4d3
MD5 044dd55dd8cb9d3ff24c590fda59e243
BLAKE2b-256 7f6d00afe196c20cf28dc33fd5f8a13d63263bef42f6fc6c952ccba926603698

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.55-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.55-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 addd4c4ea212ac768e512b1b369a2216e16796e4d36f4e4b489461d9a9f0af71
MD5 69b56881e274b5119a367b3d087d6b8c
BLAKE2b-256 3483a8fbb9757ee049b73b6f5e977f7816f47d585cccd5d6667dc52c18356959

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.55-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.55-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e90b951d6a06048abc1fecd8ba9975eadf4fd39849aef744747257f65b2fa5e3
MD5 cc556e295f67022ad3a73b07f2f4fcef
BLAKE2b-256 52322720ed1a7e07a937d16ff52cc0f1e3fe98a46e1e2c4d8975b137c9a420c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.55-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbfa970ac1306dedd8b236af3816b53d7fd3bfa6698dc92ebde453c2a1192996
MD5 487b2f81b2e64c97c497bf2e2050ce02
BLAKE2b-256 813b55de309618c968772adc1d80b189e36bca1177f63d640bc1f7e73a0f5369

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.55-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.55-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8a8e450792f2f2be4758dfc9c4ebf2b86bfa1b2acc23bbc83155b3e21c75f0dd
MD5 e29fc8486d12a24d834c8bde94352dfb
BLAKE2b-256 f3918079bc2f3b434c8a57efd582ff78864c410068d6b8b41c62feeae8841fb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.55-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.55-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7a164210ac5af159308165444852475109cbbcfa1f824d1f344da4584ef8a8c9
MD5 4da323b78d8438289e0932b4886191f2
BLAKE2b-256 e610c809be4ea14d6f2fd572df64fd3d7587539bb6c249a53133528d63b366f4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.55-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.55-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84499e40d1692f703c39eca8684655ce3324156dbac82eb4d44f78e5b0182d86
MD5 b352c494e0705c6c8e7b4b78c75eed49
BLAKE2b-256 f7a5c56ea6c935a26dc832d9f160a172264997404c1c9bbbccd54202dbed008f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.55-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6f73b4f6c136c940bcc2ebe578a4d8aefa299134fbc961661c5d01ed16d524c
MD5 97a4e010e753daed9d2b24a8ee9db642
BLAKE2b-256 2661643e99bc2a33ba0d2f8676519a33c55755ca7069e38c6bf21a6a1ebd3a76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.55-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.55-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 06bc9079925735384ac2fbdce0fb79f8bb8af13ba260d3aa28f61b3b5d1390ba
MD5 917c4d57885fd9a8726cb86be404313b
BLAKE2b-256 3cb2f3de27b3779e3bfbbc3f954405c221b7746321ec8dee86f1c5b11d28694d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.55-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.55-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c1c402b466969a5b6c789aae5b3732e25aac341bc903866d46360d395d6247b3
MD5 cbf769bd28b9ba533dae8285970be4f9
BLAKE2b-256 6a2cf4fe80b7de4605863ef123c06d9c97e50701596a70a7194445b30249fdcc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.55-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.55-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 36f6c2ed38c754745017371b124ab3716dee872c1cd13c1d89632643465ce340
MD5 cd5d37815f98e39e32d4db5a269afa10
BLAKE2b-256 1e6d3be73184f10c4301eb7e6be097523acc4505c6c2bab1663b4fb309af8d8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.55-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9e3a2918811e7057e584ec7ba9c911974a0c01e89bb4e55f9896b25639783a0
MD5 8727310c47a2906de28d7e7cb66e3669
BLAKE2b-256 0c140d4f4f22ff25c964a710306f09ac82e5fde66bd2eaf2cce1e8e7c04db152

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.55-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.55-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0a2cb55a0cc46eb6f79c13b80e94210a3437e678f66c976cdc4240882e339142
MD5 ce7c28aaf134cbc6543fb1a178300c7d
BLAKE2b-256 88ce05bda37107e7765d70d94086d14c070d0992a1e49a7853825096a07e4db8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.55-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.55-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 44f8cd9e7d80bccb1f8e9ccf0ebcd544be2388b33267abd1bff9631623db89dd
MD5 614fdac4b5a54a39b74a8fd5cd429d6e
BLAKE2b-256 a4a1b17d89d675daebff4b071f13110e629e5308505308a371c8782599c6a087

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.55-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.55-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8d8a94e3c4973d98f1a3fd1e19a16d74de6c3997e11e4907cfa9c8c71a6604e8
MD5 163b6705c01eaf11e644650defec6018
BLAKE2b-256 ee0c1d157da5fa50afa222d3f155e4998229b909f26c6ea8a928fb1c4bc52798

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.55-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a5f6df47cc3a83f93005edf3a6b364097537dd3a0a7ee1f30e53d3cb9e688dc
MD5 f9f1ce3bdc81b19df088f05adadd9b71
BLAKE2b-256 a8e43404e8a44487fc05f49445c968801f340df83ce7dc4dfcb027f19c71387a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.55-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.55-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9aea725e29525bd85a8f49dec870161a4f9a4ed6d402258a34a70ef9f17af830
MD5 2d5b26aee28a303b049628bc14f23589
BLAKE2b-256 04faf5fb0eb1c0fc57c9ca85d2646c3e53055a3f9a1a95a72c79c352b15f4fba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.55-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.55-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 532e09963a425b9f5b9e57af39424c3b1141a69618fa5697f567f0db569d81dd
MD5 64a01f5b33efa6eddc4c31cf619455de
BLAKE2b-256 f410a0168354130a9e3341dc8e40f5eabb435d70140aa7d7384cf3e95d2e992f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.55-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.55-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9786a4d400b5f47b1c0eb5550c47279c77f60fc5cfe8a7fbd3502cedbeab3743
MD5 0a27e5a2fc6bffc6c494aae7453d5ee6
BLAKE2b-256 e190d4545d378b03772f0c791b367b120a925e40f51756ab4dee996168b03420

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.55-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb6ff0b57d1a760dc3971ad509cc64971cd53db5a30ea8a60dc983d0a993e1d6
MD5 be21ba40cf94bae8ad023a9f07309151
BLAKE2b-256 1ceebfa7b352e5ba0175fc69377d57bab5ef2c4161c633c696227bf1fb6d18fd

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