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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.548-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.548-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.548-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.548-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d20bf90e810037afbe2e67aaf72d271f50ecf5588ceec1fee9342d0b9457c686
MD5 94a526f2f514677af1ddb249c43b3048
BLAKE2b-256 8f9d8bb1f124e35698a5958c583e51d7319fceeef9f34a0e455cc5330f6355b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.548-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.548-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5f095de0efd666c9052e212fba704d3337041ce439391b8a4730006f980ffb18
MD5 a503d82d8dbc322c30cf3ba2442d58ae
BLAKE2b-256 50eff1012f6f0e279673370d43cba24c77625479d639ba6176d4da6a47a0b0a3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.548-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.548-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 535a1e561fafd28d17afc28123f69b5d8402db52203c47f6a50fc9b987021868
MD5 2fae7f96bd1c4cec4ca955a7fbc82a95
BLAKE2b-256 cd97ee309132a0bad4bfc9ec017882929bec4ede3c9cb1d9951815ed6e5b5e12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.548-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c191fc332515567640c14b7565a629d235abb04b4496351af6e9d45d99e29af1
MD5 cd82915d9f4dd05b80e3cf64b08da163
BLAKE2b-256 6c12be97ca248a78e5831491b31e4674044baf8677cb2463db54876a8dbf2986

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.548-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 06a9e32a55f8aae401e8c1dba924508d81f1f385b80ab3961d7fcbca62c60707
MD5 69a3eb0df0d3b624628fea5545cf8455
BLAKE2b-256 362bd6bfcab13beb5372669247dc4a3ded4c223e13bf87eff29f7ab5db9e3fc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.548-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.548-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a507d584e661ee6ed196d0429433ddca5dc72d8da0d9734e8d62338ca8931698
MD5 d280bee2e026561757511769a4db3380
BLAKE2b-256 ab6b460060db41d72dbcdba4496d416bc44487741ae71005401c3dc266d559c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.548-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.548-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 13c5c07823a0521486d4d99e77d99709fdefb5fcaaf68d8fbaee46257ae198de
MD5 b569fe9b69f15bb7b798de97aabc4fc7
BLAKE2b-256 51c50ce970bc61977f238786bb412a16e5556e36a474dcbab84c9243efcb34c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.548-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf9e344fe7c2759b158f16294be6c2eed53f59eca57addaad773eea33c1c0acc
MD5 59cbe6bfe4f7282c2c86c5c18a7ca8c5
BLAKE2b-256 acebaa2b88277df32dee4698ddec12c5f5ec9dc7a29a01f25f66dd74711655e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.548-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ba0778f4568122e3036723c4a832e8b88f03dc28ecb17abf39a7ee505bfc2325
MD5 dd2c60b204803e7894236b0af2f52736
BLAKE2b-256 7808b7c91aec038cf1911a1547a8d05650edb195e27af1fccc487ae62596bc50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.548-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.548-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2f0e9165c78f69a3d775cc3a7abbddfa3ecb6172816a8d487bb461edba50b54f
MD5 9e2d1f5cd87521b62eb492fa733f3d5c
BLAKE2b-256 358927f33b65d598d0992163f0494e41f9dd6015706e88af59bccca1c4ab42d2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.548-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.548-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3aacbd2c81eb0678c3664b7d478368c4df02cb3e1d45e83a170c136dee23c351
MD5 0f99d081e883b6f156b504c752bc5ec9
BLAKE2b-256 03e1b12ebe7aeae9a662f424a4b581bfd144f533eae60206ac5098daf9322498

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.548-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f9db2be3e4ba1f0fb4f1c073526609d2889fe40c0726c3592c79707d50135bc
MD5 35f93cf8cee1003a4914fa506332f893
BLAKE2b-256 e60cd6f6c1b9262bf76cc631a200d910d00b308e59f731e470620392e94340b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.548-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.548-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1773362d17751b7a829101914d495c75e928de603e8609f135bf3485476b20d4
MD5 7535a0a81d94aef112079e0a0d278144
BLAKE2b-256 88b9db966b0ff63f93d21ee45e70d08708a36951bbcaf90aa44c360f22766175

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.548-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.548-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6f6462b893ea4fa543674eb8c8849ed09d9593591f1aafbd087e0f7802279919
MD5 dbda711dce2323b574d0d1fcef0488a1
BLAKE2b-256 d63955a452eb7110598b8bc9e655168238391b96d27e5770bbe88c86d449444b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.548-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.548-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c6ec63d050e7a4f51f93eb58ad6044b714f02431f16cb2e5208998338b35a8d2
MD5 15c5607cec65ddb339292798dafa7f55
BLAKE2b-256 1f8648c82760d60fa9514b943ff8bc09f93a02a7c2612afe47b74db96f2f7787

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.548-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eabe68fa9d0ce17719b95c4cccbbe15d849e114dfec385e02baa828a9ae791b8
MD5 4775db4f9aefad12877e076ae70846ed
BLAKE2b-256 ffdcf8f67f3228598bd36289e016b086257c4606e00c3ab19879bdb177cf5221

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.548-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.548-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 84710565fb519c217b6d29b88a29bd35c6b22204eb26fad76bb2dafe96e200d6
MD5 cfe9399088a404f424f9e3c24b50a5cd
BLAKE2b-256 0625fb365672d6c83a47720cb4c7f9d1339ad1472a8a74307292185792b004be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.548-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.548-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 866d759e816c118e0112c207607b0d8e06fd72ad73232bf5db9b2aeb42d1358f
MD5 bff56ef71119dcf5a4117fc3faa099cd
BLAKE2b-256 91cb6f8ac8b7e6eff24b0719adb1c32de0fe544c6e2b44a7c2aa9bb9cc843690

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.548-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.548-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 120b3ca29d701610380658a86a3c0d06108cbd4bd1faf96f7c7efb67946824b7
MD5 2ce828c917d6bd3c5f70c4078061757e
BLAKE2b-256 7b8b72be4d49410e0a460b9ac9e165353ab3c8109e51e78d55a0c5e8a8a6a6b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.548-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cdd884601aa9146a1134fde6ed8e1e69cb61f7c16978d29cf6e966796cc2a55c
MD5 5747374d4cb9189e7f6c4b618175c3a4
BLAKE2b-256 b0e641ba30fa5216d6d502e14a8b6c059b780e51eb8d052318f5bf4a8c8a1fa1

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