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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.165-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.165-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.165-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.165-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 36fbea1a4cc9c427d2415c0598d0c9ac481d4d5ac94cc9eaf4a4041639395c51
MD5 72c8a89e84cbb683d9c4ab6cc0f1cdb2
BLAKE2b-256 7308aa23d81683d42ac424df0ac00919b7fab0aac755bc2aa81bd1da6c2c1cbf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.165-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.165-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ac26389effb02fd61b07f9f21c4e8fb59e4c4a3edb9ca25f7f83b413bbd7fcf1
MD5 8bc1a94f4470ae4cdcf17392ab184da4
BLAKE2b-256 bc689f17564c2af5785d00e2f9a24369f3de3289c493f3b78414b49487aecb37

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.165-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.165-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d46f25afe8f722ba7a28bf1172a667ea73bd6bf281eb9fd71968df378520c6fa
MD5 893d655ee6542aad4c8a34b557e9ad35
BLAKE2b-256 b2619864a429dd37d5841047038db1d55c951168c78702f4e5483b4de13c38fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.165-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6bf5afdaa158977192936af267a71bcfcc063f2c0fa1a3e88ae645f691666ea
MD5 a6bdac84b6677ccb04f4e9621b0d082e
BLAKE2b-256 796f049a2debf099b829b97be6e6c5d613762d12c23a65e01f50aa43e4e96daf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.165-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d03dc94bf04445f3b9e863a6b5364e58587ccb7d1fad0e1eaf417950ae5660fa
MD5 2196d595d29c1ff60c6b62a573066186
BLAKE2b-256 5af5f86d4c757ac63f1822d57cfb18fd04d4780d7008a4cc9f721f74cd0c4dd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.165-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.165-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fedd37b861a10ec9a7b72994eb73923a6b68eb9938566c0b8901a126ad24c606
MD5 9c42fe54b41fa4357d25c8eb2ba7a876
BLAKE2b-256 33c5087fced32f0c3277f51e6aeae78604ad2230ccace4783c4ca329d6982525

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.165-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.165-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb1ec459f7fc53f1cadb4658ef6e28683d4826d85ad726c78a669308d142fd5c
MD5 207d5ae276257ca2a0ab2a146b77359c
BLAKE2b-256 25ff28c056c39ecfdfee69c6afaf05db8673cb63c3f0d9df35054a4c72a21ff7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.165-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f3102d1976d4c007f04d70844575bfbffdabd2af55659e0f35d7d4cdf1529b1f
MD5 530d853bff63132eba41f023d27bcb04
BLAKE2b-256 ebc2beb36177c1a079b9f174b6b39eeb0ca7d096175739dbef358dae56b9c11b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.165-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5f1ea0852c9511c41a71f32b71f2215d6b3ce257aa9d6bc208a711e845e0f93b
MD5 ac85ace61746c35d1d2b046f5d62cda9
BLAKE2b-256 e6ea1bfff8b0efc2aae1a686158bf9ee73fff25b1229067221e8e25c9bfda28b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.165-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.165-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9706b4f6de1d9c8fb63d216178ca128ba004da1f8d752b09a50cc1fb36fcd39f
MD5 023d50fd7b2b4184220895475a10c8c8
BLAKE2b-256 0b0473ffa7eb4c72c2e4ae55c6e72117a46306f4ce68a1243ebe8fc42fed78b3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.165-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.165-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d6167b5e1bc206eb2a1987ed3083351e195e99a58570571c36e2fef369cd2acf
MD5 e233de55081fa72617e20814745c1fb9
BLAKE2b-256 8d2f1637ae1d48d5aa33a743f763fa2e1f34f436ca374b9adf79267c11daee87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.165-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41b316b505b413c285431c84aac270918b2ae67ffe58d5efdeb310fcee161a1d
MD5 196e728b5242afc981fae47eaab49286
BLAKE2b-256 c6fb252e3e6a3bb90696f3b67d5ad78d8fafcb42a0f5711db3e8226875c309d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.165-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.165-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e7404215aef754fed8b4fede129ee56c0241a7f9aa79d10b99698f68a2e0b06e
MD5 f65154e3f542f4fc212cba6c014a96a6
BLAKE2b-256 f3661228063ebe42948f86565f5ded9ed2de179207ae60708e349c97f536bbd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.165-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.165-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e3edd59b99226d64d16c65e4865e101c3b64429ac0d6ddbba86e6babd8484ce7
MD5 f81417fbb29606ad2e5f2709fa16b367
BLAKE2b-256 d7be9ccaf4e7e9228baa2dcfbc50bd31a6287a031d4b12ae911ccba359437b92

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.165-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.165-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dea4a1d4505f9b9f48ae1f6c91443b98ababb5c63fbf54a8f748ec774d84c54b
MD5 3b7b2d790f8528afd7e9e7225a698444
BLAKE2b-256 5fc138f1acb9ff162e086e5c819c74ebd87accbc5b33ec762a70df7e6b9dc686

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.165-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8df2060caa41e70ca9eb840e5c082f0ddbeec628cba5a1f041de86ddb4abe956
MD5 00d0d185f9192a71bd0e2f9e43381df6
BLAKE2b-256 4e8e364779162143e9d2a5fb644f8b68521bc17bde04995b0028046f66c8ad8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.165-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.165-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 759701c1e2f44c74300bca597a4b62d33dc5f4be6feda937521f1ac4d79b1aef
MD5 04bfa538d772278f254df2986d901d5c
BLAKE2b-256 f7266ba7a38ecc179a2c1336f39c08b1d4b2e69339c0f380fa8e84632b1e3ea3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.165-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.165-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 06b9432e22a79ab71121b08ff280ad123ad4488615220ae87a379aadb3f42ce9
MD5 ec866d3c85b164454ae92b7159e08226
BLAKE2b-256 fad3f5391e3a2682b200580db1d85d2d8d31370ce5cf831ccc7a918b48e1c693

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.165-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.165-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2cb44925a6d9cfdebbc4f7ac4167f736aeaaf4a61d71a84eb31a7eb819550bf9
MD5 f4921add7fac3b743602cef7ff0ca9d4
BLAKE2b-256 43263212c8a8264f3b9b5f948bdf0417f654a7220898be7f1e01ac6887153aac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.165-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8cecf3f562555ed09bd0b1f5de93a172c5678f4d5356ccddbae9e41e0279683f
MD5 5e6b429a53ae097c5230f31bc629d9f3
BLAKE2b-256 9f899d862431dddc7fcf9adf5c4196bdf65ecf80a8c14a46800f9e2ebf3a3880

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