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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.305-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.305-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.305-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.305-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.305-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1c6d6aa6869c6b2e406ec209bb22069d6858c2d6992764a9bffc935755c10352
MD5 9d334cb069abae07eeb9eef4c59d2aa9
BLAKE2b-256 539696570ac4d853334faaa047267f146c7a43a0734ea468c6fc59fad303332a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.305-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.305-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5e9c0353ea8beee6be716fa7f0d9920ffd1a2005db1399083859ad23ec5ad354
MD5 a1057a9e6ef3c643bb2f07af8036c317
BLAKE2b-256 8cfb1d10f16f6b0d4b5b9a7fa5cb8e3e22c2473624b94746823c3942d05cfab7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.305-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.305-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c5f73ca8f6656753480d05e39647c0d9c88e13bf1507608382cf3b33542bbb27
MD5 fd71999dd6ced2fe0d872fbf652305c0
BLAKE2b-256 ce30dcf405e37c080289f38f57b5a06d3cef146a7d0f9469dea065b0553bd32e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.305-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3b0b3a647e9bf62bc6b7c71c81140da956b829c22c564b202a36f934e074c75
MD5 8b2869f21e9b04c60f9e11f8b6c5f083
BLAKE2b-256 3a5694a2cd2d9c985797ec5e95f82df7d3f03630d22b8914e066dd6505f485df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.305-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 42ea255300f53e6131590142c287555213478dd095c713367f10c6080aa4e919
MD5 a19561d6ea84fd21d8289a4df61f4f49
BLAKE2b-256 66e296a321f52b3f88a177ced31ac5ec6ca96c1f9913842dba99c82c75f0025e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.305-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.305-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7c4d0f3efe3ee5d59cf0652e3ac2ea18cfab0627fa842adb82e35ccd9b8f134c
MD5 614d71a6d99c822bf000e5df2793e5eb
BLAKE2b-256 bb4a3b3d81fa6b77008c3a80ca6e31cda35fb0b60df2d1ced3cbb010274a417c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.305-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.305-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b25d6a92e5be7cf6a313ad02a37f3d1a14a9571821a596bac5d333404c3cc2b0
MD5 50641198b6f4333b82fe01ee6dbd2bd6
BLAKE2b-256 8d8f5426808deaefd19b1206661a5173432a08c5953942801dc228234bc3f160

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.305-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8599410b042863a7b586b7fc0b3fc73d3af03053d55b54341af702320d40ec33
MD5 d59155d1c15b04877ed5d7367acea572
BLAKE2b-256 f1352ae91b42324e9228e3b5e14fbf269ab7864e070b84205d3e300502cd22a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.305-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 06dac6072366e517039e0ce0a19c83bd4f8a70771385b8c81a498b8233cebb16
MD5 b8c6397311a94c7d21c539e54ccc88c0
BLAKE2b-256 73bc3e9a1b437d2593ed44eccebbc3dbf63a8f8dd22e60409cfa6043ea1d75d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.305-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.305-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1e9934fa46469e9c28e7ff1b4fc7c795a621962722a3b4bb2509c9d100a9fd96
MD5 590164886ffedf05d30fbe9ad02c0677
BLAKE2b-256 92401a119741561c1fbacffe2baec045443dad7c9fb7aad883e8abccf80c7164

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.305-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.305-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d3d5b2398bdb54d8f0c40909f394222ace471457570041c485baf8f6360799b8
MD5 235ca15b9a0b6c8fb27f0daca73728b2
BLAKE2b-256 441fa3c4ef5ce9e7e69ee84b6a7b876c149e330d36618592b129027cdf7b299b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.305-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 849b363e78be1b08edacfd04e0da9d2436381c18fbb901775479d0f34d3650aa
MD5 a86451a462d575fd4a1af77788a4c38f
BLAKE2b-256 1fa182e57ba76860bdfd5bab95cc23dbb60ea9a58df3ed0b08540887cbfa85b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.305-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.305-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ea22109d811566d63e88433003b6836ad0c19da4b58e99b592f8c3b9d8a5170e
MD5 d52abb9e5db492cf9ca0e9ad9b405892
BLAKE2b-256 99411e35a53ab1ff83fd7d267555f5ae49f02a4ab28f21bdb65558508670cdb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.305-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.305-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 589b82ab5b182af520d430055ece1f486df9cbea5b875b2a763c46c8a48814ab
MD5 6b2efea884954f8c048b9186b7478a4b
BLAKE2b-256 5675a934adc868b7adea02073df5a79966a29decf883a6ee75a002f574588dbf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.305-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.305-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c67efe58462ac23cf33d2b9884c49e9d8ba7e33dc0ff3efec603c3b323a6e221
MD5 79e20b810723b5f04ec0129ccee4ea52
BLAKE2b-256 d210c071dd69d665a76b7f59ff7862d430032d7680d0cf073b2b6537ef593838

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.305-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8dfe3061396cd3c674c9e4f154284154a0cb1b57ebf8b4a57061690c3c8b5f00
MD5 b0ff9587ed3f7121ff91880f9523a656
BLAKE2b-256 3c50eecf1960f81a1b9c538bc20b104007b37031d48c5e2b6f14570b144178dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.305-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.305-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3e443779029ac4c467dde4b9cb93c857bb2537a558ba25cfd8d9735507a8c7d0
MD5 bff1572f13a5dd2043570525ea932cd5
BLAKE2b-256 bbabfe4c2e3927f2da630d291349d45b196e78f8dad2e002a50cc4866e801818

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.305-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.305-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1e1a8ca68fcc7cdf1697f2cc4b146d92a1f003edb54fb59c88c59973c6124831
MD5 1db08fca067b4c23c8f5949f0a59e62f
BLAKE2b-256 866912460cc10a3a7d95f1a2242f57c7a4bbd7662812c1af0c082290656c983c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.305-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.305-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a11d2fec0f68be608cf2fb9b63a5f18e13c213230e7cc0e1f075a96def07a079
MD5 5881e272dc760a5d6917b3e907701a8c
BLAKE2b-256 b2970df3dccc8f55f7ac7bf5fa18528eaaae1f1030186225e08ebda00ff9ceba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.305-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 56281cc7bdcf2c94408faa8cc7efd974e61a5f964e78b781f0cc10ccb7485721
MD5 818c16220434b288d2993e39735a5b8b
BLAKE2b-256 9b9e5d0176bcd017e41e7c94bc8edd252ea43eea1786046322ef73fc7f5be1f8

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