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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.598-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.598-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.598-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.598-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d4e9085c39dc44c13e0feea3bd39509a1f0c3d600ec68cc57ab234b5ad24f5fc
MD5 fa1148ea5fc0eb62714c51b121bc6095
BLAKE2b-256 ae66b7386af6237e746c6c80a7dab5572543ad699c3cd66515b669d7f7f2e136

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.598-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.598-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 79897cd4430c8c8165600af42fb7e9eafb8a3c50fab8a974c9a5caf3c3f45148
MD5 6d4a9eb7322e6489ef3ff1eafb6d10ba
BLAKE2b-256 a873d222aea6a20c9b516d0a7878aac1a4129dfb0952f2fb41198c2310b80dc8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.598-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.598-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f1be7b6a79259611b097bba5270d780bfbedfbcb1cb02764e8cd4af8b54246a9
MD5 ea1ddd633cec9325d462adc8e3ee82da
BLAKE2b-256 e90b1395751d75e11b3440969104bfa0ca3d169dc7add4e7546b56ee327a81c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.598-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af7b817d3d166a33910d5117aebc52a97666930847cc75f8ea4f795300c17f8a
MD5 42fb6164490c16fdc67213761a13d42a
BLAKE2b-256 056825407de9c9423dd8ebecdaff2368c17585ffc9607d9e6e5d15ce2f7f3d99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.598-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2a84258ad6299cd0d7595ea7a577c7f48683bd3f8e8163789e8b32272931b897
MD5 4776ba5fc5a08ea8d8b6c481a0c28aff
BLAKE2b-256 ea92125cdecbc71ff3f0a0236a26d74bd4d102bf6465bb3dc576fb995b406f2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.598-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.598-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4377818c301a6a3d9de3ba1f66cd4153c311888426ba623e04d89632809d889e
MD5 30d8c16c2bd6b761e7b73777523ef246
BLAKE2b-256 016415e44e8aa2631c3abd949512e84d97eace594f229d8e9436297890cf1c0d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.598-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.598-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 18a5a724562797683293d7cb44475902a337b5d04e4b09d612cd6c736c933a52
MD5 f9bc80595dc625056c71e05fb9e4ead3
BLAKE2b-256 0cf55ef4a00ff28e19089807c3b872605643af66f6e1050d3b0c779291f4a8e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.598-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 343308e305a533f971bb17ea4e5e0910b3a80f29080c9f7f3758ffd4600ba5de
MD5 61b3cdf3d187f91c6070db53c1fe6f5e
BLAKE2b-256 01d1dcfd364864667d42849b6d58f91a6bb05f48d030dd7e933e3ce8ff5bc760

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.598-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9d8f5382f1758f479a082e49de06203bda0305a9f93fe10159515293fa84446e
MD5 799cc0b4c25ef130a94239f02eaba9a1
BLAKE2b-256 c45a19f3e6dd0fa4eb2235a669bf157aed5e3d8a1dc73070368befc59d1ad7d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.598-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.598-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e50c1b0b1f4104ca2cf5493bd8892de28b106483e441516c8783154c7f105e77
MD5 6dd85f9248661d5d08434d9b65b44e79
BLAKE2b-256 3c5ea1ee65ae701f6df9d0dab224ed7295f5eb9ff9d1af482faef9d7a321f6fd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.598-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.598-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0364e81ac8be142b37d9fa72a6b58f39f71293f67e0c4d75f7def00b36454291
MD5 ebe2f3f9ff69002b2198f5f0dbc51ba3
BLAKE2b-256 3ad1ede9ebdeff56bd643658017da2ac6556456c18452fd797e691ee384a6b3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.598-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f7583e7bbf4f889281c51b390b56bac3653541cf33e67ef79832948f99b47d7
MD5 8f8a8505592764628401c62c42c3017e
BLAKE2b-256 064c6933ec84fe51b315505548dc0abd880c2f64d056ccd38c8669703e0fc445

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.598-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.598-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 40c757abda29c8c86195ca1dc511189738ef772df91c81825241a18834378628
MD5 7608555225c38019335b02206207b38d
BLAKE2b-256 3828eda5da08604352c693e1a12a7a4fa39fadcf4e25ff064d04ec731becfe02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.598-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.598-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d1233a0b94f6d83fe087ed0e2619e31219b68d60fc5114b44b03637bee3dac15
MD5 a61285e632119618f3f7fb5428f01893
BLAKE2b-256 df1dcc9fb435f596dae06398835f9c9d17f8897e3a9446e61158a8661c153773

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.598-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.598-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ba16e9b3359bf89b1d96dd6393205ecceecd0f06dd4497a81c07ff774e2f0c50
MD5 f1700df6a415597affc64d37a2eaf067
BLAKE2b-256 5b961da49dfe0ebefe95b1dd743c04686f3be03445574f8ec744916ab680d1f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.598-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e90b770eff8d95358f0823cef724880afbe220eb69701913c3988b4dd4560e6
MD5 a4021ec1d807999d786f24d8bacf6e40
BLAKE2b-256 443c95a04a4ecae7763c8e03e19805da62752fd0cf27e0e5e7d4c6cce2ea687b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.598-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.598-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fdfdcefc7af9393cf871444ac52ea44910fd1a09739f84554ccff5474dc3a2c1
MD5 f61a6f236d8dff922aa952ea28b567ab
BLAKE2b-256 2024e0b41ed92dab44d956f3c656534684b6c0ac8c7d12a5e22a6419d933d461

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.598-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.598-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ccf267fa75401cdfc2d35fdebac9fc53ac589b450cb400dcd4c42e4f35c634b3
MD5 524cd0ff7d9e7131cf34f42a9ba2509f
BLAKE2b-256 21059a23e49578586ac41fdf9fa7714b8a582afcd449d09cc11c0b9cfec6df16

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.598-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.598-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1e0e2abd07a8eca7f304b6bc2b0cf0fa46833b7a0b3a1b2b21a2889007fa8e89
MD5 8f0f77eeba00df203fa6936e78c59bcc
BLAKE2b-256 f4132273d6e88d1b66e9f8ff7fee6789c601d943c99637f4c0704916b5e25f42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.598-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e127bbdaa705b11c6cd9d654187130e04503ac037cb223884c9d875fe02cb7c
MD5 2c540c453227972b9e177ac0648be50a
BLAKE2b-256 a45d438dccec25382184eb4c95d668a69c80bfaa131318bca9b2159174d3aa80

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