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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.566-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.566-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.566-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.566-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6052bd3e8a1b108dc5d1e82636f5a7bf4841efbe039d22adea4f09a25c7255a4
MD5 a935801e3998bff3a771056f38c3fa3d
BLAKE2b-256 e48c6690807fb5a03c57e5eafc4dc609bb527834d2960040894f30a79c4965a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.566-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.566-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fbf7b29aedf7c484fb27671bca71201998c7d385f351b5ced3d214f95d34defb
MD5 59ca2f5ca378f40f870ca389b990ce36
BLAKE2b-256 c3c8df0634b9d436d76c71a944b1ec5ace8dfdf076324fc5a2d6557a3f6226f5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.566-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.566-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dbfb3a4d72acaaf226fa4ceb58f2fafcab93e344a469ce77fea226e4b158a4b1
MD5 79f6cf8028aaa58e7e05fb0eed3561dd
BLAKE2b-256 2742aa26a51abb4821ad1d57ff8889f1726fe1317fcaebde7cfd7790a66fd9f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.566-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0fae445a2566c8b858938079ce4da15aea61de926910fdef0d8044cc7bcca5b
MD5 d743220702871d3da1a76dd1aea7de60
BLAKE2b-256 da3204082f7a4712210e5dbbd0366625844078f85c7afd83ed41248de1d479c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.566-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9a238614e62d77a50a69f706c9a70a8d313e2895d3e14eb5880c57465fee50d0
MD5 42975335f9fb7873c3f1d240d8a112cf
BLAKE2b-256 c3c26b913b89feab2d902fca51538d409e4865309a3218656e256770034ff7bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.566-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.566-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 909641dfb15a1de0cd057fc91bbcb1bba93da7e71177fd5202845652f9ab2d71
MD5 85f15de01b5120edeec97a8cf6bab1c6
BLAKE2b-256 28c83c369b3cfd743cc59cc952ebe7d099027fa41bed6134dad132dcbba5cd91

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.566-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.566-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1ba6617b5ec695ca87d2d7ebc38a6aad1e4b46253951d91bc3f6a084820720fc
MD5 e5ba4e29c46982092efa6e53dcb52742
BLAKE2b-256 50ff5f908df6fec18da9e61179914c8f7cef9684622a6bef7ec86c513cdcb0dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.566-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9f8e09b98dd8d602d44067bd90b5c33540c25cae34cd3bcb9349613745d3780
MD5 e12af3332c5cee8e713a128b46d60e2a
BLAKE2b-256 b011196d8c36958a4831d8a4316915bb34461d0f4bb2a43b8a2cb5fe3ea52e68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.566-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 760bfff13073bff40ca1923e48966b7f051f22ad47f7c95b75502d161443d36c
MD5 bf2ea3080ade9b227a85d86e7e055822
BLAKE2b-256 76ccdea40ed3be298e1bc195c990a7dc7370968ba1229eb7e127f6f73349a104

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.566-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.566-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 73a161ce4f4888d2c54e324b06ae18306b6b07cb9d5daefbd08d747a66df94e3
MD5 dba589649b6df5c28b2d3f475fba3480
BLAKE2b-256 52949035972298f2f0f8afb203bb80298412d287bf1439da72f44a7522027024

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.566-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.566-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 59ecf110a1dcfea52d8dca1766f15e4e090319fb95e82ca2dd34cfc60030eb9b
MD5 d00dbcb0eaf909b668b3b2996ae5a23d
BLAKE2b-256 be0932e14519515b591341e3e9d89107cfabfd670b85887b34ce8ec12f078e3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.566-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f210bd9c88ed761d02c939ee39ecde2aca9a2057d7d4ac0e08f69552e85780b5
MD5 d82e4a6bc1ccb03142074be8aa7e1706
BLAKE2b-256 450338b8a8ce111a168dae734560d7bb1a436ce48524ec9c11dec661f3b2e529

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.566-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.566-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0d5620c0b9e4d2796f038bd1546460ddffec89d8a0aa925a6577be3f0315abed
MD5 d160d50920db56e90af7954fd638de96
BLAKE2b-256 a91b1278357f180b59d8c2f05de9ab1eddb715f64e03a2f1b6384dfcd5c1c855

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.566-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.566-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 35a0d8e520b887beb39e596548279c62bde353871ed64c6f5ed25f1ab3f3f278
MD5 780a74510756e3965e95092870ed0331
BLAKE2b-256 6d7e0ae19eb445b9c42e01ef674b44fcba062f880470229f1513f6c04d467878

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.566-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.566-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8e0ed0f9c081af33d4b52838a0718ad5f78870243d571cc9b7288911c87776e
MD5 8cdb66c7655abe88ee319336102d91f9
BLAKE2b-256 67c0406c07c4907e43360acfc4093ec488247015be0c3d3c3dc0021c75f7b703

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.566-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfadcc1ae44b621d48e200e56c1fe78e820224bbcaa29015185114c7213214cd
MD5 f2bba4bdcf2177487e97331113444571
BLAKE2b-256 401d9b9c2b52af133259e18f23fac688532b21141b52ade1c9a6ee5f54a90b16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.566-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.566-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0d60211c5accbf86f71fddeb6ccd1f7c16ae04caad4350330f7d41d1f9cd103d
MD5 bd5d06b46ce41f2fc1b6782f8b37136f
BLAKE2b-256 3ae9c2974145655603bac5624545c0e0902662e9bfbe286be0841ae02c99cf61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.566-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.566-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c08beb1ba7c8e6b1a2c377c3858c4ba5a408285218bead8c186744f1bd746858
MD5 5ccaf96a047693537f588fe322e0b176
BLAKE2b-256 6efecb3667b98ddf11bfe0a63f85b5cf9c3c3d07a8c3ecfee8e93d174ebc4152

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.566-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.566-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9659d0a65a0242a2d80d5c5ab09c635b23a86d6906d140d5b84b1f614986b811
MD5 673268ef27f932b260dae02c8bf68eab
BLAKE2b-256 06dcc18dfe44ba427d0770160d681009f5f974978fdb83df02f32ecf0d25dc4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.566-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5decfa3582ef04f236afbdcd07b8a1be3d823802d4a1c4f81c9cff7d01b7ed2
MD5 d8f48ea0930d41eed0d6e92d009f22fb
BLAKE2b-256 1ff483f1ba3d7d81fda371ba45185269784b03b0c9c6b33fef0316ce78fe05ee

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