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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.256-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.256-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.256-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.256-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 187730e2f8ccfc5c468c32116220bcc1475e89ab9d034daa8c0f8452b06338da
MD5 44d2835b1c2af5b5b71dc12838a2dd66
BLAKE2b-256 33b792b6acd770c9a6bd187380d4434ba045ab1c74eecd121d892944ee8c5b03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.256-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.256-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0f5618cb90125a8b612ad1903e608e4f0f4dc0a23a237a2372fd707d8b83e615
MD5 40bacf7a012c59112301e2224611278f
BLAKE2b-256 f6f9a238cc13acf3a6461424828cd6ed977ae6f0714d476c2f926fc561c7d3db

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.256-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.256-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 91167a30c1a398297906cc56b5bd1c9e37ed56463162c40b1ae0365f11b2cf77
MD5 5af489b693d2e1b42b959e03d2ef9a10
BLAKE2b-256 40eea233255b59f707b9fe320baddfac64ecedea29ad1e0e0d648059af686742

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.256-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7235496722025418571a144365a54d768a75f4c3cad9e1f9c8c6b144b7bf506
MD5 923d563db98d737bc868aa79a5c8b4c4
BLAKE2b-256 314161eba59ea6fc61bb2095cb534a35f78f14e1bea5bb4f78f0e8ddb55463ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.256-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7649a4d73e1cd46dbfffba6a94a5e17d7220db9a484e046e8ff5d0b120e705de
MD5 c11b5c6837a7c9d7e7b874506e5afa85
BLAKE2b-256 20905fba116d92aa6a49406cc5148b5b91921cef5571cd5df2a03dbbe3bd76a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.256-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.256-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 36ca7ccfcfd038d9a8f5e33f604778819858e47431312c311c6b603303221383
MD5 ca549287c3272f1a827d417e457299b8
BLAKE2b-256 4bb67c4a1b53d6e1755d57cfc6cb8b7ab055f0cde07e89f0231105bf11be4cd6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.256-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.256-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 60fc4be283cfa04d2cb7b3b83ca0fb562f9780379f095227b9f08e3f9741d109
MD5 30bab71f0ff23eccb23039535741e20d
BLAKE2b-256 dd2d7a5acedd1db92bdaac8cd266b15e82ab65b96ba540cb3fc91898be7602b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.256-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 103d97705c99356cc94caf8cd8f8edc9c72a370e15f8e4ac38725eeeb09dac41
MD5 caae9d408b1f1519595aad4f27b46e73
BLAKE2b-256 6be2076bf51e7fba50bf5190396c57e794f2597ba54e52182df5c0836f08aaf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.256-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2911451e146c5e8c0deac32a6c0aeaf08e2aff337b1236125955062c22f06ccb
MD5 af1189a3c1c578ad70fcf08ec61957a6
BLAKE2b-256 079c5d7d12d16c2d43c2729503047a858cf7c2cefb06f094b99a9036a35b4848

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.256-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.256-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0ba0fb57c7078567a2729e2740297567b08ca4dbb113b44ecb74b01f1dcb9085
MD5 79ffeaa6f738b6b46e703c25e09f7cff
BLAKE2b-256 bbbecb607e4e7697377e095092b040c8b127ac9adefbe5b4b2476538ba26cb9a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.256-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.256-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d609fb3d30744a6c6031c27e6f9e7aee84e52bdfe57d9052ee7a3f6601306031
MD5 fe09b3173b4ea0fa8445302878525a21
BLAKE2b-256 81fa9c82177f4f25797926d40cfc2f2e35fc1277a29c3524d3640518861b0b61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.256-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9ea50f8dacbc1f1f2c81786a7c6eac12dd22d3c2e43eb1a5d16932eda96f6c8
MD5 1a4cc59bbae1d9cab6cd10eeefdddee3
BLAKE2b-256 21fe09b39ab869335e7a69aa2eee25c1537af630a98221ab5dd1088ff2c0b3ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.256-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.256-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b5d12203651cdc677712eb59848e6cfff32fdcd5ac51ee06426503ce2ebff429
MD5 97e85ae3048836f0fe04b35430c03b80
BLAKE2b-256 12eddb5e6539a87a34bd242ee0cd582d1bc8e19c2f6e92e5b717c435ef13650a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.256-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.256-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7fdfb7b1dbc9b6c69ce2807c64bee8e4014abf547fd76920210002b05b3b9149
MD5 a8975975fc119f3b04cc1e7a67d5b6b4
BLAKE2b-256 352b32b9641743d1d3c0bc5bdd5daa5bb1dd1fbb3f1787474761ff09e281e6e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.256-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.256-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9e4e4c65af2a7888c89f67812b76ec6a5c1d8ca59d0ffbfd277fbbf5075f2c71
MD5 7a9d7837fc4ede094d4e53436858899d
BLAKE2b-256 c8482ae4cbdcb88c135438055da3f00e3196a8e490a88f58bbc92d4b72896df6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.256-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b78cf6af68cf03b5e5ca5c3ec606886d87666d1eadc916927d4dac00f93ce71f
MD5 ca22799ee75e6704dbb6ddc12cc9ae2c
BLAKE2b-256 306460fdca93fbe8d6b05faa853ab8a8fe7d4a8123af644e6cb5d7e6622a1580

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.256-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.256-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0c11e825bf67cb5a32cc366ead34bec3a0fc736d3de795d9e9f6eb6eb9a09316
MD5 3beeb9a75a61694dac2b68aa312ed27a
BLAKE2b-256 acff04d20845f0b9e59b22706ed1dbda3be0012ee84cde0ef7a552a2ecf8df72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.256-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.256-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 47a51fda1b6ed488ea90a7b79c0cb908f9aba16287f374fd3604cd393bb39839
MD5 275b122d22bdefd7a0997f93625c650b
BLAKE2b-256 0e0645225be928a517e133322a6942eb0b2d6519c40c9020dda7d7f1e1bd32a8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.256-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.256-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af632b3c6f35150dcb3b1aa13dfeab8a738a566169f163400f9da7fe8d5fd008
MD5 1a0a3e50b4cc9418e4b82968c6817070
BLAKE2b-256 8fdcde13fbceae4f315665ec3851411eb32ace7eddb9293dea03a5586effeebd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.256-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7bc8b20cdb29541d7e950888b1d0da9c9544aca67c682b17affcd240dceb8ef5
MD5 a749c915fb94a32513c79d5fc90a99fd
BLAKE2b-256 c4e37e329303a8583e9e5905d5e97669032f251fa64908c978e753870ce7cb6b

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