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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.541-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.541-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.541-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.541-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0f3adb29ea781024f314ba25dec795e79af2422066fa8ec499b95964e3ae6574
MD5 257f842cc24dff12801aedd31aea7107
BLAKE2b-256 870b5328b64aa18b5b266e7874848540ebf1125dbc8c293ddc018790388b83cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.541-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.541-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 01c0cba30978a3c06e4d6362bd14c74f04c79b49715cf4928e600f614cefabdd
MD5 45410b1224e3615b538383816a4e9118
BLAKE2b-256 ae0228ffac6ba16b2264c3f4af360840473cbaf57144d09e5102944ff6a8c238

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.541-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.541-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0097fff987f8b85eb7c97b0d0c0ad1696501b67c9393566d90d99e111be1f5fd
MD5 837a3b6173cf6348cd29f7c208f1697b
BLAKE2b-256 a8b8d00d604edb051e2dce702220c8adf01f1907135e6caecb40beda1ff6f7e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.541-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ca27b7474052b1e4d5508c8d4849adb4caaf274df05ee7d19a072235bc03644
MD5 ae6cc8c2947f24883719b05f8d9c10a3
BLAKE2b-256 3e3e7539f6a907fdf7ac42135b7d9ae7876a6c44f1bc2d6058aca8e27762372b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.541-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f14f0337ffcbebba5b4ed58b94f06b6ef3defd1ecc6a7a83191f3b76938bf9f8
MD5 857910f4b97e4baccaf0677fc84af58f
BLAKE2b-256 06fab8274a648587378fbca273ab699e07b58e0bcc9f8e051e2c990afde5b392

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.541-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.541-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4bf0fb236fc24ca36ec2324e29a5ec2b21bb2ac000a941c66d7dfd730a3cfbad
MD5 4a440259b1caa8eec8779485ac895d2f
BLAKE2b-256 ec1632809c4a923080e7daaf96c1edf2cc0aae8163727e5fc0bf09f93942a146

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.541-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.541-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ee0d015d986c40572e0f04e395efd19422941d4840f21a38caba098236880d09
MD5 9d95601cc4fb49ecd2531df7ada089d6
BLAKE2b-256 156b0dd5051a088a334ff70be41f67f72845724164cdf2d5c0e95cd69ede50fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.541-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cbc58d5c7537eea076ef9b2bf6fbbb07dd351002727ee09a7ac1b9bbbaff958d
MD5 7b2a0da6f1fccd3ed3679d932629b1f8
BLAKE2b-256 efb76c7d2cd3851a3855244233e57e659c564811e2e3da15a8d73824f58019ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.541-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 52e2a90fa38b3ee9a32f90ef9771749632cee1cd9a4613053331b6a47d6e8c04
MD5 2d784a7ff96a59ec237dc16cbbfd3c24
BLAKE2b-256 774bbf9c2b52613e83ac6a25ff23cbc25fd974c103886a0ae5be0b4c611fa34c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.541-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.541-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0ba4dea8f9f1003321bcc78a9bfede14061122c90f02d26d6537d5a0408fa0aa
MD5 1befe92d1442c39512679640d4dd973f
BLAKE2b-256 734036ad58d728187e35f5b29cef35a00f7038fedd40450864b8c2da28f84193

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.541-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.541-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ee5f65b6930b9c790029d73f7ee43b8ac4d420559c368cbd7afcc1805b1971f3
MD5 2c5d2ae468ec50dd51600f35f6eef540
BLAKE2b-256 5dd7ebc0f2be5d84ea19de9d4a66d40f5c538b68ec89c2a7f13525790eb62466

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.541-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9ca4b5bed1befbd95a52263132d5fa2b38669379e446af31a3a8eadfa44e6a2
MD5 612b6bcf183b5295a8b4e6f2728f7de5
BLAKE2b-256 6bbbe92ec69e71dc33465515d280733abdf50b9f3134a6ade35815a16bdf61c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.541-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.541-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fd7a1b5e84c9be8a108096525c6bedb664a88db95468ea259919a1d8befcd715
MD5 b7ed83c9920af02b9ef62848ad2e48db
BLAKE2b-256 6e4c35483c778e9f8ab86ade50d8a9ef49d3c079c8e574d9ba3bd1adc1b749c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.541-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.541-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9d1ba8da721392b51ac43e86944d8fdfa94f6331507ea85c8c23d761fbce0562
MD5 9aae5623061b5cab373701a712a6303c
BLAKE2b-256 68823cf19ce36b3a3cf003a8fa6046e173dfe2ce4df85ce6ca7a052348397ea7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.541-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.541-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f17b4dcdebec312e8208fa836c18169c164278b54d423c430693a3e0c0854d50
MD5 b29eab0438d47df366569a8f3e6f8559
BLAKE2b-256 01df1db9864ae0f97c77940a01853af177541dd25efd016c875e5aa8f84ecae5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.541-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 103f1ccfe2a198a7c659a48750ce5f4e0a58923ab02e04b01bddbd1556cb9061
MD5 d0ce55f0a17659a56287ebdf32ab608f
BLAKE2b-256 75d7aa553998567a54a72adac6bd0d4db729076678fa8591067e7611359859c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.541-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.541-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7eba148fa24d5253eaca057f645ccc87bb1e551eb030cb946e68a9cf8be7f41b
MD5 bf791ff9145e9f9288d01a63161c8af0
BLAKE2b-256 a1c74682f36b110dfc2ff7a01f6ae23a8f1fd91d0481b36405867a2274ac45c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.541-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.541-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ae52cfd373833ed6db13279591bc8757330ca4a5e55a6b8b89b903fae86cff66
MD5 4171c2498710518ad5c33f6f21ccd03b
BLAKE2b-256 879ef130fac819821969c13b14f327bce36399283d41ba081263fdd16da91d92

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.541-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.541-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0cb8a24ea9064ebf1cf657b80ce37d69c36de6c792fe7025836959951dcf28b4
MD5 10ac9d490f04380203bb2481d594d44a
BLAKE2b-256 5f473f32857ab77b22da0677d512dc5738a5696d23dfa0a50ea7598592e1450d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.541-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0facae2fb24ea55d54c84b2a9b63ef04ad305c7299aff73d52fddbed66124208
MD5 31f92412b28b876e35fedaf2c96a9321
BLAKE2b-256 351341fa527ecd9f3db227e93d5024157383695ffefa26ebf50a39d44387a547

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