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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.13-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.13-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.13-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.13-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.13-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.13-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.13-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.13-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.13-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.13-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.13-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.13-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.13-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.13-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.13-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.13-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.13-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.13-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.13-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.13-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.13-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.12, 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.4.13-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 56c9d3f702d96cc6ffa0f760b9664ca48fbe137584e9ab4ad07b39dfaf6ca141
MD5 77f262c520fd454301a11bfbe13ea31d
BLAKE2b-256 817a8ca8c0689de6f87226fc2b02167da45d5c3678dcd0e3b9464873b7e10d1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.13-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.13-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 656e1b3659258b62222fe74f49c0010917baa25b349da7d0602787146155a252
MD5 a0faee6157638d8e9f2c73b38af5002f
BLAKE2b-256 4693cc643266e210f8194fad33bb8b8899f3058b7292b620e55dbf604e944ca3

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.13-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.4.13-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6efcde7ded8f591efe8e653bfa210a038d6bcc8a61347c107a272713ac0be1df
MD5 aa9f6440435f728466af187cbe046355
BLAKE2b-256 4f82800438cf7ec64da855859b54c7ef1c5c0526d98456490bd7809de1763692

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.13-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5ba307ad438a1ae31008a15a7b0511e1bcad21df3cb88b87a3ad36ed9a1e816b
MD5 0e04b689f9e00366d289cf8d62240a53
BLAKE2b-256 a6150280bded992b396a28a527b5a45378cccfc82365a33c0b1ec9a2d5caee7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.13-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 kB
  • Tags: CPython 3.11, 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.4.13-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cc73249d69622d644956986c4946d1b5430258c967dcac998863af355cf18b81
MD5 28aa78f4131b9e738c309f3a5b844cf9
BLAKE2b-256 fdd8520f353b90f5f5f20d8d23fa5f56c5976c82c768ea5c88cd9d77e2780b9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.13-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.13-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cbc875b64e4f543f13bda25f14fde3f61e11c168bed235176659c5af0282c086
MD5 5f25758f013bf3f59a2067f25a237e12
BLAKE2b-256 a0130f966e4ae3c5a4bc28723cae67acffbad23b5443d2adeba0a9354920a23a

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.13-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.4.13-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cc778405aab5f498db0e227221f0d50bd39b704de8af96fd39e9b8b29cc544ce
MD5 b77a76e7c6029412401dd36e4eadbf5b
BLAKE2b-256 98f50a41d7b13f6da6f5f3d729cf14212c6ee9a30192f249e0520cdbe29673d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.13-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 819f6f58500c703f27e3249fe7abe806497c3d7234080782d3f8b9f730508493
MD5 041e28d772db523d30bf8834ec775d62
BLAKE2b-256 c5b5d3ce4c8f7574eea572a59e5e19c7096b63fb3e7eaadc9e495a1d4e6b387a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.13-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 kB
  • Tags: CPython 3.10, 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.4.13-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 44c8358c20e2f1d3d9ac1fc8ffafcfae98a08f27b74cfd653f14c32079d6e0d5
MD5 5aa4b0cb1f322bddf326099267b34dae
BLAKE2b-256 97ed5ad4f95a307d2e19e118a05a5a5b79af25f586bcd8f9adc15abdbe2a9c75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.13-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.13-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 49ef2f2f9b59a12099cc0bbfd108fccb351a4b5731a26153f52b721d04103dd7
MD5 4cdd0404011a30ad41a8944a44a40277
BLAKE2b-256 d77a6d6d075def60c5b0cf7b8858902d6632b60ee3c567ce610922985a367523

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.13-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.4.13-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 caa1b2ea42bb23b90d4dae15dfe4746055b4d53cd9cde8906fb4319eead00ab4
MD5 078b584f3e62c71cd07ae79d8ca5dba2
BLAKE2b-256 b3184128043d80864e7a5dbebf99609aab7e6bcd9ea6cb373a29f6613af1e476

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.13-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9411c6894d98da063da34485ec0f1daad2961c7f539d3998284065de34579ffe
MD5 b7a64c094e6d5370d60ca1f1d7017b34
BLAKE2b-256 f4a6c909cbba3ed11a1b9537d4f2b073c4506a0193a692b31d261864622e1e11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.13-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.13-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bcd10cdb6b09e1153c64c57428486aa2bf667efe2104ea2d85f03b5a82db4bac
MD5 1a988c2594be872aa5dad333224edfcd
BLAKE2b-256 704dc98460c684c04bc108b95ff7f80e55bac2e5cff858132220cb8587222a8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.13-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.13-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c75724a77b240f96653e372da6adb38d7f2d13ca4c70410b3869b43ba5a1bc20
MD5 685546d6b9f7eb9ed0b4b01829f0926c
BLAKE2b-256 aaa2748c7adf27825a1bdaa1c92666c38fb12f574bb32d370795a35c3468bcde

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.13-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.4.13-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cf9134f2db680848fb1fbf6662626b1fa51b22708039ad2c532b6143d4dd80b9
MD5 85c324f96abad0bfc27452e000845fa7
BLAKE2b-256 3db1ae65823ba2646e038ec1cd9e6417fb2b1f47de904651f2381eaa44a783db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.13-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bde3d89bc3dde7e61c5cae27837d1a0c737a7c9dba729c39427ca4c29f082454
MD5 d172f8485bfdd556fb7db2b4a535e13e
BLAKE2b-256 d3315c00823aa1123a4c0344102716cb679744f1c07b9477694bb13f7d00da6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.13-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.13-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 79089015b969af37f7231ee20343d73d9837bd19ec704652fe204b7c764d73ae
MD5 b290574a9fe82b787baeddbed12fae91
BLAKE2b-256 bbc854cb86da5bbf3ae2b769847a97680200893b4b4790dc3d455301a7d4ab5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.13-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.13-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0c9e8c2c3e636286b2a643f73c4bf0b44d8cb5480419f9e58de76ed0c84c033d
MD5 2c69d98f8175aafe60ac569705bb3a65
BLAKE2b-256 dececf74c9ec9d0eee36cf4284473b408b6934b7866f14df4bedef9d1947c7b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.13-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.4.13-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 28f7e5628eb851c3b059754bfbc47006ede95ed9062776ec8a0de8545bbb88e5
MD5 e18ce4341d8bcfd3a0864aae04224e94
BLAKE2b-256 29cb585f1f7f39ccbb2c8a04f8c2f5246f7b80302ce5a7f9fcdff64065ac9c16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.13-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91c90b1ef5e499491ed59510845818d411e761c83dd1ebfa50d151b2715e7a54
MD5 801dea2057772f20d46975bb9d671aa3
BLAKE2b-256 cf09b308e6d11a4389ce125389f7ed5deb7890b3af712700597fedd52e16fa93

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