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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.671-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.671-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.671-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.671-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ad26af5557db2275943bb8fef46251f28497ca71cfc040ae8e3c8829269c2ba5
MD5 78b15d8c6a9fe11f899f0dacd21a603c
BLAKE2b-256 16dedf37b97c26676a3a08b57adbff136ae8a3cd1748a0424a2454dda6ec194d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.671-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.671-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6356209dc1a94e0031192df4c004e10b2b9fa44a61071955cede5d7fa627a6fa
MD5 6d60ca66fd7059f3cb04563817ebb33f
BLAKE2b-256 fba5efea94415bea0d99a730ca7398ead9b6ccbaa46abd4337c20e8cb6781859

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.671-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.671-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 228a95ee0b2ac0bd7df7fa9bbd9f29bd37c569da837611c5d7fd70b939a3fb23
MD5 5c0161d549a33e2baf7223869e4e5a3a
BLAKE2b-256 ed328b92c32b7a4267d98f4ebc0f81ad1743db407c242dc90fd84d5bd3ff0c2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.671-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9a769b3e2702ee2ead5e3fb6310ee748790f6feb2895392612a9f32ec54dfd7
MD5 44b633c97120804e9a3fa8db7bd0e03d
BLAKE2b-256 4d5b556c7e8712614736d496cc93c8bc9c0efb889039c33096c1c38f13302268

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.671-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eefb7fcde6f1f13ca74d4cd985daa99a512b9dcddd7472dd3ae32f250398e272
MD5 c1426aee3852486ee7ccd0a85ee31523
BLAKE2b-256 d35e72788b62ce73bf2f93a4a0bea265c6b7c0ea0168b1fd4a4e4a3dcf066c5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.671-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.671-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0e810218dff3cd4b6102ae3d94519c1dc70d5f9ec27b48498a919799ce854f1a
MD5 ba43ec54db2cc0c17e01d4c162530def
BLAKE2b-256 bde0de8fd681baf46fad8fd00b920b6e28eec52f48f7be5d80b25c9d613217fd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.671-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.671-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b167904076c20487ae5c78b7a6c22cbc7a484e539a1f645ddc1b265d090d71b
MD5 3b5105e1e06e4bf57a1029ad644cffc1
BLAKE2b-256 aaf61a936e4d17cc6409ef52dae157c3d7d35a50daf27195ee7a484c30659448

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.671-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 62f17b2dab8d58134ff2373574e8f3b5a651409c5c47b51b04a93c3395fa4124
MD5 352e7708348710bc4b49bc233388156a
BLAKE2b-256 ed05e6fdeaee299800e9e41826975f95d711d8cbe213cbaf320e0a7b43c68365

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.671-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 34ec7de74170d4757f3d3f2090d1db57398fd1416052c5b820579541aa1b1692
MD5 9c8fff1b551389a2fa85e2dd169009da
BLAKE2b-256 aa537b3cc5b0192f2966f0b511cb520d6000e287a40725fccc8b3bcdc1ddcbca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.671-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.671-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5a1db09484e0db80df08febb68b2034707f51863a79e32f93160a706c88349e3
MD5 90e3c8fcb8d246f52d4da8a9d46064e8
BLAKE2b-256 57a7bf0ddfb95dcfc9f87e1588318e6956741065e126a15341b3663a86a0b282

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.671-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.671-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ebbc272b65f7af0da41042364c9727861306bba4bd2aec8174906d7e4c8b18f7
MD5 9a534855def92f6354b4635489e4fa42
BLAKE2b-256 383a5aa0de48201be7047e895deaf71e7a515be4d7f6abedc4bd13f6e3869e4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.671-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 338f93ce9f7a1781f8352888c2553acbcb76d5e11779bae838d3ec21e150a661
MD5 ccb64cfb8161be54687aa8c842b83c54
BLAKE2b-256 eddb3f5c122fced531318fe3688b13f8141b3f3ac79b9fc7024bab5268b0e846

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.671-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.671-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 23ee20bcd24d42271a68bbed4c2d14064d02d9cfd566c8c54706e107ed1d554e
MD5 ca7fc5b83fcc88a7f95eec8420200afb
BLAKE2b-256 3a8eb2ed3695ec194c7b594b7efca317a0b2495a72ff6efa4758fbd27140bf01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.671-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.671-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e7b2f5fd2c41166cb12db5663bbf999c2adc670ee3fd284f9f0d3be55d428983
MD5 6d8da5ffcbe8eddd2ae033637bdecb7f
BLAKE2b-256 e8666752a290be0b1cbf64f838aa32ca4def8f7cac753e136bf3ce8954999bc9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.671-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.671-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cd9468bd65ef87ba53e39df1a30833dfdc1bad637248dc2dc700bae54c5d95cd
MD5 eeb33e4f4f7e2a7cd9ffc82f417d2b79
BLAKE2b-256 781fa165e5f132494a22795d99ad6bb0ac99cea89bce838b2d818982daeb7967

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.671-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0893cdd8a12fb8aa20dcbe0e37e10f39925f46904c5ad883c44761e55cad0387
MD5 706d2daaaca78b75b631ac74dca67270
BLAKE2b-256 4f10e1ec2f2353f55f38f18a606674add6d3626f6c3ece4bc19dd40c1c8b7d35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.671-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.671-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 60fd7cc2f98e6cfd581a205b316c98922cd61b814f3aa7dd08c5188fc0ac6a0d
MD5 c9d279a7d73afd1039526abc1881e15a
BLAKE2b-256 4fa6f48652dd4752b49fa489caf810395e55f39d3d5cc8543e760a02dbd45424

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.671-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.671-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4b84731ecfed36d8092c156aac5bcd589a664ae329125239790b999f404e771d
MD5 4ed66adc302ed1cade5bb5a1b4b5fd1e
BLAKE2b-256 227c434156838f3b1b970cc6b63a5395b5daa95d27543373d266bb943c566f90

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.671-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.671-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af838c8217bf2d149b168523963f7bbf9eb7668b51e8767e9f5533debf1c5ec0
MD5 8118dca32d6be978ecbed38b4ac244fb
BLAKE2b-256 970609a5906e6016f11b99c5e0f80f2e5e715d25258ce282b148101189342a92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.671-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9dcc19d98322f1e3edf2acf08c9a127f71db4e939eac215bb2ad8bd31c51c777
MD5 bbcd3ed426f52f663f6f01f83a1fb564
BLAKE2b-256 9e134f7cfaf871cdd3f4d4fbd56e0fe75eed4ee6b33a796b28216000f4b7d02d

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