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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.742-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.742-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.742-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.742-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ae7d8f56dfcce087a2d905506f82b9845991eb8f5b3367b576aab14dcf443cbd
MD5 ed516097b03ad3992e9bc7a7f1a31634
BLAKE2b-256 b8a9a0396e36e4f6c2f219727dc62b9cb265373b6abcc113c20898a25812465b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.742-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.742-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 20d9578b7cc7aeac4850f12bed74418abb05f97a8cb115129493fee9e0959298
MD5 9ced218a2477545a87c0bad05bdbdc9b
BLAKE2b-256 36f1a2696b58283b4f7991225167cc5e95f7bfefea9e5f999d3e25c379680a69

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.742-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.742-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f10ecc38d263bcea87b4cb07d74e323774d11ab0b38c960ba7b586f4164f7882
MD5 dbf57886feee3bbe0babbcc797657955
BLAKE2b-256 ad88d5477334d9a1d7f6e139e773089d8b9c4f20004089a421cbb19ddb7a7716

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.742-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61d59256800c16bb90329e218800c700b1811a1b05db150cb34d1e9a19f4d436
MD5 c7504105585b5f58f253f760677ebda0
BLAKE2b-256 5a00b58771f1e5922a61501a0e95894e4908f35e246fa015f14ee1bd9402bea2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.742-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c744c0ea0788dbf839fe59ec0cc5048d75168aa511e9d38a88f07fcfd4feebb0
MD5 a91db7b802d1dce8964da36d8f2d6c3e
BLAKE2b-256 9d24a6e7a635a3592e5d5fff49fc224a3b269225e44d0b7c7e561d003f07b358

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.742-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.742-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d84103937134d5e42898044e3cafa9dca41dd97a051f6446d89ed547fb484a11
MD5 d4bb2bb49ee51a4229b8ade1ff2648f3
BLAKE2b-256 3709e4fc491c24cd4005fd428565e2347e45f7625496acae695f9e85d6e76f8a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.742-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.742-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4ad2dc9fba9a314805e8af999fcd9ca0337d23c49f4d14bb9abaf4daa3be289f
MD5 b52b39bcd465a8da375f255647ed624f
BLAKE2b-256 2ed7de6f4ceaf454522a7125927c737ec387c24db3bdb98d2b51ae791fd27ec3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.742-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9831cc42b5664b2425142df319cc8db0a0cca9289215a233d3bd25fde8634efe
MD5 a4fce7dd6250544133d7c1f3b202eebb
BLAKE2b-256 367c4b0f45cd68e43c538d7e7f0136f0e9c9595cce22111159927ac60d33d217

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.742-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 403f5697e78bbfe54dfc990797ba77c781b6e442049c9c30be617fb088db45a0
MD5 4a54f5196ddb95157a494d8c2a5f6a4f
BLAKE2b-256 fdc8602b62cfb552e070dce90c9b2a84bb62742847524c8bbf4dab18aebd6560

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.742-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.742-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 dfee2f6548325746e68400764198ab5fef612d1c613e9b6c1e80b27c00e7119d
MD5 2ba6d41348ba34b397749fba32c81c74
BLAKE2b-256 35fcb94d3c22eddabbcc6acbbe0eb0354f9f2e45cfcbb8b0d72be5f062868ada

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.742-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.742-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f2e9cc5064234448ee6311200607d377731baa9cb128134176ba2861734eab5
MD5 17c0139945d35e6a24bcb8182be3349c
BLAKE2b-256 372eada5a638d1babc243a9db93f3a72c0e5d599a9c79f594f23b5f2b6cf7a0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.742-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03af1f13d73aaae83411a75efb3d8b2d68f45f5d81a477247a556069d9c42d90
MD5 e5bf04a69ede8c64ee066f896f4df3ed
BLAKE2b-256 ce0dc40f8fc8ba5f0f5d7d5bcc4e90a8d34416f9d39644933c3ab8b83a90e7f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.742-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.742-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 358cc0eb04dc7a3bff7dffca5bf83d85f69f6bc7a869a6eabb99999989dc42e5
MD5 2bb5b6524d742431cf8d88f8961f099a
BLAKE2b-256 b33b1e9ba4051344bca2eca36b3ff2cd88a5da9bd60ff43d419fe12033bdbd46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.742-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.742-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8650ce390db49185a398c5b25f0b76fdaf2e517d90fed548f1cc12eef573fda0
MD5 f848d6ad8069afa4080ddcfe2db48f5c
BLAKE2b-256 aaa719a123c7b85a816811d9303854ea917af72165c993f9efa63d2ba9f1b4cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.742-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.742-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0e3d068cb01751253e2588a92c74043402e4ce11f91941bcedf03dfae576a24a
MD5 c6b1aee3d1c664715e26edacf7bdc050
BLAKE2b-256 d81ac61b462d0fae6aa1d39cab84ea255805a959fc768e0fbee2c55730bc09ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.742-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 488f41555af0d18ee941daa8bed3ef1e433f21d1088d85fe5786011ef576514a
MD5 21bc2cb9fc90da7a8e489e1cd1fb8e24
BLAKE2b-256 38afe72d89afb4ce2fbeca7dcca578901ab294af0859b8a60aec655717dede10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.742-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.742-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 249c08ae462df76afb7d7cf7cc2c67e40ef73311d0aa61d6110efbc90eac807f
MD5 82c5b9eb33119a07a45820ab3c9ee056
BLAKE2b-256 83999709161bc818ba935456dd9b97fe88d1c297a230d1c78c09e7738d808201

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.742-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.742-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 95cf5d4e2f7cab58c4ed4817094ac2639282562706989ed61ee2faa4422f3dba
MD5 d4f6f641e52487843ebfaf7ef3fb162d
BLAKE2b-256 1fd21f9d19a7c1b43f6f4335a95fc457208d8b26102173365057b3e920d92a70

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.742-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.742-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2eb206db009003205adbc6242768a1c76fa0a863a0d969d61e8650500e1a2ba0
MD5 d654239ed6994cfd1acec5a52bb8d01e
BLAKE2b-256 3f3c316d11a3545337243e1d51550159633e04c8ccd96752e58a35b0a2e77e10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.742-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ebab8d55177bd96c01fdbfc554566efee6c3eea9a88e9938be9e26053c9de41
MD5 1ae89e655d11f6a10c04a1c857c65d8f
BLAKE2b-256 b0915c62efe3c959056abb26e9ab97581ec5c153a2ade5d3b452af9b24e70ae0

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