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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.287-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.287-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.287-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.287-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 da3f8ceb96d5c3edc0d3bcdd62ee0278b986c994f6da3f86539243c679176ced
MD5 34b20cc01f6618c6b66f4b41b2915cde
BLAKE2b-256 5ccd0636af5b48f1d17d844059d14bb9b57254dee0e0612c6b3b1494429a0d15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.287-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.287-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6e6e2a573b2183a919d4e7a031dfae7f1ed5872ed1d6d1cfebeed7c6490b5156
MD5 7528a5266b3b29c6943f1c965260008a
BLAKE2b-256 a1e32a03e7a3ccff8813398d386bbb4f9ae9c1cc78bc3baf93a0144368965194

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.287-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.287-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cc2f23499fb2c2b24b32d80205e7608ceaa451dc5fcef6842e9fabb48fe07832
MD5 aba400695e4869b90c77bb64b8a18ebd
BLAKE2b-256 9cb8a49e6a1e7a0fbbd9ff16b3afc8d8d29e715e46e09a243064801d6d9a7985

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.287-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4026e1d3686564d8729c9b994b7053d0457ac76aa6b71487b165f9628a0fe5e
MD5 9592f67a1044ebed8c0b60c2b0f29b56
BLAKE2b-256 7e6d49ae1ee9e75773f8f6a47c64d2bf0ba750481b7a7d7253d3a94396b37ff8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.287-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9682861b70b8955618f0506115efd073b4638b9bcb5c4229757d5ecea4f26a63
MD5 045a711bc94f5c5f1f1d7da0df1f0a04
BLAKE2b-256 c479d5039e404a12689e4350658c658f2236352dfb793c86240f6c5aa2045201

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.287-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.287-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cdc391773c1834d69e6d0f9447bda5cbe8e57c879a3d3333368fac259b75c8c8
MD5 6c86ccb07cd026c90cd392e0c08c710c
BLAKE2b-256 e26a6f78ef79a9e79eebdfb94cd8cd2b7dccfb8e66f1e11874d06080ab1514aa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.287-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.287-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd461186eee4fe5a8fe7b77e5ce96938124afeadd434d04b73650863370f60e1
MD5 60b1b1f92a99cc84bedbe3b4a8aa6f4d
BLAKE2b-256 1292350b506f95422a93bcf9a2767de1067d9b6cd8906c0b7b4b20d7bb0d5e89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.287-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b642a6e57db8bd96e64cee85c811fac1e87c7efe017fc3a1baa1f317e07baf4f
MD5 8e5d72d5dae99be751c3565cdb661d55
BLAKE2b-256 ecda36c12f0483826d71fa28c7c92abfc4ee2953144f76e99c1da19983a50d8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.287-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 717dc16aa8b77bc39481a273e11b40da7528ebcbb6fe1bc681d3d233379a88fb
MD5 b43ea6d25b44421987d3c30037e8b3d4
BLAKE2b-256 d3e469fb0dad2ab16514ba2b4d120c4d8eb88e69df0eee121d8439746aa68339

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.287-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.287-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 82903654140042d8f06a976cd50fcdf4098cf5e1031e3f63dd5c17ba4e98515c
MD5 cb7d41f153d7ed014bdd4086a7dcb067
BLAKE2b-256 e1b1aa264d17e661adf99b5a0ea05bf217a46a4ceda068e2075a8ed88accc321

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.287-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.287-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6705330763967978b63e333637d91359fc2636f1719a9df150af2dd2d6a4fe13
MD5 1d4fc9b9d593eb27f2fb61245b62d41e
BLAKE2b-256 05460036f4b4e91c05f9cbc78b18ce48304102b8a9ff7da411c06993d30b80a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.287-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5225581bcb81d51a1fadddc4a33843517a74c4aac4422ac2185be8614b23aab2
MD5 046680efcab9094b6a16814c47a75546
BLAKE2b-256 feb98b050e5592e7ae5f0ad9edd38548f5bdb4e13aa565aea85d69f745a48297

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.287-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.287-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fb983429f5f43d367328a2fc6a98bef5de72df47de0048342589241a168c57d4
MD5 c6d8c2e11d6bb881d8dcd17d211e476e
BLAKE2b-256 fcc516234022deee9bee6aa20af8096d2cf608e78e0bdafcfcb2ddd89c64b987

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.287-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.287-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 284b88adc85cfb8149fc82f186e6a0e96e9fb5085e94d3ddf4d5c80d1b27d70a
MD5 cb71a67b4b441524b5c964da37903528
BLAKE2b-256 70bac7f129e06a19f5ffac7d164d83c5049881bf950abfe5fe0da9d143ce02bc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.287-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.287-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7cabebd7e8024e56d1a6381ee037abfc7d3d747c70b13a9e98f9e8f88bebf9f1
MD5 6ea5854c06acf9d84803d88960361beb
BLAKE2b-256 482764c2c31c106b726e1b10c5780c56ea76ce1fc727aa08bf90f5ab77625a0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.287-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 55ef716a2e9036962a5927c4892a451b80f23546385da4036a3ab053ed46e066
MD5 27df550a8b89f79b8d9976575b087883
BLAKE2b-256 13388a0f71ef39503ff366f27d7727e5505ae7438137ab0d3ded66c789a87c72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.287-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.287-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ffdfddd54d4c8ef0efc5c6f9f004143a0c8c134e3257760b72ebec0093f033c4
MD5 4c709b4e001d19386514fe10d38ad204
BLAKE2b-256 d61f136366acf7426f5f01e3949aaf29382e4a777dee6300cdce51282d1bf33a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.287-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.287-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 316fc259bc0ff3780888a10655c73c4d65dbf826fbea25568b2a48a32b589946
MD5 3748d235d741bcd42dbedae173a257bc
BLAKE2b-256 071408906c4efea99aaec549a96b9deab9b35c782af46e3041adf535107d9ca2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.287-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.287-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 101972c652f9aacfb4cbddfcd4abdbcad11435e230198b18998a421662c98e99
MD5 eef657421723c9e187bbe15da22607ae
BLAKE2b-256 7916b48147cff9ce8f83b592356f39d394ab49e8f92dff972e49e35a7cc65fbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.287-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db3b6a2fed5c9a6a796a8dc3219d4f9a51b55f4a080de51f26ee81601582f115
MD5 8af436ac0e37b8e21454677a6136240e
BLAKE2b-256 e885bb85a0047406133e2fb4b2d3189d3504726f54cf8a6e5f8ca43bbffc084f

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