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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.750-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.750-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.750-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.750-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.750-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 49bb722219ad8ea292445052952e033d8f1d3151365b091a1af962efbbc34504
MD5 1000edca09c08cfcbbf57da482918b8d
BLAKE2b-256 c3ec601852e61fff47fe0d9137ffa52a78d06d542870649298731edca3955da5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.750-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.750-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b9370d33a3f4b6168931fda43de5eeee055dfe75306266f92e3c1106f041b52f
MD5 afab605c5164845e38bfd1cd21147e9a
BLAKE2b-256 4d7485385030dc71f7e65730f56ce117e15db8cd826c580541a364234db3a870

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.750-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.750-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc402882767065462f6b98daa453001fd3d7976cb3e908441a39748b59858bcf
MD5 a4aa4b6a530af70fed609233f04d55a9
BLAKE2b-256 f599f57a24e681b9a5bc8005d1c0f0fb5e019fcd70dcaca1c40d87397680a768

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.750-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 39d46a0a58dd1117766e74d15c294cd406e79e87bd6de8a76ebc347e68c925cc
MD5 6630a96ac9a0d083808cd26b7f167eb9
BLAKE2b-256 83af3ff792935be905ff33d5f47ba93555de85afda7a6a9e128e4a6be47d3060

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.750-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f1bc4160f464803355dc7f7267bc895bd52bb109f7b55333a8b571850f8de210
MD5 50a26a27f6fcc804c4433852e176cc69
BLAKE2b-256 7632a971d1eab4a9a413c68bf54591e98ec9fe6e218ecbf422d8a11e8cd6d9b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.750-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.750-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e67d4eb3ca65dce4de8312e350787caac84bb7e00c633a842628eea2c65dfe8f
MD5 e6b8b67746d1fc7f24c753c79ee534ce
BLAKE2b-256 da1f703fd52fadef4b9fa814013ea9cfe37f389fe62b18c76f3bac2a516dae85

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.750-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.750-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ffd393c69a63c71fb48b49b415a038283f4a6874eac15d0e90f54edd685ed512
MD5 ec1f1fe07126ff7b0a811ff6d0ac1ff5
BLAKE2b-256 59ff501b1d0f5b6c9affa62f8949640fb83f0a28c37a98471e9792c5ebb2f4f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.750-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c111a62f01e9c0d89bd424301e912d6150ac8da6bfb2e40ba49a521a57ab3c2
MD5 eea93b00623a756f733d300badfd0fe4
BLAKE2b-256 3beb8fff98b81cad60b3cc44ab0c4a290fb56bd20fcfc07b62b71e57b2dab6f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.750-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e1f38a07551330016763064be0a13d13bccf335efd7f3781b5b88dae0688afb2
MD5 1b653692244f98feb652128f84a5a7a2
BLAKE2b-256 b0d056b7063d7dd4e0f5be299edb57601deb8de3fd784727a3b134ac408a8487

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.750-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.750-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5d353312c9d71cc130b5433e8553638a11173e2b6c1d2b92f9248973a73f0892
MD5 800ffe5dcb3fce200f85e265f3b58e75
BLAKE2b-256 144b4675cefe6dc2dffe0e097c8b9071e81a49772c71198d3be8530904fe7335

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.750-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.750-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 50e1bce48f9e9e3f74ebaf8acab3db24c729f27028a98e9990656d5366ed4268
MD5 04d2e27646207a2b9798f38a6f55383c
BLAKE2b-256 a198131ab5c1453d79816d294116ea60b9be041b973d4954a53f5774f96ba235

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.750-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c15e89c7c0610310856f73ee48a974e73525c861f22e149c611781aae26acec5
MD5 63f7ec056953c1a9badf459e0322ed66
BLAKE2b-256 036b14f6c843b82a022016690ded41ae6c55d862236033ba8d9aab38dad70e4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.750-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.750-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 53799a66df14a88c872b490f9081a549b8142a367d630a7fa98f7904ee8bf5e3
MD5 6b94116f582c8ae085c6208a47428817
BLAKE2b-256 f68bf35884e12ad64d955b87bb3bebbca5b87b0eba89c1ad7a0523e22fff7b6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.750-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.750-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 57b1efd7d9eee6689b81df5ed9ebeff6174d4e4b0fe0983e3bfc7f3f7298aa00
MD5 326a3abb95f83f36b8358c5585fc97b9
BLAKE2b-256 369a503ea6ec1a57257508458e975e27d7eea0fd4a4d93c4d5770a71dda2a4cc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.750-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.750-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e5ad2a510c79f15dab4693fd60c5994769ad7234e46aea27650786f57e9b56f9
MD5 9a068ad237e02e1e26dc535827d56ced
BLAKE2b-256 2a4fb23dd7e9246c803dac0ad8b97c9877f66ba5bb64ad005ef74ad97f5d5a82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.750-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c665b30b760853306d95a9c7268719d47096a4c59fc95cafbff4e3ab0f16b747
MD5 4fedbcedb0ba41aabe0cd743409a5338
BLAKE2b-256 29c5e28d52b25e54dbb83ff184a09b1747c01262d28f007a208557378f04a533

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.750-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.750-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 438d33002ea29b58cf46b0607da70d720264ac276a677de79bfb4b10e4f69b31
MD5 f0d163d74154ed3e8688339cec8dae0f
BLAKE2b-256 aa7339807e9d1bba84b4928b46baaafdf2eb9b0847df117f66d4391acc229635

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.750-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.750-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 448665ea23ca8ef3d17c8ee3073b2cb935c3a8841cb57fc22626eb8b834b8e0b
MD5 5855b7b9a6e857b7175aa0c7240d34f7
BLAKE2b-256 1a3b905185d674f930c4de344656543ea0f8018c22046b7301e7cfd1103d4ad1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.750-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.750-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 876793438ea7726fc3802c0674fd2f1f1afc18e0077443280f5f61b8550ad0af
MD5 4beadb545730d8ae10a14ad591199007
BLAKE2b-256 dec650d943376f85eacfabfe48f9e13e30458ce1d91be13ea4d0ddadf86a97aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.750-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28b0172d549fb78a8c4d73dbae6ca42066e3927e62ac5f09c788bd5955726221
MD5 c9af147a43f00f94bebda8d8c38ebe2f
BLAKE2b-256 3c8108bf9793bfe911eee00ceb5189e9c8a726826f50146b26cedb46f710ce1f

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