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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.48-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.48-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.48-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.48-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.48-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 114feb7c915b90f3b8793acd75decccb9071c55aa63816adb544a2253a709fe6
MD5 bdfa4d33ab5fb77286070fa5e83d6d5c
BLAKE2b-256 14f174833d98169cb3d22f9209c84990c638d96a713dcb8232d1b9b347d931d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.48-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.48-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4efb70a57a3779fc138733f9d1ac1c9da5b448b872ffbb4899547f77c4e205b6
MD5 5ca0a8cfd5d615aba63fdb91245410ae
BLAKE2b-256 549855bdf8cb7764744aa61be5fe90870d46b5d58d8926edd9db1f11a4fe87eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.48-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.48-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6db88c2f565e6b8379aafc326a486156d082a9267b57f3f5803e80cdfe6e92d1
MD5 58c207dbfce3d04fd8cd5a4d35787f72
BLAKE2b-256 bad705b2fa9288baaa7f4db009de76907409f1dbddc6c7aed842fb9450b5e52e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.48-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 529e51792ec7453cc4a5aad1eb03ca3de71ecfeb90fef5fb9dca05501edbb0a7
MD5 9b8abd9e34c01e9f1fb3ea0a777e9786
BLAKE2b-256 02c2eff9e0642dbeee244ee733ec1011e58c5f3a370215c9cdbe41bd78634b67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.48-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.48-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2c1bf180d5a46224cacbbf07c499c528a12f536cb7f18afcf1ed861758a3bbd9
MD5 7a20a6247786a64e0703caf99bdf0d0c
BLAKE2b-256 3cecb9249f1965ba154be7421e9e699dd19a5436a2ed54b068a74d43cae3d7fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.48-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.48-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c3e6113b822c513ecffd06ffa5cfb2cea3b30bff8192e1c1ff3148bf27b3a76a
MD5 1889c38ca1f775d46afb043e5585c0ae
BLAKE2b-256 9825cb32840c30c5ac46ca6e15f11700963a7db1d95b16bf21a41b74d5a73f87

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.48-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.48-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f6b6be2ed9eef37e9dc9865b2fa369087da30f94ae4737a103413166cd556a79
MD5 cb380644cbd7cc22f12de51538395edb
BLAKE2b-256 2d650c1f9880978231d2085582bb048991dcbcd258ea7790e4ab8253508fc444

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.48-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86e9d193f431b16bac6e157cc058db3b62668501a1ad764727a68d9d60296245
MD5 1f781e34196202401d00aac57c7bec96
BLAKE2b-256 20e779da2fb9c913be8f01e256b7df36aacc31c241c0bee369391effcede30bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.48-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.48-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dc90ed559cba4bdaa2328e5c19695d2de908db42b1c227cae617a6262e2429c9
MD5 61c40797ebcf7277677b9cf34d0a08a0
BLAKE2b-256 538e30d0aa68fa8a3a31037324b28c2e20c985051a14e2112088f1cbc8a6e0d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.48-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.48-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0125c8847210155909a48b58aebbebafeadc4aa560bb67209b9156ba37e4b31f
MD5 1b4c18fd9e7ac5ec6176324c55aeaf82
BLAKE2b-256 c0c3198306f348257ada492a321748f49b34ff2c92141ed17021ccd08fa60903

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.48-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.48-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 072b0bbb4004f4147fb3abf4f60c7dd2c3fecf6d0f6419d294ff25894c9dfaf7
MD5 8ed0c6e903487f6cd5fe03d868b1708e
BLAKE2b-256 cca389046ca73ccd10c7cdf4233eecb7d59b2f0312743cb200b16fc3ac0d1cdf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.48-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4ab739c8fde7ea176e2f6f57bf3b09dba4a27f6a1642dbd8c3e54bc1c27d165
MD5 1041727f19088ef6f9e45b346394674e
BLAKE2b-256 2e4c8fb3b161a6fb8fcec76dfaea1638a1f7471a57a5f3e78b1c29a0df07d588

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.48-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.48-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f63400dd39e49366881b232e53308a7da09057e5aeb1127f32fd73353bf52a40
MD5 84c3b4f1c6c0084c6d2cc92151bdee10
BLAKE2b-256 a19a5da0cc6e9c88887cce421f173efcea650443e61d39f59cff20d23321254c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.48-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.48-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c687bf1af801ce2566ef2d0c0eb45aa99910d42f4280fa1defdc0dc82bb6f9ad
MD5 96ef2b0a42278257e918cc959f355728
BLAKE2b-256 6de07e185b855a86a98caf7c28522611f5628986f87b11806668a0234743530c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.48-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.48-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a5bd044661a3f0a5186d64fdbcf8442305bc20892d8df637b9a55c5395e8e5eb
MD5 e4df1caa5229a5f1829fb38d07e8e69d
BLAKE2b-256 eeffaa8b513d6b916862b6f2e12aad0687b539fbec55364d3f7214411c972699

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.48-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27d31fdc67d2421f02a260466ece267f566c9205c445fba73d00941e9bada16b
MD5 85e0fe149815ce60ea189782c905bad0
BLAKE2b-256 8b52bbfe4841e126072b72d89ea0157256817b3c17a696c26768fd549876599a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.48-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.48-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e848c224fbc6b5571460a026eedd3193398ec75313b3bb351fb907a45867da57
MD5 efdd1a597c80b0c9f1eb73093c544537
BLAKE2b-256 ebede617ef395e2cfadd4b15203e5f20cfafda9afb1c6833143fc6d6d334e52f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.48-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.48-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fe655f52725c206f01a4c51441ebaa81e297b5bf00aa3e50946371d39ab5fb4c
MD5 4ca5feecf574729a71a167c490db1079
BLAKE2b-256 f4298355f98944701d43bbda031b3b03131bd9e072c8697d32e2f76fefeaf0e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.48-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.48-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7d08c7c3d832058a40fa852c7d48d879f970bc9a2a850a93fb5e7b6674fea38d
MD5 353e1cc734fcb5a4c047fd8b3d7e6445
BLAKE2b-256 0357695bb716c4bc6b3a6bacf93496a7efc111ea91a7652ad1fb4bd4dac964c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.48-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2d9d7cdc671f1df060dc4eca3e8d162481a718402bfce3a499805ea795f8a50
MD5 bf54d9b3669c48784b8b34c9c3b391b9
BLAKE2b-256 11f53066c4804b29f9d08b54dec45690fc44d03424c2dc9f6d7622e784fb6b39

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