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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.693-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.693-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.693-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.693-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f44735a7a4ae1de1f94dbf154ac62f17a3cd2e9cb8d89780c4e1e877efd76c90
MD5 24ba0cbfa9dc582756988f773e3a323b
BLAKE2b-256 bc3a58592c6f85a1a66473419c6b399c6bbaee1e8b78c7c9f485d2e97a10229b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.693-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.693-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d5cfc72ad68086dcc1c47fab3297f11046e039e66be51c935a9eb2b141ee6260
MD5 29dc7b2d9a0ab0af2f5f08c183a8aa25
BLAKE2b-256 d99c765b705bee86bc35ee2369623f0784711615d6567fb00b0d143459fc8501

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.693-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.693-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b7c6d2fdebab3b4065d118f0cb526e44ce4b255831b5d24f9c55a02b01192ca2
MD5 a61058e4be5d9e306137a73f603e41b8
BLAKE2b-256 914e7d646ddf6635de9b69251f71a524b40bd3d185484a5661cdaa78cef7c30a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.693-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96f188f6c7483744d0ea9c97dffaec59fec3679259120ca1c742eb3c773e34f6
MD5 54601fc09f96f9c3b92678f892827ddb
BLAKE2b-256 29f53ab7a27335a8ed55b1dd47f50c50aa0b46424d944940b4c2b4494933707b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.693-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cddfc89708b83bfd424979047b8cef715f3a1fc2799ff94879902f66d0e418f1
MD5 9b61862e1558e2cbbdbf412223ff8c21
BLAKE2b-256 b14f3b9a6a5ce7f3641be78a351ddeeb7a1466893ea23d74fb135086d0343d2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.693-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.693-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f61caf9f271d7ea53e4220076a7a7d921f6ffed66322b0ec992f070dcdebe52a
MD5 3d0a5085c379b6d7a3f5d4e935ba63d2
BLAKE2b-256 0f4311534ed76564dd3968e75c3fc35531e45f8d21282b6229a8009a430a3843

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.693-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.693-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 63379d7bcd2d22b8361dd4a6580e0f579c021c87058c33a25c21329721b31470
MD5 13f3865873dee6406f99d02a8d27b7f3
BLAKE2b-256 2a9617a682b42ca4fb959cf952e0a02b17d26c161174faa76dbe33602ea1d946

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.693-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 484a1d34134df2d5d0ecb8703dfc35f98746dff5f9766ecc4dcb50ed895c6214
MD5 1a542a003e621e94041f7f25ab3cdbee
BLAKE2b-256 96437516ce20a6b372880a4bc5340b4c571225db6a062dec4feaaa0e3d75d7d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.693-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 709ef676150fd4b2159429b05b4c30e437e74f72b7c5ffb65dc1f15e9e871e7a
MD5 2220aa24f91e3c9e7f44bec0eb053f92
BLAKE2b-256 d07ac5860760bc4fed46ab5eac2b00e803f32867c1032070fc66c1d8ffb2a410

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.693-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.693-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 914f9a8ea7ba561c0b08a2f63fd06b57e9f5ea94070d4b40e1c0e1389711bbb0
MD5 0d6025596d9c8b7ea78f4ffae390178c
BLAKE2b-256 60d5fc0903b53300605abfb2236c93bead1243f11bf657925a857333a9a21d0e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.693-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.693-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e98444241665054a53f7bc2db54aabd94b102893095a3d7b07455fc5514592af
MD5 e2fd544b300cbb5315780dd8eb357391
BLAKE2b-256 a5c28ef00cf01cdeae1d533a3bb2a6cbce155ce69afb0f80eefb5ffb3a6610d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.693-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff0bbddae06be8da16e54745897fe5e95b050c5fcd4bc43f266c4a3e796d91ee
MD5 ace61cdb1c85d48d63535baa83ccb07f
BLAKE2b-256 6241acc10054e8fb6686229ef502a14c0b3fe1ef10d1c5a49d3929f0bef834f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.693-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.693-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8f847c6bdfc2b7e9662a1ed2886cad55c3df7ad019689a71b5697676077596e0
MD5 08253925b72cc5385ccd921def8c8e40
BLAKE2b-256 34d70a4a3e533519d206bdd7a76b4905ee2a6a297178359391a18fc4296e6bb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.693-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.693-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9a0b702f77086ad57b1d59d3442b36729dbd144cb69406f5fe8914c941e97994
MD5 e59524e30fcdec3607edf35dac2210e3
BLAKE2b-256 0600a8a78bb987876a2e662efcd7ec7ed4c4f8c377a30c123a57edc88d8fadc5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.693-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.693-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d25709f1166d6df41761cb598acf967fdb3cdab5312e7b4f7e3ac488dff9ad28
MD5 6254cc70c340868d778a095d3202de45
BLAKE2b-256 cd3083e6af8338ed837fb2be8d355a6553511f0e469209a025d2342ba2a44021

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.693-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59917b91b711d0494594ef37502f04284a9a991f96a08b5e9db246895b9f1298
MD5 608780124d4eee0741b0bd370593b50b
BLAKE2b-256 4b57a91e1d8e55c43c147f2655368010d70609104048d20698128dd10cc277c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.693-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.693-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 16719a45f3954f7e6fe01c8dba6a9c4f8d803a9e9017b67ed9b831d8b52a9f45
MD5 b4f0fb62240dfbe02aedc0b3542d3f04
BLAKE2b-256 ef76237149fbce706c6f9f78031d442ebcb02bbde4b4cfe61a45452d8c6887b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.693-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.693-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bd797d2785accea0602089c16053b97c4aff4689e2470627db3ca3b0b4ba5201
MD5 43b7867b9dbae57ac52a6632053005cc
BLAKE2b-256 b2c955bbe2ff502ba32e55898ac14c9f30f9235538169aac56e1fab97da0ed3d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.693-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.693-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fbb04691c5082c8311b77294289ae1af7a4e4e87bb3ff1a6b681ece2c29c7e7d
MD5 80f7f6db8ed1ebf9c2ee5e379473d62b
BLAKE2b-256 c8fc1b6640f7fad281a48c3a89d0f2fac6d295219269a413b59388383988ee31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.693-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80e91e49a00b6c23684a23c8d8ec0259db5243f63e22f7ed2fb6ef62983da84b
MD5 58e44adad63e5c80a19f9f23ca4f5eb3
BLAKE2b-256 80d55307dc4bfa42897f2c2287cea2b7bcad0304e649af73bf197dc26bf5095f

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