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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.649-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.649-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.649-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.649-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 839e4979b0fb5cbf84a86509362007bcdffc362cb17c9e0ef69875afaa318ffb
MD5 0dc6c040f592301e1c92f2cb002b66b7
BLAKE2b-256 a8b2edfecf9065cc738198a22b1a20c4b4d1968f4d538d755aeb8c51529992ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.649-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.649-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 80a066d2b5d7ba6d5d71e048420f243d925c54696a16293a68c685b23e165920
MD5 4d7b6f8c68e8e8f5ade4426384a64914
BLAKE2b-256 6f7f810d69fabc496e95228b1ad498850f00d5474f7d05fc8016b5e36e39ee91

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.649-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.649-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 276bf19e0c22644711a2d29cba543d5177243145c8f68630d08b3a76d9c7fea8
MD5 79e8c92a0ad41c1693d88bdf50b550be
BLAKE2b-256 448eefd2e969e15693ac09dd2d929c3d18bd0d4d18d857e49f2e75a2b1d0e17e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.649-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0bca30fa78c9b6204acc7d620d3bd1d88c26c337f123220f650b31134684d622
MD5 802e038838091bc8fcbf5912390dee06
BLAKE2b-256 76d56ae6de31a1d4dda606bd5cb03d164ad97b406e7491dfe2cf247f2e797916

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.649-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 714edb54c049c2e4cc89fa8b9502df363ea42390837d416f00954b0e43d7b60a
MD5 873e965578ca77bc9389779c6269f0f1
BLAKE2b-256 4b08fc8b25892c19d18df5edd8bc13843cc9638e28f5da4711f1713d996f1c4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.649-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.649-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d196de0e24cc0848eabcf29297faf95614e190271e9da0822d647deee930d282
MD5 c1936a748318fc75b9426408547c8071
BLAKE2b-256 96420f6e7f0a8388785b26871ee69c21947f0bec807fd9a30fef2713fd1d0513

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.649-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.649-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df071218844df8f6a249ada3a3c4e63193d847d8acb5a11cc1dfe0b27153a24e
MD5 0c9de35b95fd508841fe57e3daf04219
BLAKE2b-256 c2d4583717f698abd3f348fe6aa4d6db13bb4d784444b2c8f011877580a8449f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.649-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5511ec71ffd0b1c3959392ee92fab3b219c8bf1e339f4caa2c09fc54a50d4f2
MD5 f91809004175d0618344856437dab5ca
BLAKE2b-256 c99ae622de0c67d9b8ba8f95f8efe5819d506c7e40326fa7c84c5a12abd08845

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.649-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f2b94eca87c9a29042db0cd6061d793530a539dd56909d4ebcc98fe99f71a705
MD5 576cbe7c9821e0acccc97ea96c124216
BLAKE2b-256 bf500a63d28269b9faa3f6f7263b1411167f97eb3d89478d8bdf85237b39f4a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.649-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.649-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3249af5f7092b875a3954144300dd2db2ea62123f17b5ee89198d9f28a84ce21
MD5 80fa27d0f503b7fcea38dd13f5391318
BLAKE2b-256 ef92e232f1299fc48db7a2af9c490beccefb4769839a7fb0cf0685d0fef7683e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.649-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.649-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b7051f0e402a11cb0ba1f25e785b9e1d8a13cb8e7fe4918b3d4f5134891e1fc
MD5 6611115dc3a208ed2f99234c4c733c6a
BLAKE2b-256 0a0c7c2d6e7c2034f2156ae9f845f6d603bf3a93b615ad8e2417dfb85a874470

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.649-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bfd6ae8484361f344a8637c7a93a373cc30a8d837592337306063aec7b9f24c1
MD5 f5754d69af62ef0a1180373ea80d6419
BLAKE2b-256 d1c6adea3ae9dd0f45876dbd2c56ae0f0c5092a1ec3e4859be507ba4110fb0cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.649-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.649-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 166c211c068a22e01d591dfdc7ec23b671b679b8451d546269628e365e59b3df
MD5 7301bc9309ecdbe96c7348c1fe3f3fd2
BLAKE2b-256 5852d4b5061b44188c7267bd56c4e8fb6475c854d33cee5210c7e7112405331d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.649-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.649-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0a8431576dded75a4314fe592a21359e8cea61d438f2726f29b13793f7727967
MD5 6bd99d251ddc84a66e3abae03ba5649c
BLAKE2b-256 6ccbf72bb251bce8270607ea48f4155dd72e9edf945eac46cbf802089da49bea

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.649-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.649-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e78a59bf664ccc77ea88bae54522b9697c7637f87a8238489b269477e5b303e2
MD5 3e4e0557697b3308a5f7d9ca7ff61210
BLAKE2b-256 e3ab46b1515a2b49d54adf46cab7251f71069ce2d5e2f8366d499abe08ebd4b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.649-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f72c8a7d56f35183ebbbffb3c979fd8cde310aa560df6a138a4ab2620c88e50
MD5 44b2efa9bef4d3e3be20ff20b310d055
BLAKE2b-256 94eb53cd9abe8a8ce62a23e80524b2fb243018f0d31cbc5747405a1ebce9956e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.649-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.649-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9cd4f1b71fb757ecfcb793ecfefa2f9327e3194c8ed7849d0d2a8061c0407c06
MD5 55a447a1c9212d5f205d04bec49ed3c1
BLAKE2b-256 74f80229de0f27f4e862a1cc8ba1cdbed4fd0cdc809a827327b99790162c9919

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.649-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.649-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 012b0dbde9ce99c84e47a839dc1f37b7d01efbf64af04cb9723dd466b77ae8e7
MD5 db35f7cc0501dbf4da7525d20762cc87
BLAKE2b-256 94fbb3d82d79c6d0daf4d490abe8aebc153b2a2e5c9f659146eade44b86dabca

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.649-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.649-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5469300b4cf71dc3ec9988294088eb9eee85caad1c1197d378bbc1635bc620b0
MD5 f1faa78a5e058258e7cd64bdd4c0a5af
BLAKE2b-256 f826b4129c105561d34500812b1a4af58d92a8634fe79cff543b5457c838f255

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.649-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6ad026a6f09da9b9cfc5f692baa0bea148eaf7f15861a95440e54950c5f756d
MD5 135b42d18a4c7245bd9281efeef752ec
BLAKE2b-256 06f8d1cd83c2cca5ab89aad8e9ec8a84e23ab257acfb1f53b66e4a47e64d7b48

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