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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.675-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.675-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.675-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.675-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 75bbd7058e9c0a34dbca196ee6f0f062bac83ac024403aa143b54bf959665846
MD5 3ce35810bc3dd79d4da88e19eea9afc7
BLAKE2b-256 94382a7df73a5845d07dc96433892d75b5a3744d1a3769869f8c63a26c8d7e82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.675-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.675-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5adcdca2a077f6a6e56b7df28f5b48941ab410a2ef88cf96524e4f096a52ef3a
MD5 dd63e4e751760e391ca7af05b842168b
BLAKE2b-256 b57ac73664adabd950f49545eee85541511a4af81a1a4c305e26ca3acf15080a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.675-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.675-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2915879da46bcb30ea40cb1bc12e2dc889de8e39532241c0e8d0a2addc9c2e2e
MD5 9cec15d57f72b861e65a7dabee2ffe69
BLAKE2b-256 6a24093bf5adf44389ebb9b63c73a7551d522dea0e8eb60759cf143778b286ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.675-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a6c4c5ae4a8a591b22883521930efa53852dfb98e02987cf46e60aa338e0d47
MD5 2c2b0121dad9c483b923216c9ee20d41
BLAKE2b-256 a8e7a3b75113d3ed6f57ec81a166f39dfb7b29d3a81b61de2915af8161336d94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.675-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2aac5d40520298327eafe0b6ac279bd5d81ec21f5fe6b4fc9561fa43fe40d41d
MD5 2ab34d9f15505e02c2afac3a065117c7
BLAKE2b-256 5523c7fe39d8313a1b5cadc8a13ace92f81f174d3a35a9881ba6409fb1cebd5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.675-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.675-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d334b713c28d98176eaac8ec403acf8f33a29647b7981416efe0315be792cf33
MD5 9bbba42fa2b566f2ed6c08681fb0bc21
BLAKE2b-256 f2fff9b5ba43ee74392c7d57b03c47462b7e6756d814555ed9646daaccc80a08

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.675-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.675-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4ecb95fe2a3247e41903ae5c81a1b3fa494144c7ec0a3dbba9e78e9788eb72c8
MD5 7e9464171882cf1c88006d5555e651ca
BLAKE2b-256 77ab7c58f8453c4ae58aabdc53bdfbfd41363b1b21fbee2dfad92d8890bbbb83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.675-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b51396b7fac11e2e98651c5bd1a5434d9e9475fa80731c879b0a24a22ab6999
MD5 fe0c315018b0b6db59e46c3e9f185f4e
BLAKE2b-256 7cab0fbd171d6e0a2fb85f9b203f6cb1d77cfba80cb028ca8d2b9cd684f3f698

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.675-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c0f2d60ed91ce9e68bb80ee675b6c74925ff86ed562e00bff5388f66d6d11fe5
MD5 152045e837d1dbe612966d6b02b41be6
BLAKE2b-256 f7e4639039d11fa2b4bd837262096db23d84261064f80c5159743b53fefa85c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.675-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.675-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cd0b32fe8541e9c0ee6f2d82dd1f4d92097a0815ab79a63bee6ec4a81baeefa4
MD5 5b95d1e144cee829d800805bfd394907
BLAKE2b-256 bc8a4f5eacab21c7ae3e2c49467f2842372c96673d464a65cb42374e40055b8c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.675-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.675-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 666238e922177add3cb4389a91320b436b8501778830ed11d50ece3e32738d8c
MD5 934309fb1e6a62c6daa4b905def322d8
BLAKE2b-256 0876c1c2cf6b68c50461890311380979a9b67257698389a7a9743b109f5b385e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.675-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b2508d517919eddca26fa77beae359e13333cd97af2a38baa32b2eb67b744ed
MD5 1ac22dadcec04191d9c08271a188eb67
BLAKE2b-256 3d66817ab73ed471c4222a0c304402714105f1e693a76cd77386f8ce68cc4563

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.675-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.675-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 50a39a1106407aedbd509322aa1e9bfca5e4459677dabeed13ccc27cc9afd167
MD5 93ec21c3ba7a933b32cec0a630a83ca2
BLAKE2b-256 4eb459b2841dae59630e07ba5f09074114dc7d672cd709b4dbd9595ec524c324

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.675-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.675-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d340d3e868d2bf47d9952e6a40573079c49b7d7c0b5c4feb71668c75c6c8683a
MD5 a2ab3601067c67aeb67749f1960a1127
BLAKE2b-256 923efa7ec76bf3b116bd39956d0aeefb8a219d183ec92e9959b9e209e2c0bfb4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.675-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.675-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 60947fa653ab6372ff1a5a0e098da915799dcc39097d4d233cf0ea4b36dd12a8
MD5 86ce1339f665adad029eeadc6cdc2dd2
BLAKE2b-256 ec098f61adbd4e92f0a027a3eaa147b82f4ad9639d9c821879afb9ef4db6a360

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.675-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a191c6b0d31b6b9c696efa89922acd80b88a68f390181501541752f385f894d
MD5 8913a92baf6742072fb1d2c4c6504098
BLAKE2b-256 970029e473403f00864e9a8e2c9e8b786917e73375e787e39193877448ed7ea0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.675-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.675-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e32dbacfc9de84d345d8a177f9db3f6581bf3dee81ef5185b1b52d6829645d18
MD5 968b4c12e07e2b98c1f0f1f80ea2e572
BLAKE2b-256 03f5d9d0c40fd609055302b7e1545a8b1cddece11fa0ad4100911a76cb837268

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.675-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.675-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 642fdb229faeeb9eefdc0c6973c545e22d9a53a38125750d022afc91aa5b110f
MD5 1d1e5e26882fdc496d4508f7bbf73875
BLAKE2b-256 60f2f3ecb1611e054504bc2c5c6cbfb9f92f9259b6031ad50ff3c99cf27cd01b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.675-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.675-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6f69f9c0549e86fdc4ed05119a2fcda25859f1427b6dda0d4d5ba7913dfec805
MD5 fb196d866371e6a07d29cf4ff5db8cd2
BLAKE2b-256 24034e061c93d20c08625f540a8e2ce8396f9d122d5727973835c7b3d4dd17a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.675-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a2939d978fa5e51ad9f3ad71323e42b1c6457fe82a246bdccf8b902232fd397
MD5 c4297aecb2e79d58419a926d3daaddef
BLAKE2b-256 1eff5fb75d736bb5fab1b14ab8cfd2a7dec53e8cdc38b07c764b7968ab696e6d

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