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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.516-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.516-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.516-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.516-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9e0c8929409098b156d01154e34bd531e11c552dd45e8ba4663c7040cfc36b66
MD5 9604f8260debfd54cd414e7b2a2f9495
BLAKE2b-256 be93a08036fbe09cc6699791f4281efc81c9d5d77f2ecbb334dc10a88f7bd535

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.516-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.516-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e2250963e0545fdb3484daa34f157af6b8efb7f4a0c4e33c09a7b2632a923806
MD5 42cdfa2dbeb4dee54d36afc5d69154f7
BLAKE2b-256 2b55ae31128d359e47e0ec9c30de5328985d3501a3cfbdc1b3fc8cefdc7bb0e0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.516-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.516-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4e4793055a4b8b6bd4d4a736d10d2167be09d6fd7564a2fcc337b5325c5bbeb9
MD5 4a5d972d53a16f9bf9259d8a7809024c
BLAKE2b-256 672dcac3302356bad7de7d5fe12452fdcffac94a31f09639822d4310bd9148f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.516-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eae2654683078e7ad0c6569971efbe89df30d9e706d66471c91f18cf891134d1
MD5 6e4d9369a6a12f1b0fb4a01f541c7e74
BLAKE2b-256 ddb714e20696342344c3923457401a524fb6919b824b6e8a273ad06f62be0a7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.516-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 993377de174cf9495f8c7d609430bb989a0577b5512d1b557e3ae2d7574551b2
MD5 4aa844811e3bdd94112d03a9145f9a4b
BLAKE2b-256 c926d033dcbd52a9d988153a19ad6ab2d0995630b23d58ea583ecc133a5255d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.516-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.516-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5d52f08731dfe55c1cda316a649994b25f0850dcb6e46735d83bf8a6b371a8b2
MD5 4930ebce6190f8f13e1885bd127eca38
BLAKE2b-256 157fecb5b509a17eb8c9c8f18c3e1db556fd6b19bd85979eb15ee8bfe935c2e0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.516-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.516-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e4af253ea4c7c29a93486a8551704908c9beca23499b1e0501d17c5567e7fa4c
MD5 03af15e005d77f43a1e0333169651acf
BLAKE2b-256 abb2de1d7a89e7af9aa04a446ecce7bef1896c2cd2c61fd368b53cdd42ff0f34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.516-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e83c62a6285008544458f71aacc67d3a9c879eec68020b2edf6ac43b32308c9
MD5 a1ee572f69c54a0a240c191703cda5fb
BLAKE2b-256 c2c921545427c14b2fd053ee48554cce9f743c002dab6946b17534fb5350014d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.516-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1d603329610e66faa35511e187c51b6ab339c04f7d0933d4e9470df58362d91f
MD5 06115c6ddb2962dcf24ccdd964a9f04e
BLAKE2b-256 80f05b5ea9724de9e32891ce93fbff0c4b49a73dd7e47f66f5fc3f1804385624

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.516-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.516-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c7d4442666af1829acbf1889fb5dfd5c3402f2decda5aa15dbeee57c0e084329
MD5 737fa56e8316e4df03ac46ffa4862496
BLAKE2b-256 6a61d5bd588eb180489a676c62716fc1db6c7f5c4e9fca0c760237e13467a908

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.516-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.516-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb728faae7d0936ccc2c22e6d397f6a7ffc8fdd150ddc4b0bc8d6ed66928961e
MD5 585f646cbc7accccd2f0137ec64db94d
BLAKE2b-256 843cd678d83c68f260e0780aa843630a8e24c0aa8fa2b5220fccf03bcb2000f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.516-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6581f22fa46d91ea6403c3a9c6fa9a6e0f0003148a5f0ffe400b1288d326ffc
MD5 d96ecc8a250c58223e902f0a84645b8a
BLAKE2b-256 3072bdd90f4fe8e12c47f54fefc2555f330117e8002cdfde6ec92cf15f4241ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.516-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.516-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 24b610d8168d2e5a088d8b5f34f52aaff69cffa57c98379bdbbc3a4620c8db13
MD5 deee7fdec6f2fb8527fc05e46099652f
BLAKE2b-256 4026dd5e317cd3834453d04e68ad8d794887875ce504f81606a5ca78840fde20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.516-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.516-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 acf07bd3c1dff59f77a0bf89c3e73e3cfd00ffaa429565303dcb2e551860b46f
MD5 04c1fa7a5d78031e953b063ef07bc7a2
BLAKE2b-256 99cbff78c6f1b50858ce3c29c8ff191d3f3958a8e8f918a80a518a5db2b0d7f5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.516-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.516-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3593ddff4f6defefbf5592d0836e18f7d0b711b980d6fb15934df1d14f349619
MD5 5821dc958d1955bb53a0ccf9351030b6
BLAKE2b-256 1ad296222b485cafccf7a280683b8840348f10a31a482ad384237d19de41db77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.516-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c633794f268d28bdb6467dfe9ced15ba5e9cf6d93adb64793136f48d19cc70f1
MD5 115404cd56b9aacc53fa74e605569432
BLAKE2b-256 3b9724021c635387bf3b1145efcddb74bfc6dfeccbfac1e7c471b4708c6adb27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.516-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.516-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dfad1b3cbf8019e4bce479bd8c981772624b188bc3a60b4649fe720dfee6c9c8
MD5 7de5269c1a77fde66676a197af5d2a43
BLAKE2b-256 e6181122290fe006ad6f329233851c938ac4f9af8a755b618e03cc843c4f6264

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.516-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.516-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 502520b4afbfe94fdd50143735820c59418fd93879459b701f2c718d2a4cb803
MD5 ef745c8536804affc3a2b1c475cc7c5a
BLAKE2b-256 bc3777c629c11452db7f15e9866cdf5c29bd5fe979984012c47b515b63c99fa7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.516-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.516-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0958d3c75ea7faf3d0747a95a764eb354c961868c4767d0f043791c73d581870
MD5 a343c61cd5c2f30ddf89bfbbb41c65ec
BLAKE2b-256 3d2d164a36ea420f3fd77c2c1d98f041e092eb4f6184c6c7c2cee1f6aeb5577c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.516-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95a851b198acf6c604c3d9c375ecf0df4019d741e40e0070f478a2d33950e164
MD5 8abe3b9f5dcd24c7d8f1fa84e0e6f8d2
BLAKE2b-256 6fe7297366a688be271c9e940bd0fbe6f37fecf751be01f1f9063cb445bdee7e

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