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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.944-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.944-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.944-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.944-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 96f88f8b44f23d3164263acbc7f5f1cf193309999311d74fdf95253951ab745f
MD5 c6e4a20b00d77342a6b8f9cdfb3285f7
BLAKE2b-256 48fe928ed654913e55ea230db71ed15692b037b4998a4ca7fed5ad6f4dbb3b47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.944-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.944-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 98e77c76adfaccb4627ce07f768647f503f7e276e7b3d8b2f1289052afca233e
MD5 f60efa4780086703622ab49095ac8e45
BLAKE2b-256 0a273ebc42a0f6a0dc0a549271575240b387a74b1482c588a4451fa7bfe264b8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.944-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.944-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 96a1a45c89226132c66b77cb7f43d3a0894166a7482858b19d9ef48c009205cd
MD5 79d06b46095b78d5a848430736572e5b
BLAKE2b-256 9be1ec7bcb41754e8819c14ca64c367e1f58dbb6129734784520d3cfe504de76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.944-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 271d36bbfcb7e360ad5ba2646c738ab9c5b1040f0e1508ec5ab5d9361ad7a178
MD5 a715a75c14ab0f9800b6ec741fcee6d6
BLAKE2b-256 a0c716d56706dec15370a561e9ef68bb931e32ac3a1018e5e582f84ee77f5a89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.944-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0e7f868bb1c4d83e02e1e8da18adce3648ebcf8aac12539ab982847cd13b3d36
MD5 aadfabd23e9ba9e6e8f76ef301dd3426
BLAKE2b-256 cc57452cb612890ea98110de021c9997f1278945cde53251a811467fb03eb106

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.944-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.944-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a856e3e2bb4f3fd94fcb47acdf1c02b2b751154546756ac7597a1eb78d048ce5
MD5 ef4c41c46e60d401189e3619711d048e
BLAKE2b-256 aa441aff3fde548dc1b934d5730bd87d1a64005ac92b5a61ad9b00af88946509

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.944-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.944-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bf28beb78f3553b8d8656ccb7fe8dac357ee13ee7c130fa3e21fb4b7bf054cda
MD5 25598e3c803e29e2a72222e050d45479
BLAKE2b-256 47725962962d59c8cb0fdcacc039a062a81a88b51ca86e5e06622f58aeda7ba8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.944-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5483332323ae0d5cce0c57495cc6937c89c34a9668b735928f69add4fc832084
MD5 a8ab6affcf76231b1b66f64157b30fdb
BLAKE2b-256 fcc98854a6e56646aa5fab634b28e3da8ad02583f47276a5797af6bc672e396f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.944-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 57d08241057fded12be16c95d70a45f8dd2b3ea8623865f498bf0fc59eca6baa
MD5 f51dc98df9619def5a3442f6e268f852
BLAKE2b-256 3029aecb2232f53d61332d105f4f36471aa1a0cc878beeeb4a3f33134b53f86d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.944-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.944-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5f93d014f37b0c377e4afec83169f17f618a19075eaf07acdc3e5b2cb71f1c7d
MD5 1954cb674bfc8c2e7f6b1bdec31b0464
BLAKE2b-256 271343625c1eff4a93f15350cbaaec3c717d4b653350b7a8c11a31dc38839ac1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.944-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.944-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 65a5c59183f5b52c370086c45c5fbcdbb217d70f673865267a559f99c4fcbd33
MD5 c4af68fcb802c9da526c4b59561e0d14
BLAKE2b-256 963a755ec07b7fada391b6f875ca0a16a35d22ea119d9c9b7b0b1be9b7da73ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.944-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 324a96c700f351d503d3957747a3216720917af51f4ab92279275f777208ffc5
MD5 a6c0db7b71faab1dce3ccdeac0303f93
BLAKE2b-256 5424802566b73d2391d3fab3f96044a103fc706985c6f72e705a3cca8be925a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.944-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.944-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8dee43891a0e249c966190d0ff42d1e1bbba11da226ee2ab4b0263e9f102abb4
MD5 bdeacfb51a2b5a951e1cd2c111172ab8
BLAKE2b-256 4d4f9980d67b08a1669424cb862e764efd38e146d88a0c5b5db36739b8f01090

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.944-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.944-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d66ef28e92072ae1be89315cc4ce553bc66c393d0f70786d5448fdc1e6147c8b
MD5 172f4b05aa40dbb57aaa428927c29dca
BLAKE2b-256 8e2b75c927e94fba90f3978fc5d2cc90c2c32917053a6d4cfb20009c5746e478

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.944-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.944-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9bbd5ea19f7cc45d5ed42683ff95856f24d948bb4e0e51c274425d566ebacf51
MD5 ea4e9ed9a71c4e815ead0cfc8d1a35d1
BLAKE2b-256 f9e4b14d027845e5a9a39696d58b331ca3360e1ceaced335a1e4b546999ad963

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.944-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 241385709fb252a87e66890d934f5ee415e94d9d2372eb653fd660532f859811
MD5 33f633294930a697fd849107ab214d61
BLAKE2b-256 2c0e124d3082d44f2b4c613b0d4c58a5c46124d8cb91d12b71c626f3237f12e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.944-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.944-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dbccc81dff97fc659dae713372a1ff4814a33f70834d503797788ed862b93c52
MD5 efce6576c0ced40542076e0028b36668
BLAKE2b-256 edfcf74a9e708133a7c0ec954aef7e48b747dc863058129e86a788f4c930c8fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.944-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.944-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4e3c311760da520301bc42cd32a602869bcc5ad3d9344d4932e19a00b46b94e3
MD5 8026e7f4ea8fe45ddf8f4cacf118c9ee
BLAKE2b-256 784bcec08ce1ff20ff3ff0834cbf72d4a8560f301859d301245b894ef869fb8f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.944-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.944-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 89c6b5b4869bcd67a7683a5891113b5a4c100d5e7a4354d2efb17542d9ef4528
MD5 13849d6f78504dd604931109ff156ee4
BLAKE2b-256 737ad884f13175b2b022e1f5c979cddd6e6303ab03ff1def6077e306fd72b742

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.944-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d38dfb6e7c74ee7bc882624456864061c7eb2e5e7f88cfce3b9c6515e896de5e
MD5 ce972e8cb16c20edf1cfb2cdc2e689a3
BLAKE2b-256 8dcad6fc665a1113fc71e79456ef66da39131321bceb628343f48011f310cce4

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