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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.73-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.73-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.73-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.73-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.73-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.73-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.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.3.73-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 54b65d5fc0386d100c9ffb3dc7ba4ce52d721dc6e0e6d03537fb8ba4e8d4d49a
MD5 a0ac0a0068784c388353d909f32e07c6
BLAKE2b-256 49f35e4c500a7addae3dae4f42621415227fa8a619162a4a0ecf34300bf5affb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.73-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.73-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d2399506299ae77a9ed2a63f46a1b8acb8d20409a6c92ae7418913ab3fe61f86
MD5 36363bed7bee7877a2fc669ae50e83a7
BLAKE2b-256 50f5c7537949754fc2d8a58289974c021fac59194a2b83674e76ee8417db865b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.73-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.73-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 348ec8bb011b0686f65aa3f0b1cb6007b6fff157862b914bfe65521b5a3f6888
MD5 c41bfc4e32c6081a85d7b3b2dfe56e12
BLAKE2b-256 75b23e36fb2a0c6af75be4fc32d8f3249e79d11e0352c3d65b2e83d36fdb2be7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.73-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6849e2bd5ff2e1e53b35c5b85a7dfe58ad2cef85aa757c34b1151ce839e9649
MD5 ec6a2da97d1705a69899e7033599226c
BLAKE2b-256 bf87f3681613f1f6ad466fb4a76a850aab54976d0b730fab154c8e22252fafd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.73-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.73-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8d6da40891afbc23b705de942788a32590d2c6491e6821ea61d912d92ec7e11c
MD5 9abd1b9015b8efa17a30e3f8d0dd63a7
BLAKE2b-256 389db015bac36bf1463796d90e93a93f7ae3cb692fe3bf3edc79faa503daf697

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.73-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.73-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0c065d239a9e11ae0de8c1863579ffcd6d2cc2d1779267306c13cca993ae28ad
MD5 860cd1248aaa77e088df7d7914ef27e4
BLAKE2b-256 13fb7abc17e4f945601ff50cbd04d09cad60da4e6348ce1e99ae7bfa8d4bf9ef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.73-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.73-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d42944de874871e0dbf1f7d718b6c94c3dabd7f4467e2b93d586fc94bf761928
MD5 11f7eb430e3298c0d9e08540150d8ecc
BLAKE2b-256 3b46db696f8ff339737e328748f4f55f540abe57903550f4869e8ee97ac91c9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.73-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5919181ab2b1619127f3caab4e04756eb79e76ab9be89434b365243b492b2bf
MD5 10bd92b26ea8692663448c8efa0cd69f
BLAKE2b-256 44077a50c373658970a4ff3ff3d76b6cecd266b1c45187fb97b09e8365c3d334

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.73-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.73-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0337d8af6fea78d5ae800e27dacb99f69c231862cdaab83f48e54377c9c6ff67
MD5 f7922b5173a89941a3fdf81dce7b6434
BLAKE2b-256 b197695d825f46dd1a26e96a1472d19e87428649a5a3fb3688da46f9cc60717b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.73-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.73-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 db0d8341e501e2ed554800543fa59aa79dad7bb716a22876876f81ca4c7422b6
MD5 81e37b4db84cea60496b9bdf31fdd827
BLAKE2b-256 791879fcc6278e2d5c3fd9896f523fa1e8838a3cd91343e76937328309fbe18e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.73-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.73-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b3a1ed7f3506538cd1c72aa1437d18092ae12e32a55c20275362e0cc8bb10e46
MD5 d2c081809dc90658630d13db6e57e007
BLAKE2b-256 fdbc6190d88e888492a363821aaff588f8e8bfeea3e65693cb2c3f17ca0f0da0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.73-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1d1d135a54bf1916f372fdbc333b84f75030d426505a15f38cef89d990f2b68
MD5 6db6c92354315f23de8f8c15852e0e6d
BLAKE2b-256 8d1a8c2947aab7b3e23657c161b50534e8225f3f6396739ef1f925a54e5f129f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.73-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.73-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a0051f24969beeaf1796b3a315c8098eeb9d1f9f17874cc4c990c6892d3d6e12
MD5 dbfa3dac1d3cb1062b742670252e1340
BLAKE2b-256 f69c45d6b7bae1cfe4f298948a918c5b9b387e550b65dcd0f882b3652dbce57c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.73-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.73-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 971b7f04fd3f5539e45d4cce40a086f9157482efe532d15fef88928f71a8b883
MD5 f469a2fa5f164704ba256c52904f9f92
BLAKE2b-256 2a9e674f5236e40de17c69fcf72874f01bc8c07a1827e783aeef807c871a1184

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.73-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.73-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2fedda110f65500c07a9038c207ec9868e7fe2adafe0a7080d2aa00e5ba24c8e
MD5 1eb7a45356ea5126f1beda7695996f58
BLAKE2b-256 9e611a3cd9229b5d9643f5c118f570d50b602e31a0aa1338d94d8745e9214507

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.73-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aece1377e2984795089c768fd04999f5a661f073f425176c43ac9419ca29756d
MD5 276e52238b068f8012041e2c92a8324e
BLAKE2b-256 e96317d99d131b97a061a8b2694b778d7e83742433571d2b757a455be3a7ee44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.73-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.73-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a3c692d529214fdbda250e5e790ce71b65502404044fee5fe9a5ac952f917cbb
MD5 ddedf890524f748ed253769d561593ad
BLAKE2b-256 c270c60a78a514653109472c3a0a68f94cc6f72a5098b0b86a1b06e219ba7aae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.73-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.73-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 17481827aec06a2e3ffa8b18daabf80499901d51e799ae1b89f407e5b8be66bc
MD5 526fe018aac4a9abc882f0845124592f
BLAKE2b-256 1a657e7230890163c010fd19cfe9aba46879e9e114a7160d8a05cb8719baa881

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.73-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.73-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 07351284089a923875379b1f7b78d66bd3ed89b35f11314eab4afaf7a416a099
MD5 a4e64b72bfe8e550ae988281fdd432bb
BLAKE2b-256 4945afe3206429bf67a677e4314645bd3fd87a5e4b8aa75c07a11644ec846102

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.73-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e220c2ab115c5c8b7c1bdb385c331a993ba7c45a35ee5622cc5650292eafb3c4
MD5 bd16da15d826455fb82a41a0cd5a9d06
BLAKE2b-256 92d724bdd12e098033c204663772bc4de02783239731a25a679271a01a195d3c

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