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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.5.5-cp312-cp312-win32.whl (118.2 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.5.5-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (371.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.5-cp312-cp312-macosx_11_0_arm64.whl (124.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.5.5-cp311-cp311-win_amd64.whl (122.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.5.5-cp311-cp311-win32.whl (119.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.5.5-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (332.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.5-cp311-cp311-macosx_11_0_arm64.whl (124.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.5.5-cp310-cp310-win_amd64.whl (121.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.5.5-cp310-cp310-win32.whl (119.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.5.5-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (321.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.5-cp310-cp310-macosx_11_0_arm64.whl (124.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.5.5-cp39-cp39-win_amd64.whl (122.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.5.5-cp39-cp39-win32.whl (120.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.5.5-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (319.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.5-cp39-cp39-macosx_11_0_arm64.whl (124.3 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.5.5-cp38-cp38-win_amd64.whl (122.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.5.5-cp38-cp38-win32.whl (120.5 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.5.5-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (303.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.5-cp38-cp38-macosx_11_0_arm64.whl (124.6 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.5.5-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.5.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 121.3 kB
  • Tags: CPython 3.12, 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.5.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e22a0f3f47f2e804533c7e1dcc2278fc90f6a5b2d503826509cc062bd667361c
MD5 dc48b2f2eab88f079f5c3708b6839ec4
BLAKE2b-256 110012c93d8328911f4ac8cd45b9491a98601f58bfec02233042978a5f2a1c6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.5-cp312-cp312-win32.whl
  • Upload date:
  • Size: 118.2 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.5.5-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ef38d384e275009bfc62e811151ab5c5dd51452adb243a72c990784c6be7547d
MD5 e25ce3dcff39720cb50ae76b2932e70d
BLAKE2b-256 f8dd06290aee7ee3f2886a885d76d584f86307e76a3336d0d7bba2708193ad98

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.5-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.5.5-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20639e1ea6e0b5c46dc0ef08a703737b0a2a14e32400eeda93d3bfef3bb43d2f
MD5 802baf40f7e68b56295a2c430566be27
BLAKE2b-256 e52de85edb10885218d0ae1731d935434279b3bdd32453f7bd30ca02189d9d84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e0f200f0f460c66fbaf7b9e989b2a608534c48c238618c14183589a45332620
MD5 70a0cf418c1a02b4f75c42b52505c796
BLAKE2b-256 b7639d48bcdb29a7379179afc2cc84580b4ad5d5e93e851579e8f2bd39ef61ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.5-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 122.0 kB
  • Tags: CPython 3.11, 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.5.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 968cd2b7cd61887241ecbe1c43390784a4853a75d828b94eb661f8f50e3a755d
MD5 b542d21cd8603d6a02f526583e2561a0
BLAKE2b-256 9dfd028f6c7fedc0c2113b15a52b847260c15f98abfed9acee32ca11d1d1e044

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.5-cp311-cp311-win32.whl
  • Upload date:
  • Size: 119.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.5.5-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 297cc8d7905a20327a6a98c46d0a5b65804cb09578b1cc7206c41fe56f6207d9
MD5 9039740bea45fbe44e9d4b248d9b4462
BLAKE2b-256 f6826a00f86076ecda61c379822ca55da9f532fc00e2b38bd13b775af88f0d8d

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.5-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.5.5-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fc2cfe1fd7c4fdcd885de3633abc215d3df2a9030220ac56fe75356eefec08c2
MD5 538bd2867f14ed89904aeaa6fb101dd4
BLAKE2b-256 bbe018dff5683db4759a49f23354649a5bf2d7d568a3ccf6f0e36160373a983e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bdf407b36a4609bbf9fdc3124870f95bfe1d7fe13c82319de64dc5f16ad57a2c
MD5 c2c6d373755ea136f8101491367b89c5
BLAKE2b-256 f361e1c05605a5a1bab98bdb776b13654f0db47c2d172c352254995fc9024843

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.5-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 121.9 kB
  • Tags: CPython 3.10, 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.5.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ad47d088cc85bd75f6fc18a6cf3f43675e613670000e04138f7f682cd6736490
MD5 4949eb560f1139fd80a3ba15d59d0122
BLAKE2b-256 eb4b1ff7536479ee49c370c90d8f8ddf4a6927c8fc490f72e144671de1f1c881

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.5-cp310-cp310-win32.whl
  • Upload date:
  • Size: 119.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.5.5-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fbf32f1830e1d09ca2c8add2b46191635fef2e5a293eea1b3d1333010a0b1993
MD5 ec768711896d20471e4247b026d2d45c
BLAKE2b-256 704b449905c4b566e92b52a372abf0987ce2dcfd625da3b1dc81436bc7022719

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.5-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.5.5-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9fdf1cc42c6e8d759d82a2cd141be0eaa703882780cfbe763f550cae41241e2d
MD5 fe1fe01ae64ac01887959ff3b25f1b4a
BLAKE2b-256 cc5a3cca2f8966bf664f3af0624ce61409e00b2b4821f834b4c8e4d3351af58a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a98059cdc24ed2f1496a770f47cf237aa373cd363d260eca5b45ebff08510075
MD5 0f1c68bb5325b3ac378efe2413e2b699
BLAKE2b-256 4d6e2463534cb247131cea1a8759c3f76deb2a5d2b3b9145c971482ba57fbfa4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.5-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 122.0 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.5.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 124ec9bef8fb1ade1dec4f926d119b6cd8e60c9e81edb59bc033c22a32f45560
MD5 d0130aec72fdd81475ff64b33a6b7d15
BLAKE2b-256 6d3ca8378d40edf69577d4e8621247a292038b8a4669db7a405448d2bf221f27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.5-cp39-cp39-win32.whl
  • Upload date:
  • Size: 120.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.5.5-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bf2503ce49eab400aee5eb0cea9afb1faca33b85973b06f81bd527c17f319958
MD5 47ead7bf9c8d20e33cb52a30eb8e1538
BLAKE2b-256 a3c4fde7fe59f72a1485c49a9846f19a249089f0a18725b97db54294700a3622

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.5-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.5.5-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c4352048ea963026ba4c318997f57cfcbf6b3051dd4cc1acf99a0459078d8a22
MD5 d3a99867adba538537f7a6da58e2a0c8
BLAKE2b-256 956c1fd39b1b3ff8d37ce9315bb08b4c69bb58dac14f90b8a9c7fc01f273b1a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee926aa8fd0e0b13bbdf7c7622725ee3c8910b58dee7c7e76fb757f0e0ae69d1
MD5 6ce68532b84b83854707f964fc7ed605
BLAKE2b-256 61f7318e382897368170227019d550823d22e7b2c4d2eac4bed60d137672838d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.5-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 122.5 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.5.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5fe20f733282f850a3882901622cd06a86cfc86c1baf12b545bfc928fb5465e3
MD5 a9adff0729586afdea6c4fac9274d29e
BLAKE2b-256 5397b4062f9d4b8ff831230c62c7c346f1c409b487cd600a54ffecd6445b9d77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.5-cp38-cp38-win32.whl
  • Upload date:
  • Size: 120.5 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.5.5-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1773394f8d8942d4a4953e6da1e62167900675bb590011f811de085e5570f745
MD5 a56bc8ea7a7f527e8001a4729f7adcaa
BLAKE2b-256 6b96faf4308547ac4622feb85bbc9407e92f02bb96697f1af32c316dddabe942

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.5-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.5.5-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 342dfbd1da6cde5d1b6fb828e43671c3318fa837bcf6536d03340c3a43fc0d8c
MD5 d3728419cfa1a787fe5f8c1599280da6
BLAKE2b-256 1241ee487e98abdd68599d0f600d8f6eda542bf8c8d4edf77f1bd53803596969

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.5-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6379b88f7d020db8b994f18b251cfa4a74d043fc49b4ffdd8a5c419ab27b22c
MD5 a2a16d5ac1e677e06af3fdca6059315e
BLAKE2b-256 d6f98c9e6fb63cc150a3e8e800fea381a77b8582c78d615328b29e5b77532dda

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