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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.759-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.759-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.759-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.759-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4cb8ded0a4b94f90f3a56e40790ee65857cd057091895a5bf9cae7e8985aab7e
MD5 b64b78cfe38ef26bad9d50cdaa80f3e2
BLAKE2b-256 6f0f55ff6db8ebfcd9752303bae0123fe68077e21474fa09593df5f02c52bbfd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.759-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.759-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c46804fc49d58e07b9b9679298646cf41ddc45cbf1c1549aad8889f15025f7b4
MD5 a06816ed97c4eb034972f95f518b1521
BLAKE2b-256 f0f282caaefa5be02141c189259e91d87fbc2251b6a073e89840bbfbf57d795a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.759-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.759-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8fd1808aad68d7dc6734fe3af4bebbcdf9931ed3126c6fcf6cf1c4957b4c932d
MD5 a58be30267409f7c44cb087f190cf10c
BLAKE2b-256 e819d9dcfa4ca37618bcc6e174497b65ba1635d891e72d2e2c2f138d48ec306c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.759-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f66293ca29c540c246bef9da36b565679fa8148bc0e24217567455e100d9921
MD5 9bbe14a72764775c3ce462ec6215aaf7
BLAKE2b-256 770d4bb12832d8063aff6cb7088d2fcf3dd854ef9507460aada1741a3e7aa930

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.759-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 582852f9ef4d0a4f9a1e10ac71347a1ea5cc0d127c9185c81de2a1d6306f9888
MD5 a8a46809474a42fedaf789bbbcc6a772
BLAKE2b-256 f04bff035fef8f4728ca937d309404f7abb35b343206fc60c81dc9d22faa8387

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.759-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.759-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0a6b6f8959932a3b39d7be69d27a1bf5d2163dc5aece57a402c860f0d1cab3da
MD5 80d9fd55238c292699286a83f7cb641c
BLAKE2b-256 7c629ea8e4678b3628de007cbc0a1cda99472ea5b0d79d5207a66f84bddd6ba9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.759-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.759-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b0cf60432df4ea020e20b1e9bd1d31d19ac8a302d86921b810d417c9cbaa1797
MD5 3c38ef2b1ff040857ea41ca0c8118968
BLAKE2b-256 02ce00d20896457b8e8b50e16387d5dab30b94a60931687c23c3f6df4acd88af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.759-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ade6f5d17c588ca07015242f21c60c57f42fabbe6fe5621f93eb512a8b652ed
MD5 670b88a3d4643d7e225247dd73ded3a4
BLAKE2b-256 ea2c66abdf519a26ba123e982acc4487f108e851f6a88823e5752508d5478069

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.759-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4b65822ef5fa372d1ee6fb029e56b2922035f7a8836b8fb74c997b8d908ecd2a
MD5 6a8f6cee9ce5f81d30bfd2f7727936df
BLAKE2b-256 3924ffaeadb783b2ef1083179c23308be858c82f12dd7e0956e9ac32c0833a51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.759-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.759-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 778cbd68150e7dfecee244b629c45bdd2e027a666b58dc29f5335c2f97d79b75
MD5 148ef42c3689700ecbd8b7eae0ff580e
BLAKE2b-256 5c369f0c78f550f31ae3f0dc80533a6e7f64760ef0acf7e5057930c879608bff

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.759-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.759-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c6a4a7eaeb9177fcbe136dac342be13013841c420abe9c07438ae8b763e62a11
MD5 6403f266ee85ca431738439aa40652b1
BLAKE2b-256 089d134152a59d328c75459687859e382a22f143c46232250ed883fa3bb50aea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.759-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4721b83d1fb6cc3caf7f738688e50e14ff52122597de4604f5e2629999663dc5
MD5 5e2182426fee3a78f58261d4a8d52aa5
BLAKE2b-256 7ec2f3e6e22ee0f7e33d3765deb3f32ff521881f44ae446a287b8cd307dfb08b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.759-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.759-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e084c764b0d0a59906b1a9828ea05f766feccc52e7272ed954005bcd59784508
MD5 d15d4135d575acda880cb86044e59bd2
BLAKE2b-256 872e6c3568a241f8358f3f5a89b57c64767e56b438fde7e1e71bdf683fee3e24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.759-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.759-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 82882263e92715bf4e4540b14b59d9a0744816066473de44c935ce341749a2ef
MD5 c053f3c8f7b87dcf69eab0a02f6371d7
BLAKE2b-256 197d9fff9350ba2346b296453cda6eaf8139a616285aae4fa8dda5841572c18c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.759-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.759-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 36beef385edcaa5c5c1bf00c08b24894c2a83f29758b23159798423b005ae16f
MD5 275c12d66179ec893193fc57327c8f3a
BLAKE2b-256 1287f581065cd181839a9a8c1d2c56aa9a5618dfdc6a87dcf2f5fda97e1b2928

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.759-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0dfc25a848b83a6c21670326994d39a6b9a7332e99f5822e7816c9749e6aec1e
MD5 9e303e7e6f50d35ac7d8e1288d82e989
BLAKE2b-256 21e38a0b426b38e6779bdd9b31aeb6ce13b82d03587c3fa8e85b540b6a91d618

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.759-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.759-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a59f1f128ddbd86ef5854e7acbe99da41c4c7a0413ea20fe6d642c1972eb284f
MD5 9422456daf115a96878c4ab4fc50d707
BLAKE2b-256 c01bb02a423c23d9c676ff50e0b315275104a2cbef4664c75f5983054651aef6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.759-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.759-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d5ff5a81adaa75966c39d2a9ab2e3cc7fe42b05a4b1d24b1f4d5a502076c0dcf
MD5 2b962749f197aa9d81a5719fc676ca8c
BLAKE2b-256 668230553dd72ce96a9be9599f493705d4253900faa9902e66297277ba065c9f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.759-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.759-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 482dc1dc7149dbc1d26ed403095cf35b6467c510a96470cc67ce484259850b6d
MD5 ac379522601abf769fb3c63c5cd194bb
BLAKE2b-256 edbcae274108f58833efd0aa795ea580a1fd1e6cbd4113ee9ba8da2e5830b2e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.759-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f6e472694f8a7143bae2ba7a14003e1ea2e6265aab2e8d58b6ff467f2fe4b44
MD5 6109125eec248b08818373ea8113cfa3
BLAKE2b-256 d51dacb4d2ac41a34ea68d08e297f2035c9115f8dc60dd450a63b9820203c7a2

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