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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.81-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.81-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.81-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.81-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.81-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.81-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.81-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c135bbfa22d015777e4d13022a4f5f6b5135b19c374d9b17e1e5fa54124fd888
MD5 9ad3dd9569ac4f6878d53a2cfef68a8d
BLAKE2b-256 4a5e76e2c5310847202f5fbd3b5bc3e2ac6993bfe8f011ebce9733ebe1276e5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.81-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.81-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8b189e747369827138443479dc8046acea8a1da0615c9a07925c81353345bf5c
MD5 ada58481eea162e58d874889bbae2040
BLAKE2b-256 b59df8f8491dc4deac2034638e8069d6dc5ce1353072a0bd154d696a0415509b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.81-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.81-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20a3ae85f9c8a533d066515307d5a4901474b2a3affe4b91a3e0052d23c72763
MD5 43863926c5521f4bcca0725d1ce9c6f8
BLAKE2b-256 4dfc33c5480fcbe877a9de7d7266c16f628546dee6eb64ad657d0e45ae5987c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.81-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 496a001d8148effc1fea757f259debfdc11595bd704f4e9a11e43d81e6c8e7dd
MD5 f63d886e02f23536bde218fd27c39a6a
BLAKE2b-256 bec4bab4fe4891febcd1eb2665f4bdd09cb3703da614656ac39d207941db332a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.81-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.81-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9017e9119cb8e2871040d40def24de6f8389f2f3719ea887dafb4eb019f91e2b
MD5 64c98553e572dee31699f9f694164d09
BLAKE2b-256 3aabffa66edb4f1b4e699b925d2a732abf7130e930fd228f39566bf19af3ada0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.81-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.81-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 964ed3fbd1768540df0f3f29f301a21eb075b4d69702da653fd6a3b6af048a76
MD5 25c329ad02fdf06cf9c2aadb4f985a06
BLAKE2b-256 6d48b3f4693226afd0e40abc5b841cd8b0e89c5b9b8cad3d08f67870fd39171d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.81-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.81-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20c3f164d8453376dbee3ff74ad3c8648fbe2008c66c689b52d001efeff85132
MD5 75e08e49297a1ecf6f61d27d2de545bf
BLAKE2b-256 1c89257101f83a84a40bf2958df69051dd3ba0aa2fd0d7a956915e2ff1d4caab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.81-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b8e52211091300c9fc92e6d376392ded264631cf5f8c96a5f279e3179612544
MD5 7237c6ad6637641ffcf671a7f3089291
BLAKE2b-256 536ae793cbbfff8e1cc8a822b9cea74b98b6f99ee40b5fdd0cf5d22431e55742

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.81-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.81-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c5ff7c32fcf592a778604eeab44ef781241813da47bfa9ec6bc4750f935274b3
MD5 4672bd30c6035d83682583840ebca8f6
BLAKE2b-256 28a6ee096d292fc9a6290343eb04f1d229084809d30d84bcfa3f608e14cc0d96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.81-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.81-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 61371e80c84d34a09cc4120a84cdb077ab56a3d3a74fce7e45197011b7d9afb7
MD5 66de906a321e3f9d9e40c1d78f6e4818
BLAKE2b-256 006820e19906b992579744e48f399030a60483b8c3b14c9c880ea36f1a463881

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.81-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.81-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b58f65674b0a84719654e421b608960fe337cef583955adf0615e19da1ec7990
MD5 f041d2167eb233aefd5821521ae0cc1b
BLAKE2b-256 bba82845ed6111a372b2acf9cd6372e820d6e0fa2b1a2b82c9a5f6fc5eaae337

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.81-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43b9ad05c19d7d2ee3fd3590983d756b10e5e420aef7f60fff2e8b82827d18a2
MD5 a108edd270d04ffb4d596e12c4b2f599
BLAKE2b-256 7be439488d80cd2c44271930f83a8a4c140febcc351c7fb4643ab5780efe3b67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.81-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.81-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 aafd2f59e6b64f597d9d3ab1b2c2274a34bb31e86cc2d5d3595c80845675c567
MD5 7852a000d24ef80067c3335808d15a79
BLAKE2b-256 bfc8a7b28b1e3a9b6c7150333582d78f521cc43dea5558304ae69965aac7ffae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.81-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.81-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 af421440bf7bb7abb5d38f49745540da0fdc62cfbc6d2de20f060fece22cdce5
MD5 24d5e05fb19e482f5cdbb46d1b78a05a
BLAKE2b-256 df20f4cb2359844ec0d47bf949f40e6d17a71deb98aa7298d497f83f3751e783

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.81-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.81-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ae0a077dba68b1c3aeda9fe617b5cd96d8dabb5f8253ad4cba0b819bb01f2397
MD5 4a21f3aba7f3bf130caedcac683d526d
BLAKE2b-256 acf881787630903656b2e88b5cbd01e4c8e60d1f8e47f47127a3af29b3ee4e9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.81-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2fa86c6b99aeda779a01ce93004745ac249d0ecafe78b3e58ff0019282194518
MD5 4c2afeb140a7b338b843ec3f82fdf2a1
BLAKE2b-256 9107847d677cbb368391bb7562410796a1f6e17c4121b82188aaeefb5620a062

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.81-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.81-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0e608d655900569485e3db1bc4c60f0bbc077acf154782b4479a62a94452c575
MD5 35f2cdb4ee2375c7a31120acf71c81ff
BLAKE2b-256 26c909d70a436ac97ef1d2bcfdd4febba6a73167ee3878220b9399933bce15e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.81-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.81-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a6042192a7b49fcdf6e2d28b47ff25f29e717e4249f24f779b2cf15887edcbff
MD5 84d6575cef54ba5a483ec36afeb015f6
BLAKE2b-256 1b83aff9f2d40d02f7a5680c470412e808d6762fecd5c61fff09f01f908c4679

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.81-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.81-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 da47e77ecb019a499f3605b4b6587ed78c85578e2755b7e6b248384b86fc3b90
MD5 c8b5fa2819ed5c71d2f6dbd65968481a
BLAKE2b-256 ba6447912d450a3cd53d76d1a3ff723fa9b59a1de47c24171a5a347429f8259e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.81-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3eec8f1c1069e393adc1cde4c5fd7350539c0d72626e947415c01efc0052192
MD5 5500a07314761be72c3cf3c77d1bcc29
BLAKE2b-256 ba9b12f345fb007f0a408160463f9c0cfd784b230817007f5a8f0bb0ebd1e759

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