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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.358-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.358-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.358-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.358-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9ba9312a9b0461da7ac6783edec68efdfee6a56f13d726202e9c6d0f5a3453a4
MD5 56a4df2af422627b05ce09334eed2794
BLAKE2b-256 cf483b9b2ef5300c001782a6c0dbd32e29f53496be90f1b46374bbf56c8b7b0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.358-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.358-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c85d3aa2ce4228b81eeace259bda42f63958f4bdfb26e5e2b9038896bfc923e4
MD5 ee6a016237c167f4ffd3de7e41c732d0
BLAKE2b-256 dac071463284958763cb935f0999a4fa33f22e11f62a76e1c4f0a0663ea16ee3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.358-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.358-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b00d08f04853d2cb5135654c30bc4ca9807f8e4640e266742e344370ec380a35
MD5 6bf6f1d4e4de66262c870c678f1b6747
BLAKE2b-256 5e14231ccd676c53e12b51c84b46707a737f76f8fb5f3ad57a120d0e9702274e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.358-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb129fb387b062e85232207ffcc261c4cbf919b6b2c43a1c1a4f50a81925c4dc
MD5 0d1467c80f33c6cbaa330a0ccc6a41f1
BLAKE2b-256 0ea6d1242e54f353a26525dd42c8194b85cc474a834661041daf5b8f533f0b73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.358-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 78effce850f0d12f835688ce0308c3354461363d727a7c8a6a974e7a25d484f0
MD5 58ad18729de814b266483f21538fe11b
BLAKE2b-256 6d23eb7a5a4d9885850a63dfe7d96f06e142539d4f76626ae417c85bbdf35c47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.358-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.358-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d2f9d1f47908c6bef5d0233aff147ec9606089b74b156cb58fff4481d2d54994
MD5 f006d98fe4f8d10473989e1ef1b2919b
BLAKE2b-256 e78ace7cfc06e69300e410a810af08237a57abbcda4753f268f731d342a6a5e0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.358-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.358-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 677b75063055bf7082fc9c986b23f05842f2db56d40227edf58fd717b3fa86d6
MD5 75dca2f936cb9e9a68ca8a2f12652722
BLAKE2b-256 d2e6a48fa1e40dfe8c255dbb0795185d1b013a6dab8195fd0bca4692791c54cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.358-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29788075b0263cb0f1f1354d6d6a42384ee9c0e614a22a971da3caf80666a2d4
MD5 18c8f1cb7445e3deebd3b6638017fee2
BLAKE2b-256 41fa6fbec2f08721c9292a8abdaaf1ef37e7c584a9cee2b386903ef19919dd8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.358-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a12b58a8151a59876e2742f918bd973bf23f55c83062a4a8ce76f363e21bf38c
MD5 0a6c9bc7a9e0ad3e07d94e0b985bebc3
BLAKE2b-256 53f00315b7acff6cd7ec612099b67e8da50a475e79075a1ee6f1ecdfc0e6a8e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.358-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.358-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 03f91c60949d27d7d610b3a028522bf9aacf351849252cfa0b3fd6842caaebcf
MD5 75a7954986c26110ce1046e610c9d737
BLAKE2b-256 83247f456c83f4f7de01aba2b5ec118c2e7f5656b48b14ffbce25c1836791d78

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.358-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.358-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d85897b13eb87a75296ffe3376ab1e81902205390ebb2378af696563a8cbe698
MD5 9231b9e56ffea221e94af74aa5ee8ae9
BLAKE2b-256 4d3da6bfda69b49af2512fa7d67ddc5a0c22fdbb99795aeaa4c4d50866fe26dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.358-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a261d93316ebe10990e4e9fbb473954a8b0ded32e99240977913394c07fd8ab
MD5 a1c4259517075a6ef4f4e9113b7a5b78
BLAKE2b-256 9cefb0510769e5be4279f461a319faceb805a21fc4c1ab222a7b6efcc731d9d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.358-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.358-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8d2c18d3c908e0e5e6a373df32a181a9c91008fc310514b5f479319b9422c37d
MD5 dacfc5004d890342485b9283626e54c4
BLAKE2b-256 6d3aeb6189e670c3bffa5fce215ce493b94e9962a0589dbd956441594f2853b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.358-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.358-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9e56df51f4133f8c0a7e75c3d5e90863e805d19d9b368368e75b3481106894b2
MD5 6dafefb43400ff1109c071bfa5d26d80
BLAKE2b-256 a2ad06c608742833b267cf1358dd6b90aef91757752b4fca215f5ed37738f87a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.358-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.358-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a0e5906b43b7c1b5f500e62504b4e3416bd0c8b6804c7a8162631a45a2c118a5
MD5 80c0726764c1c638e1be040d96b0864b
BLAKE2b-256 cf252822452a5126a618ddd0c08b1ecbd118eed5ff489e7799e02acfa3c4c63b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.358-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ceb18a8998f8b05ab9c8fbbd2c92d64b6de82aa07a9bf741e79b95981f3e5e6
MD5 cbe9361a1daea79528b3308a5c37d79a
BLAKE2b-256 a5cdc80a49d21ae4fcdc813200abcd8ab3fa022108aec380373e855370ca8564

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.358-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.358-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2d15e792ab401a00cb89bb84a011361e73235796356ca244f93f3b68bb824611
MD5 c954c94b3ba254ed4fe359d9b47d4170
BLAKE2b-256 d31157d3d00c4d7ce3e1fbfa3bc7a3404a2c0b2e4690942455d1422c6c057297

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.358-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.358-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6980f03d857538e1df37ce053a26c2cee55ddbafecc243db6ec0994b0e29bba1
MD5 b049b766b04a53386322d3af49a088ca
BLAKE2b-256 8175649539d1d38d0d4bc7061b45040f58ac534bd3653df5eee9bd8beb08d633

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.358-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.358-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 43e35831d0a490fdaab43212f6abb554b267884d60cf0797f0b9b56804b7f0af
MD5 8c75d49b36bc61727c81f05982250f3d
BLAKE2b-256 dfd416ae5c1fbfc4f089c7a07070f2aad42bfaf829da1abdd94b0b8c04d8bc6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.358-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7996187ac332702eb8010e9b96c4c6acbbc99f0e34c538603b56132e8984946e
MD5 910b82b3c8beda9064351a1fcfe7376e
BLAKE2b-256 a8d1d49d0f7c92073130c5f6dfa3d77a71d15945a0548e85a88dc2c8a78fc7b3

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