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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.399-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.399-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.399-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.399-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.399-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 65ad50fa70cd73dfd45ff89e1ed941f25114117914f07c9546c649464b1cea2c
MD5 4cf49a8adfba91665976763ab36b0a1c
BLAKE2b-256 e61c6a73c7ca7f4f2a825a83d37b4c8bf482011b6791f34b9cfb4328e0a05f6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.399-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.399-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 419c06ca268e256bd7b06a2fe682a3fed4f2d2e4b9cd1cf09d6f291a1642f5d8
MD5 81d400d02183f87dc845d9e7f544ad64
BLAKE2b-256 ab58a78d8fcda97dc5d929fb7041e7265f9b51f31b8bab367b0e664cc519455c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.399-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.399-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4efb158210ae2146a06774bbc52c895ed716ea134c4c4718d14176a58019546b
MD5 2f282864d296f34ba966da71eb938dfa
BLAKE2b-256 5a026acdb92ae52aa151bbc4cfa08f47823e837fc60cba4b8bd1b0496a976972

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.399-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7110f493f47f4ad5cd71e3833e60f76d8618d423cf1dd74c0741f4492577e7b1
MD5 68aa2326b84a4384e87e21178663f4d3
BLAKE2b-256 5491942a2f75c77fab2355f18b00792e7434d0e053db293f9482005f2ade923a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.399-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 12ba67710fb75c25b1e7f23113950fcd7ed2a0768e7beb3febabc2c31650dbb8
MD5 b1576a5ec2ce8ae4cef30b5b9bdb1021
BLAKE2b-256 5ad7dc49cc0125d2941f4b2ce06cbac3e7e045e2e0402e04e1860c4f4ec25939

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.399-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.399-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c1ab2eb61776927f80576362726fc5062310e6f2f27ec75c82c9afb3a9e60240
MD5 8a25e7a4d66534c317151ef6e2add3f7
BLAKE2b-256 756ad59aba7fcf49ef90efb418edb12d4fb24ab7a0fafce83f9d90ef117f5931

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.399-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.399-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c6cab666a5dc2c8618601bdfef63191f2841da383b90581635334312bd82d581
MD5 68b5e731cbd32873832a24479a39c1d3
BLAKE2b-256 7c1ca69737fddccf92b826052250987b7d32c0e3cc9731754d58c214566cf94a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.399-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e823f4af1cfcb0199f06c63ecf395aa83050683dd484e1c728a6d680d2723298
MD5 cb6f46d2b4ca708196042f2ca80188a9
BLAKE2b-256 5bcb988358de8940aa00ba1ce574b800f1b08c416fcc734d5ebc954d31d4d133

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.399-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 557e30b98f9e689ec40884b4d7938cec0fa8644c1f9a40517b79067eea881fad
MD5 db5800fc9b6805cc9e69d3dbd9c48263
BLAKE2b-256 10948fdd976f28af8fa44f7d3c49483ab8bc82a3158b27a4e9644abf0f7f8e22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.399-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.399-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 65386dd54bf8d1177ecb0494f10e4fc35f6e63593aa4d03a24b3f3d763d3b442
MD5 70b3873f07d9b07974df484ec6c9eca5
BLAKE2b-256 5836d014494ed18fe51bdf05999b0ac5723e5772fca5837c7c508735834f1e90

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.399-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.399-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a501d88fb7c67eb8c0b11194061341ac6ba0bdefc8fbb256b158ac39bb456090
MD5 a4a3c27f92000c41178c67530ec82a02
BLAKE2b-256 b70e82f3888c1ea22068ff18912a35fdf75135ab9fb208cfd8545924e1a87249

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.399-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 884eaf3099a3244297bd18e9c10aabfebdf6d329cfdab6908ba3f85e4a664206
MD5 7488b24268c0833452ee5b2f2024f049
BLAKE2b-256 4f775ea2316e9e6c66728811c807823d0a738b8ae327a780b1fd21b543c0b9aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.399-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.399-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c673fb3343322cc597606fbe796e16d05e6c36dda3ac937ee9fccf4578959a1b
MD5 044c9a53d6cfa66b4b99f275179db4b9
BLAKE2b-256 52a1fba3ab84531c767ba1262bab8f2be2717d103bff28c09d7c88bf98b94192

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.399-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.399-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 267db5af555661c26af883dd731003652fd454e8ada066928187afcbc41b6cd7
MD5 d19ef2e288c185da335f1e0fce1d34a7
BLAKE2b-256 6f335cc088639a8fbabc331cf84a22983e6a10ee3c85df0ebd1d7c28cef99000

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.399-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.399-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ea82288938e5c2ee8c5a9efb0484846ab831c9ee3102e5ac76675f0148c699aa
MD5 5a0234a86be89e4d0dc786cf41655982
BLAKE2b-256 e64e53d5f18c46d84dc107d05c8fd9b437c49a00493d589af0b72cd7fe944462

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.399-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2fa91f931674841c32f285a64f57f229f8239478c972e277613e635a50d33881
MD5 01d1555fc62a750afa75a6367298dfcb
BLAKE2b-256 678a8fd33d0cd4b3260f15455449189fb237086f53734defbf25c2133c7ace29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.399-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.399-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 17663af183f8d704b7f224fa4b4527d8d1b12b68b66cd8bddefd682a57dd348e
MD5 0a3d6e871b3b2f8726eaf63713138b38
BLAKE2b-256 bb86f3982d2f53198e1d7e8c5d25ae56f3a3fe28cba8fbf64390afa6da1e95b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.399-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.399-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6c0b9c94548109ede6a8bd62b3cef2dd8f9eeebb1ebc2b4ff505d7de5d115e53
MD5 6f7cf26f66c9891d71a38097ffaf7454
BLAKE2b-256 d57b687221d37fdd555d3c3b1b57c821730825852848a759e18610762a36caef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.399-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.399-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bcf68b59efce1064c90c8f88c3fea96f9870544330d7771aff2ba55c24a0721c
MD5 d59363c7e89ef524897cd9e5b0ccf8c6
BLAKE2b-256 c3577bdeda3b69d17a1aad36d5e4c19e155a5c19bf77140e04d1f049cb25db26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.399-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6837e9b1cf1a1383ebc8de72bbf58053e8587c0ab86f273f63109534a0c3f95d
MD5 41ca56e66145c8f2b71d56c0e02e4d33
BLAKE2b-256 cf9625cbf8fd939c8ac7b27c20508adfd7b96598cf258bb4690be4d52726c965

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