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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.507-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.507-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.507-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.507-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 426f46ec84ed7321740d0369ab50fd659f2b059baf4c160f2869e181302d3a7a
MD5 5af572d1522a09c25fcc18eb49e7c6d5
BLAKE2b-256 26f46e0264f344fdb3b4012b801c6910136fffe5b22ab8ec0c3bbcfec6d5122e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.507-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.507-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 43e82195fa98b43b787b9470ae3aa513ff42ada92054abf8c72bfe7795804487
MD5 98ec56c63b1b4c8d258bf3d950a515dd
BLAKE2b-256 efbfd2813c0024b8c275be3fa484dbc783b52261bba10665f5434a1df38591f4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.507-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.507-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bbe9b3dd76aa76dd3f0ffc48275012e7902554717e92efe80e829b968cd76acf
MD5 1f282a1ca8aed02d10ebab3bb6121ba3
BLAKE2b-256 a71c1f0ae0e62815af1b6d5127dbe4c7900f9cc130535a83b1285540a186345e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.507-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa0487e645950ae28a3b69802e1386021846d258a5d6b4bfba4aa78ab0dc137e
MD5 f9d2bc8055bc933a925496d6fd3c80e0
BLAKE2b-256 0e74e0a8ed95dd8a7e5fc7ed6c912ac9105586ff9a162d3e341739bda226a016

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.507-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fb9238d1d0882e890dffa8b0e2b1288487c121695d9ce62f02ca9df3fe9366a5
MD5 90d7c0f867a54a383bf77ddc8923d830
BLAKE2b-256 af65194cbae1eb642f31782711a5cca218a6ca0584d0e153ef5f798ccec7ea95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.507-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.507-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 02d8ef20a76aaacaf96562731a9f29eff85ed01fa986c47fa48d59fba41a4f76
MD5 c5546e24799c5ce067aad917e31bdf84
BLAKE2b-256 8b0e19b45dce7fca8fab130d5439c2a4ad8ce6b211497ec9d69e83b527c9cef6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.507-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.507-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 934402365424560e99ac9fc42c4e1df87fc4e6e28be28af435f81cf6572f12a6
MD5 12c293777846a1346a31cd821e95542f
BLAKE2b-256 c41831469128c079106ea97a9e2868b7c6671605ba7d73f3e646ab1bb1a1983d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.507-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 56a4f7691298d424a14c08e7c566b674ad1705fa6ce842b373cde1ff90d5c35b
MD5 b64faa09b0b9d4871f3487ccc7970833
BLAKE2b-256 efe269850bc42313513e446702f8e183ceb72ae4d768e4d8089a7f2514017699

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.507-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 eb5ae69e34f0d513e0caccae9b1242afffd1d7b3c552219e10491cd628c39611
MD5 6729b2a3c1911fb63de00d17997e4d87
BLAKE2b-256 503351f958541a92f17c2bdcc4ed306164dfd6625beae62c86d4bd2bb487fa8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.507-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.507-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bfaf1eed0c5a42fdb27c5ac0e6a5942bdc8290f57a556a6213e68cc2d386a03d
MD5 8b2cb376c9dd62806dd700b6cd8c9979
BLAKE2b-256 029e6087fc64c44be0858af5d2180792e24306eaa8dffc5624dcd8724639e991

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.507-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.507-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f5ac51bf24aeece93c507945ce0d46430d1867bc9df6d1dfa817ad157060bd97
MD5 5d1fa3e23e03829e6affcfa79b514eba
BLAKE2b-256 391163bfc14019ca9c9079648ce8739aa3339d98d1dfd3049f1eb39b1f7e1a90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.507-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c2898c1ed1af65e20bf699ff5a8a5b8710dd4fdceb5d50f301a2fe0b6360824
MD5 cdbf8094bf0bfeb4a1641565699fba15
BLAKE2b-256 05f1648da0e7d4a97a8a618d0aa530e02834a3becd3ea69fb57aa3181a36f37b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.507-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.507-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e0cba579d45a2b2581f988137692a87372d4c7d140b9571ed201813bc1f9a2dd
MD5 f8e9af66cee2fa4cf839d4c2829cbf9c
BLAKE2b-256 9204286f67d5d451bf1ca84107abe215805580956baad34974cac5fa81122e2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.507-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.507-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 540dd9190555d7a0808f3c9557b0149a947de823c252c31a256e9345bfa78629
MD5 567adc825c8ba9af7e15305ce792d874
BLAKE2b-256 da70e25cd96e1b3409b7723685c69632c1816d0e4ea0dfb9b385352296414b9a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.507-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.507-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f5743850de4eb98fa4193e955c79a77856a27de81bf181054982d81927f677f9
MD5 b648530534850b12aad52fd9fe5f044f
BLAKE2b-256 0867a289f5d54f286df2224047ffc65afd6518dc6add1fe19b0f8be591aae98c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.507-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 356d8cfbe18860ac1a427ddbbdebd815dd85a48f33f0706266941ae98cbcb0cd
MD5 89e565f1863a1ce796d45fb2476bcd15
BLAKE2b-256 f40eb77f4e52e0caeeca6c2e513e60f6ffeee6eb26d050587ff6e88e2e3777d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.507-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.507-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 edd2eb9fa7af7b2c3a06817823e7abe9111eb521a897d6c64b42bec11e177766
MD5 a66fc2e4a2a3741d1f273c5c133ddab4
BLAKE2b-256 0ece566da825016a7b399253f12707fdae9e54965c03982ed58a938f667e933d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.507-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.507-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 088b3f5309df1f2432dcf73f6a3bae93de0f974c70e662e409d8f60c0bea270b
MD5 1cd4eded06abfce7b109b5c380a04734
BLAKE2b-256 2ae320d69233f10fc6e8119b6cdf51336018e1c9b885c72ca7331f1ea4e4640c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.507-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.507-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 31ced0e3503dd0cf1003176234d0f8e51466d017cf56d37d0aaead69e33039f7
MD5 4d375e34d245fe3dc3496ef7e997b6b5
BLAKE2b-256 1c4d0afe03c16e820f4c64511efc1d3da78587d5421e9dc6c53663283899d22b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.507-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3024486c9dc3d91fab429b2470887e851fc8f8b00b0fdce653b2980ecbd4909
MD5 62286a820a8955ada43fbcf2457c0f0a
BLAKE2b-256 78ba2484505e253fecc2833f224f50960b7051ac6c40510af7e3afd965b9637f

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