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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.874-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.874-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.874-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.874-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9d671ca39020fd96882bf345471e3dfb43774d725c05664bacd7e0724bc3a889
MD5 59fd860923dc5035c0e0d3632ad18432
BLAKE2b-256 4f8bf953608e37b2c7a3fbf643c88c688c98dadb95799005b1c85e34c50e16dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.874-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.874-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d4bb658771ec313206d6ae11de2837a2d1a62010d53d806391f65526bac6cb9a
MD5 e6c5cdcd2f4674b7deadb3ddda0c37a2
BLAKE2b-256 8a9b3cecba8a2cbcddd5ea11dabfbb3f3ec953cb8c27da60433ece5786c45f6b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.874-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.874-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a5fc72b53183fcfbcb7d5f47251680395779b01c93c013a77f46eb152de9f69e
MD5 832ce6ab2efd0593bab86b984f42c183
BLAKE2b-256 463d04f00edc0fc283aaf8d9a82834104e45c50fbbb78cfecec813baed6c9e9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.874-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64996eaf99643e31a42a81439c84aeb2f3a437803b8fd895c9a9bed78f8e8dba
MD5 fffa7733a39c29441d463fc3e8b6dd7d
BLAKE2b-256 d6fb29c70aa83a01387dac2eed6905cdf7e81b6460d6f94dc2aeed794700988c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.874-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 491d70126430aa10f7a123cdb55d9d2e2c480a80283bcf70caf666ed6b3fcd80
MD5 77355f290a4a194eef4b4e7f468f5fba
BLAKE2b-256 47fd237e838c0df77c915e8ca3630e237665fe39d5a707b2dea8041aace94423

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.874-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.874-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8192c215ef6d22e692ce0e981e5f015998d764425aa6faa0488e240253c0703e
MD5 65cc7fc76b84197914fc00e4554de297
BLAKE2b-256 257909ae5815fef33e004e878a38f03a31c8f6c60fe633ae38796ebe0bf5e263

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.874-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.874-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fc59f4c965b929b4da0aa4300bb087122cf1d3edb330575370b105651e2796c2
MD5 95a54f8a7e4c09c45c76eb2e08ee6d2b
BLAKE2b-256 fa06b00afebe0494659f2886803acf81e97e43811d962de83e090b16d92cfe75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.874-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 315768362eb5f56293c4706b3390f67ef6892360264462df35e1622acf66f39e
MD5 e2179b8ba01ed496c19ecf9a3b925342
BLAKE2b-256 8645f09f4db6fd3c005ad7a4c9d0436763160a5e85aa850a02f7c49fcb9d557c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.874-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 715c6cfd8006dc86addcf856ec48537d2772f5b2e1cb33f595d5b40052ae57b2
MD5 7a7dce6274f153d41e793bf0f3435cea
BLAKE2b-256 fa60fc889cb0e2d41eefe96f7af0ba50a933c6ffd4355a61ae2fab48ccbbdfc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.874-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.874-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d7ac63d542715cbb673753bdd34331f4d23cf0f380def70da09d0ff198bfe8bf
MD5 c9bb0ab0b4df2f8ae9d58bd4e2cd0757
BLAKE2b-256 e5f799fb1a9eb255a9c386e1d5656f46c5db50633cc8ce61d939983de4158f25

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.874-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.874-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 db0d146a3e1202cd8f9da7257ac25bd917238521bce308c61cb7184584735c55
MD5 d7a17884e6d990217bcc4ff496371877
BLAKE2b-256 a38931a5d099bffbebc7cdbba3ee33d4681d15e636d4b6643d79b9327f7a5e35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.874-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 73aa96a0896de729928c99bf2143d313fae8e69994a194264b2a182f8bdd37c2
MD5 051133886ed8fa73ef0dca342374937e
BLAKE2b-256 bf2a932c9a396d8a818563b24a787f8596c893dd00e39d11815c2b680f6e3935

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.874-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.874-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 feeea159118397c87bab92f2bed84924e8d7d86d5eb48f3c6e28e587fae65e69
MD5 2edaefbb85219247ef665487d4e23587
BLAKE2b-256 3d8897ff98099b66b27a7b8ed86178d1d34e0eff5990b922b8e88c661c8b80fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.874-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.874-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d5f71343c3ebd28e311a19436ef20a80bc8a0e32a890606560bf0095ab9f57a2
MD5 5168b179d5531b936cde7ff3f5c68804
BLAKE2b-256 4d47865d5c261b194efc062b6549fb3598133b8729ec436d9c685f5b9cd2561a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.874-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.874-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5870b8d93d6201ea67cd8c5d34850dbb97cdacad50418692e005446cc9afb6c5
MD5 2e62aa1aa1b598eec1e47a9914557a7b
BLAKE2b-256 ac2f4657dd2affecc6c4347445a464e832f98b41acd84afa012b79e13ff1781a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.874-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b45abb186ff77d43bbb3af871f320ab2bd0f145ffd1a97a62d56110e344e579d
MD5 c0cee47cd00657bf4d2961b033effb4e
BLAKE2b-256 da57fd7087ba1dc89f3a2b35d3a86b1beec699512eef60833d3bd3caedc650ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.874-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.874-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 85b40f14b732e5133f81ed0f99a756ff2485c7683bb63c4d4fa977c2b4ba8a04
MD5 2af0ed903cb43fa6b1da8bcf328675cd
BLAKE2b-256 f15b8175fedd3f4f0528dc265ab0d05b5eaa781486e6dd5317a036f8bd52bcaf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.874-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.874-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 37ad8016ffbac1f49c4f29eecd1948628914ab6da3854f9b372a6fc3de13c5f7
MD5 5895cc075bfced16e92d7a9ef62ce6a4
BLAKE2b-256 cac0f675742fdc86773f4a45a64924c0fc243d7f8053a033e55d53d42a28ac5d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.874-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.874-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d0092fb7c0b020aac80375dcc640cc028d9457465275ad6180a766db86d68d66
MD5 12c0e15f418516ac42727b708de3539c
BLAKE2b-256 af953af2e0a0495a3a44fd88ee70c73fd93144d04d12e5657933687460cc73b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.874-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d50cb987b169effd0985fb493363f23c2bf4bf7e0e63811a2c93196b40139741
MD5 3245f04f9f447657b6584f1b1bcff2ed
BLAKE2b-256 939b2d4d4bfd74da523d4d21dee22b1cd40c5fc50e9fccf7145e5f36c3edda70

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