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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.19-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.19-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

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

simple_equ-1.4.19-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.19-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.19-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.19-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

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

simple_equ-1.4.19-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.19-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.19-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.19-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

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

simple_equ-1.4.19-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.19-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.19-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.19-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

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

simple_equ-1.4.19-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.19-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.19-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.19-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

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

simple_equ-1.4.19-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.4.19-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4.19-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 48b3108339fe12253ddbd84594953e0ec4185fe66e7835b53e87d790ae12f4a8
MD5 fb22f04f41edd2b0661ff81a4a0385e4
BLAKE2b-256 0194a57ff1b163389dd63dba5b99032b3d35a1d98193b62df75e6a3e5e58abee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.19-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.19-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a9f3c3d83e6e125c0ef503a5085c125bc324a47aa0c396874694b5c4821454ef
MD5 4907248ea90f48ab7a72914914185f60
BLAKE2b-256 afdbaba180497c0ca26ae2cadceaf97f718274dd511a0cd97773f5697242af2a

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.19-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.4.19-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1354fffcd38df780a26ea335dbd40cb0fa85d9b5dabf126dab5eac91c57354ca
MD5 d03fa7d5757f29defac3cede61a1adbc
BLAKE2b-256 174801e0aec4314f2bf518e520e88add2e5264faa2837bafacbd2cc3958bee2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.19-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32156e0be8749dd4aa96cbb9c01e548da90b0c7d70a17d9aa58e8ab2fead3f6b
MD5 95e4e3a2f60f3dbe17e10602d97d6a9c
BLAKE2b-256 daec9c91408a73672585897d4884c86ff1008ca1ce4508524209e36a1562e677

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.19-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.19-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 04b7902a0a5c470097958fda5dd705be05541e0854c5a1d9d494a89ec3c921fa
MD5 9be0186c3a94d25d9fc7cd8d4a85a9ee
BLAKE2b-256 47b6c37d03d8145d1df5ac552c60d0cd21c7c9543d748a8f83daae7df8cd6792

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.19-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.19-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f9a2d6fdc04517f7276e19a0a1c84dd21952a8f9fb59ccd105c4e782d6ca580a
MD5 468135e9bb674d9cd39b69e7dd34949a
BLAKE2b-256 00f13fc12e44e5ae8c79d63c0fb7339e521bdc11219beeeed837523cac24d0f3

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.19-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.4.19-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e870d025da2aa4ea427863f6f877b2db83ea6d1a1ef7cf73006b85fd6540c911
MD5 bcfb4e4df3b07d59ae4444a38b91b9a2
BLAKE2b-256 b8ea977998f4c69e1321e64ff2c223fc04bb26a70ca5d86fa54c865d505a3d1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.19-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87b49d5da5307424ac20154685f43fe265f7614c6d346052e7dde8bff7dcb6c3
MD5 3a08e87b8b904810daa8fd9be22dc2e0
BLAKE2b-256 615cc531da9461d5f02a13bd95829c0206b61adccc8b0355792c098bf383144c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.19-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.19-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d60605509850b87f7a2b01480cb93deedcbfc5b43e62a92760f0e4ffb10073d7
MD5 3c98ab1cef7882aebc790ff4cb0d0c0b
BLAKE2b-256 814a0f1955f267b6e2c20e8a62e758f7953dbbd67333be0eb30d935c27376d24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.19-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.19-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 85a63116e5c92190bb4f4212cb464446214b47562fd6599b11c61461b73ef2ba
MD5 0f62acae127515e429b9991cfce6ec70
BLAKE2b-256 a283a75d6f879ca1af863bc1cdf814c1fbd62409b8c024889e43328c046a68c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.19-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.4.19-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 37c68ef20ce713ec0aca5c57066c30681831de9c687d6bca65039e402ccee256
MD5 8237588321d382e9825bf47949dda027
BLAKE2b-256 f81b43560b42a7a97302cc6aecbdf891f2c0c19ef6838be17d5ada0549d7c32f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.19-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 164dbcce4ff3041cf6da0df7a33f548cd8556aeb5027a88dfadb8f1738e98f94
MD5 af0d5938471d31f491809262eb7fc719
BLAKE2b-256 549e70fac9076e53e28d615a80e38489265f09e754d0472194bbc3f1e920c261

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.19-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.19-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 daa2ab24a2f2bb29d955cea0a028f6283988b885f7d3267db603d2a32bec3fff
MD5 9912e79b728be83fe42e8319c4347972
BLAKE2b-256 db91d4738fc008019eefe1c17e33c2834ec0bd6c9d909bc013eefd85eec29d74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.19-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.19-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f03f7932ba1a63dfbb8021fdced4b1baeb1b29367bf27e81527d462b4e02db2b
MD5 74e0ab4aac732543ca527087b427b09d
BLAKE2b-256 66330413d840388b0999920d1acc204cd99c9d28e400bea182733c7c67ffbf73

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.19-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.4.19-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 70230cb7255dde1b6c1ea36766d8adad65f5da70cac76b9ab55211ca1bb8292f
MD5 649ddfbe4a5938af67f7004fa1b2e47b
BLAKE2b-256 7392c140a628c1ab5f194dc9c9e8134b827eddf303ba26b76dbf56683387da00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.19-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a038ecb2f88c80736d024776d556464971bec94839288c8a276378b0ebb38088
MD5 f81742ba4b89df48d91de21f6f3f7529
BLAKE2b-256 bda6887f6c61219182154dfbf6e0b66dd4133221b399c130dccf383daca837d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.19-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.19-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 26080744095cac578538e7e0b8a79c387474aa98be5e3930969f2d9408a333b1
MD5 8442f989ce8afedb6263f2369ccd52cd
BLAKE2b-256 1f35df2401daa0b7938c946a18f7d349968061c5c1c07263be935b33a5b72a53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.19-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.19-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4e3050256186d5cb761ae81ba58bf1f7d23132dc3699d3461d31dae29c533bff
MD5 518257dfd9085cbc488d7c092eaff2c8
BLAKE2b-256 ff2c5b005328fde88a6787786abeb042294c92e6d2e478319142cb77e02e4f4c

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.19-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.4.19-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f9de477a688aeb40f6ad5cf066a4f5c55f87f5f27731d5219404ccfcbf404387
MD5 7faeca795ba048b9423879b46a3d8b78
BLAKE2b-256 8210f1b4bb54fbec55b6b8bae2e7fdbfa4f13910ec4fb79f0198f138d0c88960

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.19-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5cd09c4d41b0d5fdeb4e0f81fdbbecbecdaf1e8749c93eabebc0de69da60747b
MD5 438d0b759ba3c10563f6d10a47a3c1b0
BLAKE2b-256 26b6779fa0c847daddc386cdace11626325a1628777c40ed1909aec26cc7af77

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