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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.142-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.142-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.142-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.142-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9fe11b2478f66768cf2133c455c4854460843381347477cf355ce559a5ecfa39
MD5 234aa063c4fb244cfae6dfac44257ed7
BLAKE2b-256 8ae9148c176ebe363488e98a1f549968f8f1110bca31234f763c8992b209c13a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.142-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.142-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ece3eb04f86265ff7b04aefca9dadc70d93ac98fd0ee061d5356e55bb13bb437
MD5 b4b274f0a0c86b34dab7699e7970c140
BLAKE2b-256 8ed47f5685c543b90967fd616ad540dcd15694229a7a092258d4b1634d119092

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.142-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.142-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8f25fa1bccaefd1b9a5fdaf36b460b6021e1c467d9592aaca7e6f9ddfdb7e39c
MD5 c27403b02bca6ee78e34d554bc5bb0d9
BLAKE2b-256 930b314139402bfd437264633bb63c5c90f80dd12be5f5d8a1a9a0773bf631da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.142-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 92bb655c599f47471a34bc29279646191ce61af7b07b6488fef47f754d3069b3
MD5 6c2a2c1cf7e6b3857026e6cd9ed128c7
BLAKE2b-256 9561388ebf50b578a00e5db5ec30ff02d30340a57652800fcb903df708e34b6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.142-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 69fbb94aa9ed67118787c52f13f0641a8a090007fac07ea7efcb3cc65c501094
MD5 0423681b5f07bcc3f04b2f628895e806
BLAKE2b-256 926349fac3d3c8d24685b8355f4c0dcfbd3447d2a2421dc8d78cf95209cf8425

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.142-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.142-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f8e94e2c4c75d0a0b3ad18f15fe8aac0864a15954033faf1204bfa8b607b54c1
MD5 e4febdc805488c11d02dd9a496427549
BLAKE2b-256 149be4164c3777206cd792d14f8412e77e8494fd5e1673a104afc0b1aa5afff8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.142-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.142-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 855da62cbb57258180ac6f7c4fbee6689e59b49b57cdcb808f40386fab189e63
MD5 e233d0bd8a35d134095395aebef2e915
BLAKE2b-256 23ba5cd0e760987428f7b926023e01afacab471eeee9eb1f03214cd1f97d7022

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.142-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ace4c33daa75b4483f9c0675cd9b14382421a47384440c5ca1b4a99be666370
MD5 8caddf3aa14119bc437287d461bdb7b2
BLAKE2b-256 a998e1717ddcbba7e6f3416d43f063e6706d55299e090ee41af21fba851bdbee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.142-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 49a88f36068ba8ee3f187e616e94b23a2fdf5060c42091fda370f729e362d79a
MD5 b64dd732dc2ea7915fbb1999582cb54c
BLAKE2b-256 d39afabe648a13c7df7dfa8c1965670037f08612a36076a3d78b6bc34225dbbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.142-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.142-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b85cdd1d77251f734d3a76a617331620e31b72bed4961c93278a0f1a971096f2
MD5 f557535a30521b23853791e6543db835
BLAKE2b-256 81c3fd3ea2887e94de13900a9deb427989348f9191472b3e140e3595cdea0567

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.142-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.142-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 05aa6529852ccddc864cbfa6adcd5965f27d7426711a41732fc3b034b56c0c6b
MD5 111bda42ca7ecd8981138bef3b20fc77
BLAKE2b-256 44622b97c2acda681d771d8316ae5e3a03280b87957a918acd73007fdd6fd017

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.142-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd580395aab64204ae32ae498e0c4f13f4c1551f568374cc84abc915edde0516
MD5 e94a5d69b44061616994a50cfdd7671a
BLAKE2b-256 1d3a5952903b12bf16034b2ec4c01004a9482dded879d6ddb16dfeb629729c11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.142-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.142-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ca073947d8b633d7ef534669499927f42885f9873c1c4c3157fcb80baaf5023c
MD5 e37d258bcfd45c16519d81fe1d344c35
BLAKE2b-256 71fb66dc69654a6001a10c808f4a65ff7563517c46eb8d8a119933aef31f1232

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.142-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.142-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 096a1d817559d9ea1ae9100c1421ea6d79e140973d0c1c274d7bac20dfe4608f
MD5 d456e59583f632556aea628c13b3d598
BLAKE2b-256 8f3cd5ee50236ab2b3acbf40904b6b15c13d0ee75bc09f560c6d436d24b3ae9c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.142-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.142-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b9480e6c2b88763b5e2dc1895edc957042fd203b770de091a1b6b57c9bfafa18
MD5 4eb2af4fdf14f4faa8992fa6d2c4e12b
BLAKE2b-256 0a6b0dcf5e62f561bd6c5a2935c687e272a92f3b8de846ddaa1b4fd4941f1d42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.142-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 45c58de807bc9d8d9f80b9ebcdb9758df5c91962b7ea78dadb2312c8c70ea03f
MD5 61845ff63ad849037b4e85bf3682f5b1
BLAKE2b-256 44cbc7e90d30326a4f6574bdc90e5aa6d261c9731e93e7e61bb083ef4f4ca093

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.142-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.142-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 963d6e5ef4acbbd417f3ecb3d8a0ee992a9f3f7430aa23bf9f54ff0b41ecbdd2
MD5 dc212c61e0393c63b1736f9f210a0d21
BLAKE2b-256 f9b3c2a86b232b53a1d284355dd4582dacaf1f85f6401c21cf77deb6044ca20e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.142-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.142-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 753cbd1d5071deac1a7232d332422761eed2ca12293ab52969e51a2d5426c148
MD5 b23bb4fbc57b0e625b3156c15270532b
BLAKE2b-256 65aeca2796322bdc47d83daa031f50487a82ec9d774b3caef696a074c2ca94b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.142-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.142-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 670c3adf95a3c918903dc51434b9865446f5542085c120fd5b5274f4022a06a0
MD5 0b2501d0c9d971578959884b584dc1c6
BLAKE2b-256 6342583910b90369f237cef09d0dd497ab4c99ac08de72cc3212593b217ae976

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.142-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e39904b20df79ad8ef43f0c5953ac441c67ab2017d67ab9774c4ea3e34535f3d
MD5 b2679c4254c38d88586a952a05fc1195
BLAKE2b-256 1e0734cf528a4e1da0c01ea727015ef722bbfd037d8f988cd4755577fb77fa19

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