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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.49-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.49-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.49-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.49-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.49-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ca107889ab3abc08a35a6c811cc858da7654a54c159ae63ebca9ee04b42384d9
MD5 b79f6793fb0c85eba36ee50acd9ccff0
BLAKE2b-256 8195ebdf47251b8d433ef0d8645ae408a7c2737b085d418f67b7979e318d78b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.49-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.49-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 07a5427a8bbd4d2cfec0db4c38768de2b471b7babd2b7eee0b7aaf6f32d03a57
MD5 d5ad5c9bed0fd3c9205605ed57023453
BLAKE2b-256 9415e800b3b32e6f45dc7e9f8ecfd4a96df41d20d93b22b70d7e24e093818e08

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.49-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.49-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 01bbb066841d9cdf18ae105c124465694cb234563f61c0b1b98afe536fb8e7af
MD5 8d83ae1e6bcd1cc02512e9a40da4b34b
BLAKE2b-256 4131f7b67e452492fe3cbce68f97688b585cf94b359bdddf25df3d6a094ecf4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.49-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5f5ab8e316588f76b68f92b982c741aa30b3c13251e4e0e59cd47384883bd91
MD5 eec07e727a6eff500cc55c91bba22c34
BLAKE2b-256 2b9ac7e47591902a7f27a8c68123b38bcc2b8f9eeefa71d240240577846a6b25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.49-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.49-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 01305e92ecbd0dcba975e21add0cad82179b158cb636d5f7ef7c6551032cc0ab
MD5 0f652d24dcb657c3781d799b4abbf59d
BLAKE2b-256 7f648240c3a1d8a0b5ed944ff60fec17f6a064d1ba9a4ab3e1346a2c07293ae0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.49-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.49-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8f7bfac118e1947de4b3af4e5fba2168c154729ca245d84eb28e8546a5a25aab
MD5 29bbc4a3665aa6cba49e3061f7c5e7f5
BLAKE2b-256 7d5376a8f600573d382811cf5ca1493d6e3e2c7d4b1d21e7d13c5cc9fd51f9cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.49-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.49-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 358c790cdf0c5ca4a606f74d1feadc85b3bf7222c7d3e1a89bdafe9e46c72169
MD5 8e364c575618dedee04f17a1fe286822
BLAKE2b-256 d12bed7758cc58541913d7a8a4ee9ac6f77083e47d9b7b8931c44bfc93c0f361

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.49-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f55e7a6e135f37ff04a9756ae3b5b81de8f42dc2e7d595245c3b8ee75f4ea184
MD5 1703edbb7821ab930bf35252d43c08fc
BLAKE2b-256 86755dbdd6f43bf7ba7226b2869439e97aec6128eb94b5a7309df6a10b8f797e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.49-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.49-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5ec3389f35ef66e506a62c7ba5080d5cd7aba80fe38cd5b94fcceb01b7b4a479
MD5 4af2224ee6cfb0034a4cf5e06ce8087c
BLAKE2b-256 99aa2f14654bc6cf489822d8deb12dcd9245eac267723edb64530a63ba62acbf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.49-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.49-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4308d2ff1ee8fd40eebd9d20b5482859a8722425a477f3987226a24278f9107b
MD5 4864354b915740b8b48c82e64ad9770b
BLAKE2b-256 59d5ccf9ebdd9a7abcd3cea12bf8a11579f60080aedf45d5211aea035849efd5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.49-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.49-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8bad54bf72dc1f8206f3b3a70f0b30db23b0dd901e0930a2af556f1befae4d5b
MD5 11efd428a26011dd263fbad6f1d5e772
BLAKE2b-256 77098147241cceb38f1c115d9ef7fb3280e4320bf7e36cec801d85e3ddd8ac54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.49-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09a9cab8d0bf6d35168ff49d1cc0b081068d648d66e802320f6fd463ac926718
MD5 8ed17e14568396f51a889ed7f20d969a
BLAKE2b-256 be1ea274c4b9f3d842fffa5f845bb28423df0e727879aa489cf9562c20e8a3a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.49-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.49-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2ac4c2f6d4da9575b306bfc4b3cd42ba9ae733c3d608ce34143b06ac89ec7408
MD5 4847c9361bc237e80d40a038b72ccbe4
BLAKE2b-256 060d83db6490388ba4073ee490edaff580200036bbfc10af5c16d1b95d678809

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.49-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.49-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9ec4ab5614cb7c1a90644cf6032e82c1f1580431008c52509a161fe1a6f26660
MD5 78f519034cb8c515fc04a29965bbcd5e
BLAKE2b-256 afcc28181bbbe6d53b047979aa168048797fa9be0e8f53b95178c4e39b303c23

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.49-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.49-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 94a38ebf302b9a70c6959833d9edf5c4c2f393cebedd596efb3ee6b74a4d5b85
MD5 4bbf98f73bc11c927fc7aa11fd232e05
BLAKE2b-256 49390c60a7b93825b73dfb3a4b50491bb8497786fba36bc4ea2a4f25a831773e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.49-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a2b5478e6b62d6d032ffab852d6aedb293d524015eb3b4b947157c6e98a228a
MD5 e8d92e26f047d804828f11cff70a2897
BLAKE2b-256 b5b5f656e99a44ac6b5351a34d512f2451e4c09516bd20b1d6cf4e93df12fa37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.49-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.49-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 181770ff8eb1bfb6ccf9a0cda97bc85b133925fcc6139b244339119200b1d54c
MD5 d877c04862c9d7cb3b691af29456488b
BLAKE2b-256 2e03688ca8be385bde1645688810d57dbd698c97519ac526737fad35f519c38a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.49-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.49-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ac13aa7b11ab767ba1d8c1f0bfa9baadeed256a10ad38dfc4c46b71464bb9083
MD5 511c73279127f6638b4dabb69d51e5bd
BLAKE2b-256 8b9e371342b929f141d8a984ce2ba591050e0a781e1ba05044e1548123241175

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.49-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.49-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1165c9676508aa9aa443907aa6924b100d8155f6f4fd9212a016cb7e50cdf16a
MD5 d9dd60980989b1dac07fccf1a86c3400
BLAKE2b-256 2b9af3a31e8d2eb8d9f390827d2b87a156846f03af9a1e8dba70e84c6227c0b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.49-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21e4f8f8bde67991a179aa1899e598668dcfbd443b05899be2e4e8a7ba7fb577
MD5 539d15ef56560f4e7ee60b80f78a42ca
BLAKE2b-256 e8c79e721eb298b0fd436cc96e7732f89d6edccc4e817ed66406e1b59c0c14b7

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