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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.437-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.437-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.437-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.437-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0f903775f918c9b83519fe8220fc919e4a1b47991af394f8d75de6eb9d938d3b
MD5 46daae1557021dadc978f203503ae776
BLAKE2b-256 11a8d6e912241c9e5fbfb132f17c85b4e9f3e0960d1ef1ee97091888f52a1c9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.437-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.437-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f79dc9450943ee1d7ddc6de8548dd1554a422e6be887e14ccc7ca7332a94caec
MD5 d0a729e19bb1429a886c4fac5bbf7b8c
BLAKE2b-256 a143544496c37965fdfef016b6b08bc8a68e6c83d5aeae37e8bd223eaba6d1b9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.437-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.437-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6e5fbc92f640bc7e20dccdc393ee76ebf5784e20e705bff6aef2eb918c36788a
MD5 d5269fb889864793dc0905c4f271dec9
BLAKE2b-256 61627d261e2603d25b6ae1b0c7323272bf918632f93feebf6c8250a0a91cc98a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.437-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09f60ac6dbd1e83df1ef429c9346c261758cde1a06728d9f9f72d970142743ae
MD5 0d14109459a138bdb3de232e84ebad3d
BLAKE2b-256 cd584c2cb37cd30a77a2c6e0236a7a8117f7221148dde24e8dea36c1264b5786

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.437-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f806c231e5e33022633533bcad52f6c945a4b15ed658dcd467e6ee9561462dd1
MD5 de8af4d7bf621ce4498d777087fac40c
BLAKE2b-256 0ad8511a5dc0b9e554361c4a2034648c9bfbc1125b6ce4d837b129ee12e2c52e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.437-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.437-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 93b2d869ef50151e83dffcb29fe45b5f9313616effb9d2cae6fcf59a5c4875ee
MD5 fe0b5cf397f3f1fa30572abf7e222481
BLAKE2b-256 5eca878a07b7b0797655bd74caf00884b3eb74ec9deecdc7043819f1a646c42e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.437-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.437-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dfe6beee78a585ded30635a360e55f11b23bfe8ec4fa7afe3bc0c091f97ecdf4
MD5 fb8d4e71b9bdd5b50aab6734a411ebaf
BLAKE2b-256 6ebee62b85a0f8b7b0cadbaec3dcccf710a2926c6ea1a6dd8b8a4a538c0ee24a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.437-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f001340a80989e54beedda2b134a5afe52fca3eb23fcef2e897b8cc074e79f9
MD5 357c002e082c05bce7f24ab88f71bad0
BLAKE2b-256 0668f8711dc72ccb0eaced553aba35274173716a3e7a30671a06156b1b747c76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.437-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 53ea9dd4687e00d98c183885d02164a7b71284abe00e54ee483a0b337020faba
MD5 204c6af2f6755d15e463c982e20baf12
BLAKE2b-256 a9bbabfd78740085b2d070b64d20ddc9f3734a8d026b25198e43b300da13b20c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.437-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.437-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b3eb7b0a550a29ca6b8021bd102f6ee1209d53ccdb88f7006464182b534907bb
MD5 08271edf7017b2bfd82ed8c8a74e6ec9
BLAKE2b-256 07df636276c37686544d48d9c1bd8dcda3c455b3a63ce541d430add20f030c78

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.437-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.437-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3983dfe7573fc24682516d439e7a26598052283b7b135a7f7c80b749bac08321
MD5 d6fa84c89b46d8dbc3c31706641cbe05
BLAKE2b-256 4e0ccc43e995bc1911dedbfb91b3aca52c74de8a73dde92d165d34754e0c81a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.437-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a8fbce19c57a40104cfa3bda90fa0cf270fe7b1501a578ef6fe8187fc247155
MD5 31574bf5f54502b98d3fc666a515dae2
BLAKE2b-256 dc9716fed8fdf114bf316379a5d0b95e3f9014c30c79d08b70ee4d57a3521e5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.437-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.437-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8af432cb0b742b1a21fa6934fc8fc3a4fdec7f6c686e6965c7d50b02b3f269f6
MD5 24e926e040f453b5020c36b99be978ad
BLAKE2b-256 7aaae8efb908e4d2c74d485ef7c1c2ed2d96fc309667f6e70ec29b0e5490a560

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.437-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.437-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 301a21337c23c1492e27fcb44b6e5dddd8f1a0e40bfc3d9f844b865ded09fc8f
MD5 ac81eba7fedd2871983fc6c5b1659840
BLAKE2b-256 e1699765f4644eed1fc2d70933ab8ef96a4d3ca322e0957c65ea30450243b15e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.437-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.437-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8e16526f14d3d486f390cf110208394f6f1e8745af4bdcc46dff8e2129a0313e
MD5 e2549e89dffb5bd4f920f1007655fa67
BLAKE2b-256 16e175b2abd39f930971ccf579ea4a25bb18cf7e56f3a9c4edacf15aa83fe502

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.437-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2697def94c1bab7c3ae48d4f7ccf9facd1c3de0b366ba10c68e65158f9a3c178
MD5 9be58ea29654351cd5ebad3f5ecc825e
BLAKE2b-256 ba0c1ab4746fe43c35eae55a4bbef890c6b0ea86978f9ed08cb17f813974fc03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.437-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.437-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6ef43e3cf74be1fdaba7ab6939d8887852706aa79b0fbdafa9b2d6b3bddbad1a
MD5 e0d60a4f7eaea119bc066c2d13554fc4
BLAKE2b-256 97b65035ea90a0395b244048cbca0076f1fe900712483fec2c351bb23ea0868c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.437-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.437-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a4ec77bc3cbd5b49fa233ca28bdc76bc182a6723c4a6769be90dc3d9a587560e
MD5 396d83518711fec9b5ba98c0c2a1694a
BLAKE2b-256 3c438b21127e00b8f9dec46c70e04c089e0d4a53c480c619a645111eb255f197

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.437-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.437-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ca507a887f007f6e22ee2b9cb876ebeb660c45baa2f3f0e0839ef9b8d3f86971
MD5 3416d5b7222dc4f3a14080cb9a4d6433
BLAKE2b-256 c57152c0539060c67c09ae7541848ec969642f1e7004395728b06ccdafa25d14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.437-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7158f74a97bd2c99203e8e082c809c6e60e269f033e61ab23b18df371a7af27b
MD5 2d5ec2556b3b70838f3d61c219ef57b3
BLAKE2b-256 e6033650caa6cdc68321d7cf113db8fbc76f8934a52ba2158b6a11a64e7d317a

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