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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.259-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.259-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.259-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.259-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 934dd7ef521743db7eb1d8ba652d91b0d93bed15b6965bb9c5d4631430a57543
MD5 6bdf924f3aa0aea021f19c755bb02314
BLAKE2b-256 93db06879ec923de446ba393223ac759614ca3cb3b3b3faa97b933cfa3d3175c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.259-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.259-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 815ac286858833f5e7288b00d70cdc3e9c4a7fc97977cae6c9c99e52b5749b51
MD5 b1ad5b3b325d3fb28c1f7855b3d104dd
BLAKE2b-256 b0a4b9b874e0d46fc37e3d3baad1e0a18d3f0f80ede03c6b92b2781e2519820b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.259-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.259-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 47c66ca471e5ffd949d101dc648f44362f742a3063287dedf4ede6ffe406a0d3
MD5 45136deb7dd399050f3b7bc79f409f6a
BLAKE2b-256 4ed296fd8a5eda129e0f3eb151a52d8e713ffc221a09c9b609f8f2394b533202

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.259-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a9c93af45371052d779fe58a68a3c02b9938615338af1f0ee817514237255b4
MD5 3df5680f07f65d07ac72bcc4dc25aa68
BLAKE2b-256 104502ab04e17fca6226c45e4be12659ab2c6a8856f007b8ddb5db3bb11c3475

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.259-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3cbd5bf23072709140204c10e9167fd2ca08daafd54c1964465dd01f7b1f33d1
MD5 d5a225f0edea3b839e3783989afbe9e9
BLAKE2b-256 00bcb8e491ce5b69d930a471d89030908eb62f068bf14a9929ec0b012b1e773a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.259-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.259-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 115145948da9555722f771f5e541d15fcab4e97f69969d97f81841e024b5a363
MD5 65d9c2984e781b6321ef894739ec7ba6
BLAKE2b-256 9198f54c5712bf2057aa071cea91bb90e8207ead5d9084014e6efaa89ea39160

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.259-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.259-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 25ba3c368b889a55da6110903bab5c7cdde96b943d420b6f203c4cf81bc4a815
MD5 a0524dd23119947d58504761627dd677
BLAKE2b-256 770370fa1814d790b6d05a5c965889efe56f88520b96701ff33cfe15d7524728

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.259-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e0a0fedf0f182fe663c3505d6bfb249250ca251e57199c4afa264096dd85c40
MD5 4f03aea7d211852aaa08fc4f3fc67a82
BLAKE2b-256 5955993edd93baf80ec721a85ab68dc25c2c4b62f4fc79b5536b363272944852

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.259-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 082bbfc988baf616698d24cafcac11fb79d97c8f5ec05dd28e39b482c510839d
MD5 022ae76e355b3563d86d590e7dca791d
BLAKE2b-256 adfe693d00251c38b72b216adc012fbe741b9c39047cbf7f39dfc02dba125aea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.259-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.259-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f65b96d368c0b963af57acbb44dbe6dc4345d56ce1653cdcdf20afbac3664fe3
MD5 4d329c0b48690e006e0b382177588056
BLAKE2b-256 6d505082f0a5cb088c6091c152ab0d262836fc0b9babe4274d6045d0b516a848

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.259-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.259-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 de2524c7473618f3a498729f2e384d90fe10b912064ca89ae08df085e88bbef0
MD5 397f6f3149ad762fd4b667e2033977ae
BLAKE2b-256 c5b1326c9c9ae2333bdbe0a8233411598eaacd073923cc07a66ceead570ac4e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.259-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64dc1d3ce97b35beb71a406dcb9c22de0ce6667e2d19e77275c046505fbff84e
MD5 558d25bf9aa4274c6c6795de35c75e18
BLAKE2b-256 f3221cc1cedf66834d51010e9a561ca2f25f8bb6da7abd24ea8b04f3179a8829

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.259-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.259-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9e33e0eaff3ea3395c4c52f02a1c63ce4867e2569a39ed475311c831e0ffffef
MD5 cc75881d8712a48ac6028cdfbf4c8c37
BLAKE2b-256 59717bc7a4a8b0f163307b37e15b09400ce6e2f94a84cb5d6e7a0c8c62a3c830

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.259-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.259-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c07a25972eaea5903369b545fe12e2dcfd2903396e624dfc6b7b7acb6c7ecd7b
MD5 f83d00dd3bb48756b436534827245cf5
BLAKE2b-256 b2d90fd0ba9bf980df5f06925ff3cd46fdbc8ee58593d5e41923f42ba2fcee7f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.259-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.259-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c13109cfb000cee64d160ef9d20a8990e5f2709aaea50c9ccd8a047c31b8149
MD5 dc368fe4ce388ee1dec4509fcf0340d8
BLAKE2b-256 a23775b2aa743efee8d2fa3a723b242e2a01caede2e4a4fe14dc2ba7635317c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.259-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4d108cf997f2178d95611d34f90babd68d1e67fcc3e5cb60c944ee8696f1109
MD5 d8b3e24fe95e373b79d0fc7b6b177395
BLAKE2b-256 258ddb2552393b024b3499191a5d3d8e17148c9a8e795d43106b8a324953e8f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.259-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.259-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9459dbcccb21b2dcc1e5ea61ef2d5e1cdf25e8fbb4a992d81813a165bfd3309c
MD5 f5af735224bdfbe4eddfb90c6456c331
BLAKE2b-256 0ab3b4a5645f302c3ec4a0ad7ea7c180eb597d1aa7d9693d4c56f226b0924477

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.259-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.259-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 135e8d5ab38a543b46f27fc49e5c1bc6a5c8d76576b6a87d2a873721128cfdb4
MD5 91efb457c2de917243bf5550cb5f82e5
BLAKE2b-256 adc6de86b29439a23edbca805441999839bc24bac88af60522b3a8d2509edab0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.259-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.259-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a829bde15e8de07fb268a48233514db3e764bb078e3a4b2c507e2cbaaf4b7842
MD5 0fedc5754ef65fe2c71727af7b8024b1
BLAKE2b-256 32e4b75a17725d3dd66bcac6d1e54fa6cbff1be5887180372b946f195cad923c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.259-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 886173d95e23d6f3c2dcb3d97cfe9feb8993bd71fb00ddbe794f5556e50e6e00
MD5 3c03dc727cf0e296c3b78a7b50013438
BLAKE2b-256 16d721e936952546dcd3f983e0391e4e5b8c28c7a679b0032a34edb2e970963c

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