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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.334-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.334-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.334-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.334-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 14327ebf019bd29507d7e2d23b5e2cfb12ac7ef07c7e64f0e4032cc0eeff02ce
MD5 c5e077dd1edca1db1dfce351e97242bc
BLAKE2b-256 ead2c0ee45bd610d1ca68cbae2adbce491ec2600f7bc471828e521abba04ed34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.334-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.334-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b803adbc19bc611e03620cad5c40b53c9c7d581574d89cd4145cd6d63c6a8890
MD5 9c7574299b2f30957feb7096a0ad9708
BLAKE2b-256 97fc539318baf484530f147cdca38c78a7571f99b63b6cbcb4b9c1bdba36cf47

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.334-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.334-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f47df778d03224fc7be4d54d2db4d5dbc3b50b46021fe9ff7f3480808f1527a1
MD5 baf4d70354766095720a63dbe38d6c49
BLAKE2b-256 f0b60317fbfd1f627d7516c633172c48a2b85eeee5005b603348ea0b900a3bf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.334-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 841acbb4f8ccf9481eb5d533ce8b80a084403603b0b92ac5ca4719b5c3f6d4a0
MD5 9c5ba8e5d3bb56c25884e83baffbc133
BLAKE2b-256 7d4fe99ce1cd499eb7d5d4a4b6d5ac6c53d965c1e352678bf8760ed1c5d7749d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.334-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 13b9c5ea7fd7264597990ae6383c0709cb6c24ee6e1f65bd7d477a673d3b731b
MD5 83acf0f32a909192669ec3a9358c51c0
BLAKE2b-256 6ab59151e5ffe9f32466fdff206d8a714a22bd8161e1ce018a23b2fc2f815cef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.334-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.334-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c2680d8a9fab73e5b64ecc916eaf3ab147140c112b67ff589e826d7a225ae80b
MD5 37217f5b29d5f7d7a36e900373d0cdda
BLAKE2b-256 b0eb0de0ac3fa61750aef30a35fe8203c51c65ddc2925f04e3860b545b8ed3c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.334-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.334-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d2fec52370c661b6b4e166af643b1f3d37948810f6080660e84edb862d4dc695
MD5 6ec91fa2c96ebd9faa871caa56f2b53d
BLAKE2b-256 17f72e0aeed61b6af41d415f78ec17cb09bfc3d4cec5ecac3ccb468e1b9e5d68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.334-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a5d483aff963884d34fc341c588babe24b6d5a2c8fdbac8d5a67c3bfe2cb00b
MD5 d4d4ee229ecc390c4758a46eb8421c64
BLAKE2b-256 5d08c6b7e06f3980d3f9540bed227114514943d629f881704b3375d242f40d54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.334-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0def057ab23edbf2be24a0d39b19ded938b7679f73d602ee96005fd9ba7941ef
MD5 1435a765d12805a78d9616742285b745
BLAKE2b-256 86667ff97f9f3a51f9f02fc5804bdde39412bfbf5eec8165686c2b54524f7cf1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.334-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.334-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 38f3323e630efd789ad527132106cd962b0932227d0c55a81022ef48776d309b
MD5 3d2aeddb6922d0d1b9e270358bde346c
BLAKE2b-256 d2786d5f5dd4187a764b0a236a5fb71f99a9a16b67ade258a602d703d3576aad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.334-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.334-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2b5e67a1c83047a80e2194385c7c363043be457a2a6827e2b373a4c5dd3892ab
MD5 79b5c5ed7c143d5a8bbd3c396415470b
BLAKE2b-256 ceb9ccfec7c0c5f48ef28052268e4572058ed8f7b483f63cd115d4f5978b2a29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.334-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36e0568304908382c7598cfd22db5987ddada68f13bb5541ae0a2242de74736a
MD5 ca011dd344597bd310b275e9b96dda85
BLAKE2b-256 9702c4f47202041e5b91cdfe3337102b77945b38b2eff6681ac1997ecc6365b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.334-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.334-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 189703c641f665ce22f3c537ba3dbb6def22870c0e5927994b7501af03eb374e
MD5 3aa9061eaedd9717f64137cdc5b8ded4
BLAKE2b-256 a67691ea92047b6fbdb5024733b0cd1c22b0211a0cf50c487c8527fcbfb5bddb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.334-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.334-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 47ebfff9f5be5f2fe9100f866bef18e774fdead3563ac4942d92f080011f86c3
MD5 b81f6bf6ab5c52785d3b06f0dd3048a3
BLAKE2b-256 50bf81ca8decc0851e7596652a2f23f1ce6b499adc2688596ce826fccf0cc084

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.334-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.334-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cd82ff80a9350442a2d85e0422297c2cb28e9997ee5f8c538a06624efc8594ab
MD5 02c4b5561aa013b1d9bd9fba3aa5c0f7
BLAKE2b-256 7c20dbbac78c92cf0d5dc08923c0e150800f2363de46963fc9ec21463edfcf97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.334-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d515b0cb89ae024095d4a751d5a08f69d966f05e74d99d08d0c92d84cc16fec2
MD5 d6bb8e9013e95d3f10c0312488412174
BLAKE2b-256 b3c3bf4b07eafd50129a2f454f00628be60c6f5df8a8b0750ddee805fb48fb2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.334-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.334-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cfbc56acd0247786121527c11e9e7b1bd3d3b834b32f548a4376e123d7e37bfe
MD5 09b80022e4df20a16a375021d4d6c15b
BLAKE2b-256 3c2f406d32594582929c6063ab5d1bfc82c0d88c701003ec6d2b75c48db1166e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.334-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.334-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b5ca7f7f67ea4613a1e37c2f96a80c677a43b4ce49cb132e31dbd3b5f199457a
MD5 4f5792d35798bec30c7edf6994d8243a
BLAKE2b-256 b903cbcfb8817d143682bd5fd7fca400526361dbb82fd5a81722a54b9bb54331

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.334-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.334-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 184389f7b01e9e5b74b4a118836bc7b2f31ada9e1e732e0d37365faa7a35406b
MD5 1339752f25e9ed6bed2f4105377094bf
BLAKE2b-256 8c77f19e0184b34301a76a7521d5c8b7adbcc2174c64ab25e3d5b6f0b9e12907

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.334-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e039c6a2455a5745b5a1356d76955b12b2e8e677b7b8abdb46d980b578fa924d
MD5 4324d55d09386281bd2d8e969be1a63f
BLAKE2b-256 89d62709b96a6b1a92ed3a91345e9c6595d3e2a97c19356ac3604ca8d6dcd055

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