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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.24-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.24-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.24-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.24-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.24-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.24-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.24-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.24-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.24-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.24-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.24-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.24-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.24-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.24-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.24-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.24-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.24-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.24-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.24-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.24-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.24-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4.24-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ec345cd32605c73b6ebbd444d1c80b7e257191fe24639a4774ef98eb066ffb6a
MD5 15eec81560fbbc67eb33dd1946fee876
BLAKE2b-256 4eccb61d962392acccec34da15796c334398084a3d52d5570bfda6975fcf15d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.24-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.24-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 da77cd78dfc385323bd99c9323dd9bb1a3404f7b8acdd2cdc1f5ba64ee974e34
MD5 0431f0ebebb80c769fdb60d21c84dca2
BLAKE2b-256 d643956b32893bfdf56c8369d872475b36470284859a34c4ccd0ea455c0353e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.24-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.4.24-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 968be554d346877ba7d2c274c1c0eb265f42f29182c73c77f24ff1013e95da85
MD5 206aeb531cec2c0301def4ed840d7cbe
BLAKE2b-256 7d2be329710e2718132a5a607e964e9ac7504c9bb9de9a263bc27faa84ee03a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.24-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 42eacd9ebc5cf25d9baf04b765b38112f4e899b7d6f562bf6cf2d8276045b4a2
MD5 45a7d4bf88f683e63dfc65ce8bdbd869
BLAKE2b-256 0c3a0abc3f812324fdfee7394a0da8c3a990c9943b26ab5969fa100384075d78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.24-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.24-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 11b47fa167067b6fb45c3d957403e1f7319f3129a69f26778184f5f201e0a6a8
MD5 cf57a7bbe3dd889e51bed79ceebc53ac
BLAKE2b-256 0732c1737604cc6b5f51fb715761cd8f6b3d5e2c48387a8d7b47268e621c509a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.24-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.24-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 812266c2fe13d3083b850f3d0e1ed1cfee037cb66c7f30983f98e2e9824436fc
MD5 1c0b8c4f3a37b2f55c7dd6c456bda6d0
BLAKE2b-256 419e4c23b4885c5266dc2e88cfa52b210d26bb0c091837b528cf8346ace98e9a

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.24-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.4.24-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f6e87e768fa0e447e293b1e1e041b0bf7d81f1df83ec601a04e8487b0370f61a
MD5 3cbabfd45f7d9ba31b064285ac9084ee
BLAKE2b-256 be39bedbb0b637629ae33122f8a8e6c5ec02178d4be8a5022450d9654fb699f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.24-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb8ea7b75808798b28a5314106f1a2a759a07c6a815554e9728a42a490991255
MD5 29c0264f7cf8df91720105b1550a7d0a
BLAKE2b-256 70109befc0ec94913b330c1c24c1203717b8b10c5494155024ae6ba3df66258f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.24-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.24-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1b3c1b648b436ed441486a95ee2167056b7eac19ff62eb58c377c3d1b18d97ea
MD5 e4fbf03cd03cf716271f3ce8f72fd755
BLAKE2b-256 5ecbcee7b625f9d53cc07c52b4d9a2d640ad8da712eb7e3973705f6a954df8c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.24-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.24-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 97ecb3b5d6e01cc4572f4eb6d82a63c421a3026351c0eb5caed8168346b0ab11
MD5 a32ed8d2b6e75d56497a599b9add92f6
BLAKE2b-256 3c1b813260d3dd7267c8412123937afa4ae1fefb92f65dbaa9950fc4a525f48a

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.24-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.4.24-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 064fe774659e80b568d584fff3c8448742a8d3ef03cd19a70f8c0d15fbeea15d
MD5 f3395b45274b6c27ca157080d8a5ae45
BLAKE2b-256 17c7617185c0366372bc1cb0607367e64a3a879739e91f08181f055051404958

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.24-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43988a910be9aa5417fd9a4bc35c191e511251cf9c43ccf2ac45a9c06b8a88c2
MD5 cc335c40af5d68ffb1bfb0ed5898beca
BLAKE2b-256 dc226c9e43b42b71d1abfe4db209951b26d447be08abb479f53cb41c4ecca99e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.24-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.24-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2d6522b4a455e9b8e98e44603755062c8f30fe27046874071afb549b01261fff
MD5 8f16970ccf7fc40c1ac2936471a741cb
BLAKE2b-256 869f657b5be729a2d856a3611f75e6b923c7d07a7b5fd20acb7bb95ab78ee55c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.24-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.24-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3c5733fa18ac40e055b91005968926e48350e4ee0de6841bfb88b027e64a4b12
MD5 e7c45c05641d1ecb94cf1a63fa007489
BLAKE2b-256 bdb4c241d055229f43c80be0bd4ca9faa3e56dcb3762c0c38f89740c4676906b

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.24-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.4.24-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6ff00252f7d76f9009c502dbee42a92c18699d77dc191cd10caf8bc6a1b644d5
MD5 29f273dd8ad74665ebeb62ca9175f634
BLAKE2b-256 ae844ca5acb03e59699e566b2c58a7c260089cd218cfd150bd8b8d72dcbdef98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.24-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a59a34514365b40de6a38ba217ccb65e1f32e45b7e49142f885d1d5e3b47a51c
MD5 2de2a4537e5742ec67674293ea978e3c
BLAKE2b-256 6165754305d99c136aefe384fb81ab8da287ab9cb6fe99a4a4c59fd0d6dc58b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.24-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.24-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bd0d140dfe37979537698fe69f533f57599420c90bc00790fce2bee4a307c53d
MD5 7971a9cf304cba8a86f2666771b19144
BLAKE2b-256 47e88bb4b25dbca7706154d93fba29e05938c4386f8ba05479c78accd8415c6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.24-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.24-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1820b5db807e8f4e1b70968650e45ab230b327da0a6fe134a866e3f8747a62b8
MD5 c387d2cfef19e793ed4cbc760133cf92
BLAKE2b-256 797ee723dc2b77bd65961149601cbdedb9ed3033a8235a5e9210a95e3152dd22

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.24-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.4.24-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ed561a1633352ac4f580fac3a22acb1a59b2a0564c5f12ef81fc8b51f3f20069
MD5 ec21869868956958c47b7a85a045c17d
BLAKE2b-256 8970aa344889c8bdbb71a0dbb0101520dc8957ce69437d5fdd1b47c07296ccec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.24-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e4f4f8ad42df8e8690bfcac77873aefafe56f5b5334cf5476a63ebfffe9c5f0
MD5 09693f43e10d4eb16415f22d7843753d
BLAKE2b-256 b2114842733852b6b756a1bacf817de945d4ffe50c6c5e54c4341ad1f4cca65a

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