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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.54-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.54-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.54-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.54-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.54-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.54-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.54-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 39aa2e71227f5478d533bdf2771625dd84ebc18a8f2fad272020022f46eec847
MD5 6f26072927e5b94677fb5bc632fa95e7
BLAKE2b-256 538ec4bfc7f49c5d0908172bea8f205e33afe4714a6bf2572c59a0bdcb7f96ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.54-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.54-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2ed4526bf9ffe5337508cf8a8e3329dfb6ae3bd7c52d22c4bed3b9cfffe185cd
MD5 f0d94dd693b67e021563ccd951534d7d
BLAKE2b-256 b47220c3dbb61497a7f27dda1d2049d563348a7605d43d1d71fc75aa97c8092c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.54-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.54-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7854722a1e808510ae28c70c70d88a511a149df41782542a9c68c732bb01a3b0
MD5 99cd2ca0c18b4d58369034f4747d1216
BLAKE2b-256 e060d2f8b493c286758db82d20cb507db208ff2ae7fb6acf9ff6e30573ec8756

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.54-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58a2b22f7dd562a16be26a2de8259a639c37ff75dbde45dd09e20e5e9041f360
MD5 ecec3e24b1d601061e329606fd550b1c
BLAKE2b-256 c55f027344ef5edf94f6b324b55434ef0d236962a7c7f2faf69d1dc3ccf6ead8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.54-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.54-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6633f562f5ff01db5ddb770d8ebd91a4401408514d7f5e1c4532af5cfec06b29
MD5 11270b53998bdcef15f9e2e4a3e82816
BLAKE2b-256 d29a9a469cc26813422f55e748bbe8ab0ba16aae5ed368022907621ce4c8f2b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.54-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.54-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 22467ac07521a41b42454127a341de467f4da40fbdb933773c2cfd4ef4562642
MD5 c7a0eae5aed82f7af718c7afc0f72abd
BLAKE2b-256 b1514d7d4cc2b9717a79b77771ec2afdde433af1691a3977fe3f0deea1b31cf8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.54-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.54-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7462088d51a662bd2bbf43590fc14e3411540d77bfcb49f1a5483948cf7d6707
MD5 9fec0239c3ed7a0bb4bc733077971726
BLAKE2b-256 67ef67190b8863f34503afa68d0f5501cd796f6ef033a8eda5fa19bb1215d317

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.54-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc93afb2fea94fe2a60b2fa5e649792d4d1d4e7a8902c63b9c6b943ac5d76e85
MD5 6dcb7a0f86a4ffe2ab8f73c7ecd5af0b
BLAKE2b-256 b5da58fe58328c7d6f46e53c2bc1492dd4ec5b527ea39f73488c105c71d29303

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.54-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.54-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 af852101b2e29ffdbf8bdc9f3c9141b26bf1ae6c40d3608ac24884752329a20c
MD5 f5fb7058d793829dec9469fa5a36bb2c
BLAKE2b-256 2d0bd2de019eea25cd3f6024323afa4f304f4523eba42377f14df762f935c501

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.54-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.54-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fd519b392f8a85563e662f19c4743a4dbb96d07f82fd67b29646aa92bc4dd37a
MD5 f158672c6119fc72c910b1587be1f485
BLAKE2b-256 dd75694a95875d0a03a086b0c93fbc5d808382c9612f9c69637f3e675f03dc48

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.54-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.54-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 657cab5a324a6f22403d98de8e2cd4e31050c08d0158e3caa0ec20b82a7aba42
MD5 5701be9abafe08b25620b8b921cb78fa
BLAKE2b-256 24592afb45fd1690d218dd05e285291cb52f86fd3fdf0bf9b86149e065430ff6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.54-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5d1f409a78954f1fdfc3130eefe1ad75b7b38dbfb2d097282f4e7f70638284db
MD5 f5878e100b5a068020ce42dc580e1b4d
BLAKE2b-256 02c55004a2ed6ac7afe4d3738941f594a01d099685d615416ae832fbe92315c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.54-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.54-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3e69239baf12025af77f424c854cfb1ab6d8802362226a285ba9ddc3db505360
MD5 fa2198f12ae2f8e4d5794b2958c2080f
BLAKE2b-256 dbcbc28a9001be0ffadc5d9294637656a208c049b975e1ff9319cb2efdecd739

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.54-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.54-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 fda5a4d13a3dc404f06c1af5b54cb8b5bc8000ce53fa172728abaefa582d3dcc
MD5 ddd50973a2274951ba2bd27a903b1700
BLAKE2b-256 3df079c9f849603624fc3c60e8e95656192bba75f0db6443cecb93c184460ec7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.54-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.54-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5dfdee14790af8e93da3af11d7aad42e8fd3d41e5a476dad4562afaebfec276d
MD5 898fe862c20df6d62de330ce318048a5
BLAKE2b-256 691ac09425cd3d3c72dcfc787c291679a937538316b9b08e2696fc83f02ee0c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.54-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36bc1dab36ff8462cc9ab74285c9ef361af69b6b28063a62348c61b60d72f73c
MD5 9fa458fdba39f65626976cde3ca7de6b
BLAKE2b-256 225b6b4868b48ce7421969a625fd2ab26f20773b3234ba2cc48179050c055f0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.54-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.54-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 14fd40dcf1282ee6239c2b6793705bd362bc960997e4d90811a133b5b7b9ba14
MD5 acfdc8215f7fb3b11d24ea0a0b3e3ab0
BLAKE2b-256 1cd054d3f7131eb9f62c3c0241850f19bcea202784734b88863acc20d7ab7f45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.54-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.54-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 29632d82ff2c0372500752eda65f2118d48bee15fc7abe9444eb3a24beb17a71
MD5 a3a0d24dae790f23656b4d9749938bc0
BLAKE2b-256 a6ca128ce9568c3df5bc83e4b14f4a3f8bba1f71f4b5a764b62c2a7322aedead

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.54-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.54-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e83ed742d4636ecdcc18589885ac0eeb6ca3d658bb49bba44e4f1e9e693e8846
MD5 9f8ee4a9fc931c27a7126c27e672b258
BLAKE2b-256 cf51dfa7e6363599985f8f60cec4cea8c6012f9602b0d73339fd83f0b62327c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.54-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3018c65b51e34f507a8b06b5d8dec2e8f01a75eca0b7acf2494bd53e695cf9d0
MD5 65a8e2fa5e3ca15152546f8803492dbf
BLAKE2b-256 ca314f03399f3272fd0c09d84da76b362b79f45085de8c971a36fbe70b1021b9

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