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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.822-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.822-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.822-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.822-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8c1d35961ac77e976dd411e82ed1813c4ee0cad5ddd660fdd6b24a9bd0f841c0
MD5 c6a9bbfe4b379d7cf5f275eea7a83ded
BLAKE2b-256 b26da76afaf524c8eb8418f2b4dc5026f8c2502424e71cd52f25e646d98ea784

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.822-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.822-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b4897b77e7e89077cc1fbd4f6a5b6c6f6d36170f38afa529b3c8a3798cd326a0
MD5 1465120aee6fcbc6984214fe4a96f5b3
BLAKE2b-256 01abf8a420499546a96f00731487b561d48434ea6381316a5adf1e1f68701023

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.822-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.822-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 85c6e12a6a2c9bebe0b26dbbce4df0ea2fcb2ab2862bcc7c8842591c04f613a8
MD5 df5a43cc3f58a3d9fbc99302599fdcfc
BLAKE2b-256 14a9e6d4b9996187d6467f925c2583a0067efb4f6677f3bd17295c0043986c4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.822-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1628ca8e92e9272ec534e648476e1542c12ccd998f4081df432c1b944f728d36
MD5 de10c6645d446712ed10606d2601237b
BLAKE2b-256 9e477467d88618107c87247f6f1f41d880c53806699cc7fe4d780efbf0299ca0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.822-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 92db3248c5cfe585eba2d7ce53b4a4155ed7b7fc57d0be4e8889d56c098db1be
MD5 2d74f99ac6066ace05a918d8b784b4a0
BLAKE2b-256 97089a4a19987fba555b058efeb15fa06ecbcf88ea1a086018adb1d9fcf7c33f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.822-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.822-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0bfe33a692fce75b06a95ec0f7f3818c108847679e3bcecb9f1ce5e7eb0616f2
MD5 2147f68a7dafc06edcbacba526d4a1f5
BLAKE2b-256 3ae946459e7e8ef5f3bdb8ae48491a07684d0b176a76eb38c34a0358f31c7660

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.822-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.822-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5a04947253538dd6ee101481ff7e1a4f70e049846e12508f4f078b112103620e
MD5 bd7cdf528cf46e9f3ef99dcc5ad77094
BLAKE2b-256 a04f236488a9f36ae48cf2df669a5b71fc48795862f8e086f52b59724812a251

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.822-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b8dce7f41a032438dcefc50f379987b03cbec246f1cbbd2b5f238b225acd4fb
MD5 bc3dda4b91f0ba428fb8ad3c8ffa6204
BLAKE2b-256 ffe3a984050d812848c4c8b3d8f3c5127fc4c79cde4baa177c04b8bbcc3f2b5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.822-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 11816ff46d99944d26e364224e62c7522bcfc520bd53d764b8b152aebb2e8d87
MD5 8fdceafa77d50f186ad041e3559f3476
BLAKE2b-256 d1d264b0d6e9e022a35725a5c34eed50dd9722ea4c160f0c3d95ebe483722cba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.822-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.822-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7d5ea2822337a4d4b8c657798dc6c9256662115beb78188efce9405be55f4a03
MD5 e44aaaebec98a2f8f75c59fdfd859843
BLAKE2b-256 1b8e53ace11f715cb327dbd0d809107b423bd39adb668b8643ef138f8bbb8727

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.822-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.822-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6aec5497fd0e863604cb892ad37260a56983ea37e851a300bb078d2d27433ed5
MD5 b6b4133f2f249a80c208c9c38ebb0890
BLAKE2b-256 bb8c4b651114697ddc8996f12792a0149671a0661c56a63ae7cd386b935728c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.822-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e027be70766ce2887b236f2ad1326c0f283c34ecd747bbd79b3d73800b0e451
MD5 ca67e16ef8d7981cdf9e6f4570d53e73
BLAKE2b-256 f588402172a6b2fed9412161124fda42b217cee81b991be8ea37162ede9cf121

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.822-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.822-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9a1d60aa809c8b8f6f2b1291c8162ca044b71848612bf1e935d1e313b0067ad2
MD5 526b4cde01c00885c98644e01c34380c
BLAKE2b-256 a90effa2b874eca1e406dfb8a4dafd3d135ea876a943c61dfbea41cb1efb75ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.822-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.822-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f4846b4ef86462fae836015be8434d68ce6b5d77fe91c0bd94b8bf8d5db760a4
MD5 c59f200da568c72198470ceac63d0df4
BLAKE2b-256 b82af1b83adf14866c89221a1d25b4e5ef3cb0c76bf611b961a418feaf92735c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.822-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.822-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1298281bf322d7cb5f412bcea12bde2727c9da3b8f19113b9f3d3977bb91aa84
MD5 650fe2f1765a5dcf414d9b8452810590
BLAKE2b-256 bd7eecabd36419f2803404737e00e0fb4b8cef38bd46d2fd9bd9b41df2b9af70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.822-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 298af08d1e2921f252b8f35d29ffe7093ec38bfb73285419c23a1bcfed51628d
MD5 1eea60213f88fc59de78ccc1b6169815
BLAKE2b-256 f218255778df4faed2d356dcb9b6f4b0920c0a06b989cf7cdfbcd89fcf0a436a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.822-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.822-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aedfdcfe6fc09b5907bc390e9697d98fec43e54dfa8acb7a0514ac60c28f12b2
MD5 e8561c65e7f5e91d7a347e1484e3bae9
BLAKE2b-256 84018234402477a2ee1c2d1d8b980143b4c6eb26536122eb7b78f24136241947

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.822-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.822-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 651c030ed75753c19b623e16434ee10450c5bb906f257c9894eed981d38cd0f2
MD5 efe4c09b914d9f68ad96ff08f80d737b
BLAKE2b-256 6284e058d5ba212ca9d51dde7fca2df2f24a48272a7161d11c36f3ea9473cdc9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.822-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.822-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 28907974f01cb62272f7ef9d660bd37da7e43a9c7b6ef30f0cb59bd2249a35b1
MD5 fda03b5a43b9bfc0269d9ed013dd3434
BLAKE2b-256 dde4fcbc76b8d41ae15766c2e90701eb4298a67dc1db5f7e45205966f1247498

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.822-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 774ac7f3c0f5d95e2a418f43e8c2799e77fcc864d8e15de95e8b04ca9737e876
MD5 254816ec3451cbf040a4455b9caa5dbd
BLAKE2b-256 aba5878806730654312c6c4e3365897267a52658d37e5e61790c3f176cfd3ff4

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