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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.952-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.952-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.952-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.952-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b6a66a9500709369e1af1e5f6bc5d3f8dad12b400997ea9d750399c10b4a6d1d
MD5 369021c2335add3961a1d97062bc2ee2
BLAKE2b-256 67ca47cc779fa7aa8acbf6e4390e74a4fa21e446367b4da2dc3f47ea88e9bd81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.952-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.952-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f574fb5d14462f2c6ee8baad36446af2dd86b9cc629b14676563b5576e2c3947
MD5 dffcf3fd3335946a7b921440015338fd
BLAKE2b-256 4b45abfb8f269805fd6e36cbd48e24c692478b9bf4c1b123480fc2b1a1e66b12

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.952-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.952-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 17b0279d739024a60c85277157bf8c633dbb803c2f0d09123da08351f2fde78d
MD5 08df067b54fa56549a4c3de24a05f4ac
BLAKE2b-256 1e2d48d6cebe0392e982cfddf0a35c2968aee4d5b7d4555aa5c8fb26b1a11952

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.952-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a066a0337f1c20471aac3284fc6cf943d19192a25a6b9245703915a3eb8d8054
MD5 8ac9935fd2f6784884c7219eadbbaa10
BLAKE2b-256 1f6f3bf170c15f56212a53d1ac463c9d8b961a92531e314129bd9d286e2d62c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.952-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a338b2c11c774a98b52c5e447abde3a61f3fa710e8109a1c085ce63ea440dde2
MD5 19abfd6948d6323cc1dc60ce4bef9548
BLAKE2b-256 7800d15722b00cc62fda8e1c9d0810134e7a1644391a9056ecb77e87bdc84600

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.952-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.952-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 33b070d7dfd9bfa1369876eb7c35ea9dce57115ad45037375a81bb181ab01d86
MD5 64f97518b5d33fbc426a06d6f37cba11
BLAKE2b-256 8effdae8878c95e82b107e3fd80c248bf488434d5d9a2508ba1ed10f86a59a9b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.952-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.952-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc32ead78843186f0db6933ac385ca604a2beb0aad2eac5a9bac516d8b1f4efc
MD5 06ff002896ed2cdff951bb65f6ddb86c
BLAKE2b-256 944d0d324c5484bcbe4dd6549fc018155431883dcf2ad03f1e890fda6f12612d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.952-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 700a052b5c567f145a78a0c0bcb769bc557b676f1b32d786eeb8c4cb8685da2d
MD5 ed0f59fe230b0d44d0c211419e6f27eb
BLAKE2b-256 c0d5a697093af10c5b2620af63cef20244bf720647e16b636727ccd16c7aa1c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.952-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 efb8d61d4e468f4b564ebefeb8ebf6c7f9c4a5bce709b94e3fd6458064217cc7
MD5 5d0a2d4516670c5b34a1f097627d7bc7
BLAKE2b-256 69a431b170935bc1400630d51a9c1e75b11e06768246d50f45ea14300c0ccb28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.952-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.952-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e948c4fe9a2b3656cb1dc2ce6442d2cb8d866320ee90be8b0f75c43f9c76c64f
MD5 2c402e53723c6b0abd2dfc09b39809f4
BLAKE2b-256 43c686071064e090a1a2a8c25fec06dba3d6170e9ef2638479d74dc3f38fa2eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.952-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.952-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 68d32744e402bb3e80dc3122f4a3f827379d367da539f58b2a4f636ea4db6d63
MD5 6ce95e37ec99c6a2b1f7e82e9edf56d1
BLAKE2b-256 2b5f670b417ae93377908ecf11c0f9871ede7659ec92c79763b84f0386c93e6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.952-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df0174df3a0f018fdc20505c214a9dfa4d555a7c1c6bf31a5dd6c880133cece4
MD5 8960de79b8ecd8fa451561663c2c8b73
BLAKE2b-256 ad1e1be9f76dcd117a6e246ab58f056cfb91058b4cfce543012424bdb6ecd415

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.952-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.952-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2d29f967913c28c78e85153b0e7c08743d9e183b0ae904d42ad75ac8921531ad
MD5 9c13d19d7636bac5c269db089f47793d
BLAKE2b-256 a3d5e66ff948c2f93f9c8fbabfe4653abcffed8244b5530605f3cfabf241e4d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.952-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.952-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3efcd0792c377e51e97f37aab001465bfa891d0d4310cce8727bd10adf27a049
MD5 7b8560f781c6ac97a832fbb41ab1d929
BLAKE2b-256 fc12d234508c5d0ed49e2c32d819693b01f63ce11474b2fd0613bea901ee3ac0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.952-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.952-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df2bcc1b18c9db172ebe6311db7239cbe5922de5d6420d474ddbb2bb4239284d
MD5 d4ac839f5698fabfa982c38cf6cbb7fd
BLAKE2b-256 a8e77f6551cc1bcb1138546548ae3577c88eaeb0e55bdb87cbf5a47267d3363d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.952-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 baf88cb9bec26828068e7f3ff66ac71a5a4409000c3d9616ca4b0531347d50f3
MD5 b45fa2c2f7bfcb697e477b26a3cd4b33
BLAKE2b-256 c313ebed391c981282519ab4200496769de5e2476f6fd759624adc4e7b9a21f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.952-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.952-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 510b3b639845066fff09c5db9196575d51c55a64a26c46b3e72ee312a658d5bd
MD5 3e8b7938ea0a8b971ec3cc8a2cd1a324
BLAKE2b-256 9680231b8b4755da224f621f05e1fdcf6268fce9d0705c8ef75e7be5ae3885bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.952-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.952-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fcdfd125c93a0766213e15ff6e272756f1f50b7b68dc7a9f79f8aa6ce343d5ce
MD5 38f7010750e15ab826444cf6170b227f
BLAKE2b-256 59a6cf3e405e13ae410dc8bedda3eaa8a38133b6482d8377c939064c63e28fbb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.952-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.952-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c2d83534378cc373ac02e348700d64fcba9cdb1bbc36470ccaac3a8896db5b9
MD5 7c2be29c395c3e06568415a4618207e7
BLAKE2b-256 41f824e4f1049324e82300e86f91c743150fb79f291b87fdb0c40e2f5e4c3e48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.952-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2acd5545df0fc276d9211926e479c614123120bd8ff08ae6434af5c9e18420dd
MD5 6176119765e278f3a28790001149cac2
BLAKE2b-256 175595a3d640e20bf8328678bce6cc916856ec65a92eec978fe0cda70d1fcb06

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