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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.504-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.504-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.504-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.504-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f716d721a8cded2e00c480611fe3cbfc8531354bff679f2236c293547907fa9f
MD5 a954b8fae17ed1a667e71769db619af0
BLAKE2b-256 4b725233cc84f0ccc6588ab9cb18283950b514529b62b36f25e4300db0487155

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.504-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.504-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4eb006d2801e4f6e3763d6e718ee728b1a86a5c0d4feb39e19645d4506509283
MD5 9fbd45bb05951e60350457579252c01b
BLAKE2b-256 c02acf441b459b851244cb74e280ab3b542d0cc6f52c9137449f0534867d7da7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.504-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.504-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6eb3c25a32ee4d2d1ea920c64ff245cc632a0052aefcc0957751000260ca1edd
MD5 7fd34580c7e8cfea99fa2f4504f15b07
BLAKE2b-256 fd252dcaa6333c5dde226e7609116a485af6a6db57a430ed0a1c7a4e0f89d667

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.504-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a69e7302d9000f60ca16d27fe686a848069ebc2fec03b36dd4ec9c6033e94318
MD5 3301e00335eedf9ce483aae56e522620
BLAKE2b-256 e06db40dcb8eb68bfaa5e9941dcdc497d69071fe63d8f01629dfae672623a665

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.504-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5e4d5b8eb9133f02d6b71f48ebb2af39510fa6be43afc5c773a38a205e4f6a93
MD5 4cabfbcc64ad7f53c23106b222ee9ea6
BLAKE2b-256 f02217d33a9c57061212c949104382d05498fd7ae5a8f2842470ade90eca7276

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.504-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.504-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e3d1b65fe373ecad260ff6e18ebdd1a61801dafeb98260c1d3ae7d4b4b84c6b6
MD5 3d7b58ef70595ed449ca443504481aa4
BLAKE2b-256 0c7bfede985322544bbd52224b5858c5d59a48989faf334e5c6195e6c7578749

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.504-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.504-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2f20d8f6a9daf41bc564fdc6f582a13cf6930dfe35733b8f2152bfb631ea28d6
MD5 5655231b763d60052eaf50e4e246f85d
BLAKE2b-256 d536295fe17eb4bcd17cf4efd1dcdc8623d69093e5a8cd0900cb308c8c7b8069

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.504-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f697de5676b00b44ef464369eeb0de6b47facbee9b794cdc4da803ceb8e1d91
MD5 75c23126b5fd4d4480a2965412ad6a43
BLAKE2b-256 8deb981092fb5bb3fd8bfafa46473454d64add770362f980c164d7eada34b74e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.504-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b6740d41c426d9a3d32e9674913f34f35e7aad3ac4d913eba52724f9f5f4d4b7
MD5 043de9ca299fc352a3ba628622377e5b
BLAKE2b-256 caa2a640973b404df6b786cd6251184f5ce8076e4e98ac929fc6cd5d6f800897

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.504-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.504-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a346d9afc4843f8329f4c171a3b45bd41930239004b6a865b87deb92cd73adae
MD5 971eafa48cb0d46b8a1d8453d44fc451
BLAKE2b-256 40cdad1878e1e4281bfb117e41176563a4bead53186eb2a6fb5bf582621601be

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.504-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.504-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 806be87098f33d3fcde6e62df34c9472e452d9ca2f72f634b3525e367881cd48
MD5 7028cb2e5076af07311ad37610d2e7bc
BLAKE2b-256 5902260ddf56fbfcb6ded6276626ba9977065e5ba26a4ae7afcd412c4acf74f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.504-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a4bdd4f5e4c79171a8a6b5dcfb5e8b5d2ac73a5d7d4d612085f27e2fa401e5f
MD5 50b0ef6bbfc30a20376f6f7ef9431389
BLAKE2b-256 d497cd459b14187261fb57d4149eef06d84c7723c65b5605f96c84d07468eb7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.504-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.504-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 05413c17d9b0904e2a9e853739325e9bc8fc3d7587faac12f2ab5e00b6d76be4
MD5 bbf4f1f134f89e4db0a8614a870c7af2
BLAKE2b-256 3f0d4621394bb0289f6646c48d3120d6930e408f491e24fe94a9ce5e1254be45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.504-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.504-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bdfcead497740a64226b7bd850d2f4228e4c63dc93cf6f1eb46593f1ae789ff3
MD5 ccc1e450b008d4054d113c3fd19d6325
BLAKE2b-256 37a80c4da07d48ff19c0ead82e183e84f9c7eab4570fbd82b28ab23d39828056

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.504-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.504-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 56cd7a831722c1c515abcbc6e2e3c077aacdfa4290dd54039b4db490424f73bb
MD5 17acccc147b02ff3b6990b232ffc48f4
BLAKE2b-256 21d636e5d255cda8b27d678902e7f64b73492f6f9c332b2e17247b05f21da66c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.504-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9bf1c3dcadd8ca65f0f211c0212e60cf067220bef71c08904845e323c9821c38
MD5 bea5a76f961c68e8f2df1f7589f8a381
BLAKE2b-256 76a236d6529310a8720591ec91060899f724ad29c9f785ffd8a84879dcfb624c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.504-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.504-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6556b3912311544551de79d5a5a82206ad80b26848e822f4ffb9cf74f5cd1890
MD5 cabdd6648e911ce0ab84c17f6a65ca10
BLAKE2b-256 5b66d7fc0f0d5c7a6927a6a556a056768208c721c7cfafa5e47e8b2b16c49a40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.504-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.504-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1339d160d8e010b193449ca4b0176fea66ac1d9339a901f1eae7b0247a637bd9
MD5 9d11fc022dc27635ae0fa0b6bb48d0a4
BLAKE2b-256 b014e21736bdd32cb83e2009d5ce499dbc7eff686adbde82d09c311b4f851627

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.504-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.504-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 07125787d84cd6e230ac372bf5bf48c1ce76f8d348a2b216d0d96e07a42fbdb3
MD5 10d6c69e2b2ab5f2ecea0bc8baa52b2a
BLAKE2b-256 82c27b0cbad78fc888b83e074a781830ccb80b520f78fd23fc3254e0c47d9879

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.504-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d1be314ccd25364a2b54cda088be6cc56421eff29733ad85cc808acae6006e7
MD5 084b93180079918e08b88cec84655d8a
BLAKE2b-256 70724bf5cb4b136d972c2f8834454280a931a42c8b57a2ce7750292e40908a9d

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