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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.834-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.834-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.834-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.834-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7039f9398f556850c2a69f1f4a272a41e1cbf261c25654d248333a0668c38711
MD5 f7ef37b4e1f176e77b27540fd255e1e4
BLAKE2b-256 cba1d605ae83a9626cd6d58205b128c4b206cb2108447731b95f785c8d22dc5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.834-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.834-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bc9dba064799ee3c6456c28c4c9b85b8e1ccee13c79e061abc4511287c02aab6
MD5 92e5ae9931cedbff21a37194c6508eec
BLAKE2b-256 85eece1eaa1efedd965a492b3e93469c834bc4065df47369ccd441788ccb43b7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.834-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.834-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6f88d0542571f77c2a41fb155c1153aea319bcaffa9913c43f8fe7f195b8613e
MD5 b9bd38fdb762dc647e10d72aed407e7a
BLAKE2b-256 620f0b2a1086c3e85750f8fc628c2f0b550e904c8c02a59a5b7e681b70975860

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.834-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 661dcde19a5b951af81f16873273e7285fc6391029643a6012f7f1b06a99e1ea
MD5 3e81ea32a93a94d363da6b1adf1731a0
BLAKE2b-256 3602e5cfe0676d0d0f9bb3f89bfa0343d31586ffc7aa1074c8a38b435694b2c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.834-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1477434b362e6f65ea1f2bde4b9454774addb6c9ec4ae358dc2903b7cacfcdcf
MD5 36daeee1ec5011415e57372cab8a55cb
BLAKE2b-256 c7a4175f02bee126fae29f9d8ff52bd53aa50ebab4effb92ec160e03a3e356e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.834-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.834-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c3cb1c4c79ad2bed55e763af1de9962f7bc033712ab26bc1713a85cb94bf6244
MD5 d175956c88cb568cf2747435d63a0137
BLAKE2b-256 24c51805d498eb6713aa36458795abe881506e73e421cf2397655eff4912c438

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.834-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.834-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 59f59178ea4d852313d658ac710a307cff7ed705fd536795158b6f3a25f59d55
MD5 46047907bf4ea2206948c4ee376ec102
BLAKE2b-256 e6de65e9a63875f8988e5b357bc3559efe01e02eba81ac6d20239ffe8a95452a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.834-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67d3637a64e082bc8f4777e0265e89baf3647c6e09b9a89ff532abd873592758
MD5 59aa31c897c8f13018a6deff6693d9e3
BLAKE2b-256 6038eb8af6e52e55b80952a28611f0cf55e6853e932de23b23c0c91a328f0c56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.834-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 732c3a084bcb0095bd02557bfc52878cba0086ddd3a6766fa055c04839e8dd8b
MD5 62ef7a91ba58f831d3a5819ecd0c596d
BLAKE2b-256 901c68f3940d43bd4cc4953c3c9abae7e25aa513d0f4599ac45f51b9f391f024

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.834-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.834-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cf7b9b316532261e328d4aafda5227bf50cd8850aa7bb6ede219c705213ec3ed
MD5 1ef9b65e9b46bc8c8cbf4afc4a2fe86b
BLAKE2b-256 eba563a666a152670a7b2290595ef2d44896cec3c85839f69e6e4ff648533241

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.834-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.834-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2daf118596838bb7f0f0fa3b1b69ebd688deefacb217572d2cbdd3893ff8f9b7
MD5 26e735e7d612407e2c9c08f4b1c1ebd1
BLAKE2b-256 e3906e0e5d6ba53296fd570fd40a4cafe38a57b2f87cab451ebe1c92cbddcf5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.834-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 516f0ad9bd2c245c7680208867a10172c994c303f409d090927336a3e8d19cad
MD5 9816987a1663d28e1a6cd6b3b5238c67
BLAKE2b-256 2b801f7dfa2d039e5310511ffef6c9c4fb93dfb39b40a48c9b551be67f72b2c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.834-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.834-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 69868ac36587bd505a052e668ff41351756e46e8752166173a45f231807db250
MD5 06f843b89c5022cf48acfbe4efad1e8a
BLAKE2b-256 3972ff1de84dff461d828635e3fcb63c91266d160b7c3d537ea9a6e50db63391

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.834-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.834-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e1e3349d63b757b78298cdb6ce82e71ba1ff3169726d7a67920726acb08fec62
MD5 3c020e86242fb0c3503a411f6d52ce83
BLAKE2b-256 cfc2e5834e1a62cf114268ed741e72a558c2c577e549f92e6c5678619d3fa27f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.834-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.834-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3322e3fb533f5327822ac4cd9ec1672533836c5d1df212722a18428e1b67c7f1
MD5 5ba74a55f70f6e0fb54b2e84e4a66e7c
BLAKE2b-256 81e998c858a8d4ec41d073959f6917d7a720c7ad372097ec4f41ad255ae84ef3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.834-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b52ee7a743f287f1c2d0fb83a53f6ef91f1bb6be480d25152f368c93abef905
MD5 61f6a9fbecb0f010be621f334c18f731
BLAKE2b-256 d48ea361de59de01c148d829475ce5b50b6b73ac4cd1ec32d3f6be9262c31be0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.834-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.834-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 640237df709bfb0dfd05501e8d2e38111a97101d6e7d20c21484adaeb6d9de54
MD5 cd8ba474c833501449ce078c9e85a40c
BLAKE2b-256 d4dea7647320d943b24fc767999f0c9dc0fa779a41a9282b4fe42612ed386865

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.834-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.834-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 36d3735d9774851b5a461ce806546d128a1892b12e6a34de6778e46a189230ba
MD5 37774b9155f6be751b216a69f1cef3e2
BLAKE2b-256 2ed1af76112adccdc33c7e97fe68699b18e369508a3038a2752f961e6ab618ba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.834-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.834-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd282aaddf1c65981b7479253d56a676827532b17d1ee4841b9d40bd2738d8e4
MD5 5b46f74baa22b5a2e679635879fbba67
BLAKE2b-256 1bb05e8260efe78d625de4df3e456e2d138ddaedc200085e40f2a0562eae0234

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.834-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f365558fc8c88c029a8070846fea48313104c3fc43b69cccea8fe12201535fb
MD5 8cf8f62fa66854fc93c2196cba425488
BLAKE2b-256 65a9d445c07a6e7ba96dcf280f39e4d7f27d0fd4ea9bd4f306bc352007d01cce

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