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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.216-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.216-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.216-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.216-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 587e55168465013fe29b78068dda4fe947a1cb6a43c96ed08d3660516ea13730
MD5 3d49d5d79ce974e140df850e09d585d4
BLAKE2b-256 c580b9f5b89182943db2891cbe6477e951be1e15f98870912359c91a04e0cddb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.216-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.216-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 489e52badfc949646069b74c70253a28b47c5399574c33519ed7faae4ef2af12
MD5 42e478488c6eb0b9b63a42760649f863
BLAKE2b-256 756b662d8c119b3573c259e26f4c4b5790177b6bdd9bb9fd8071ba2a0f2783bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.216-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.216-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8995be14098420cc5d926ec8ebec72ea37cba5f2a7c18dc77722361077e0511
MD5 48299d8a8a405b64a31c5c84b4d3ddff
BLAKE2b-256 807db256c950456086ede9390b0861c4a85efccb6f5355e3148cd505fff8fecc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.216-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49f52a604274d62a44f402da2993c866e7d23323887bd53acb5a705a54929469
MD5 9cef6cea47a90435aa66f595e22760b4
BLAKE2b-256 4fc3973b81538d2c6860d433fd21eba43a0ed2ce31445c87404d4be205101882

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.216-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c9a824bb00e335e7aabd88110bb3e21d9921892cd55879fd2112da818429d25b
MD5 9d4efdb001b5f6bffc7eee2f55f9cac7
BLAKE2b-256 f52f50161e91b48b70883cbb658de4ad4d7be9f98d8c87a799ad4ec85d6ab122

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.216-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.216-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7b69f7f7b78f838ced523ff8418cf590de01342c0c21bd9c924cdff80e97b56a
MD5 4225d6360ce1a7ea507905dafe9a7f43
BLAKE2b-256 3c35c3c14be7d08f30cfc01fbdb7f7fd48378fa38aee301e3dba7eaf2c19d12c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.216-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.216-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 705e1c410b25a70cf19a2a80fa43afa50490e1556a59524ea3f37cbb83100761
MD5 f4f265bc14c6268d58ab9ea56b9640da
BLAKE2b-256 251c6e5a58abb38074ac11b553d2bc94a9a219d28614051055cdd04936da5d12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.216-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec075191c2cf4d1a57b305a949a69017f42c90a16ea84825e08bb0700105b911
MD5 4c13c21db7e387b47294627f4bdc1e85
BLAKE2b-256 f4aa3c064c3c37071704f32ffdf8349d5b3acfd28c9774809de6d1b15f2ce813

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.216-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8d5ca38a9e831335d8579188283b069ad3462edb4505ee5b39d3604fa2defab7
MD5 ba9177b9968d2efedb153ba30543e110
BLAKE2b-256 3100c39eb5e6012e6d357a3ce07230ad463e4ab6b9c400c83f07c3a514b215c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.216-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.216-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 df766217c83b0566983535316c3ed5704b55b569c9395f4e11f655a244586108
MD5 4366fd4eb033686c4a7c5adae4fd280a
BLAKE2b-256 41150d601848deb583849ddb9b871a2c87fb3dc57683fd3b726eccbe71818295

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.216-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.216-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f2ac07da09ca37977b22a0f0f278cb748c46cc84532449802b590f2fa087ce99
MD5 569ce1f921562efc0bae15fb437206af
BLAKE2b-256 ad427b20791e31b1de2f7e2c2b0bf4649de92c3153701406bda00f5b7eb73d4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.216-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38c97bcce85f5a228e563e70df886f1c0842dfa82b10e1db1920b442365ea3a8
MD5 c585106dab5bb0ecdae6b39888f79d6a
BLAKE2b-256 4a7b7a4ed1d5989531001634a3c52a91623221deebc06c4971adf97d72223a7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.216-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.216-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2a3285307b7886c265650ee59f3e4a5549a8201433099138d062fb056818846a
MD5 1c80b2e16db96f0030bc856ab6896164
BLAKE2b-256 b369938f2d20e8404a1356df2a6d6dd190d054103d354aec31a84ffb3ca09485

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.216-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.216-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2ba7d292683f19bd418053359b4959dbdcb7e60bb41850110b2018def9b9aed7
MD5 060fcc2008496437fbd1d5a4ff0d5484
BLAKE2b-256 d31b7bbe3a7c6234cd1dc2e2f035860b46ac50f3a8dc91a72c970560ca173b61

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.216-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.216-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ce9aece0b3ac62eea7593772a6cf4c1fc01c4392ae8f035ddadc71ba9c364569
MD5 522f7ca50624eedf03d0a911744da0fb
BLAKE2b-256 195d3db8f031c213ea0bd3b3165a241e834a54f38ff43ca16dc017b4adb082d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.216-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8f9611ac40be783f833fdc11fb16d0a3a506d4bf3565f50a29b0d558514d31a
MD5 fdb8bbc1e8d1bccae2abf2444a3c24f2
BLAKE2b-256 784e56229627c0671a8d0a0565d60a3e83be3433918ec5d7443270c4b005d74d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.216-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.216-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5c22937851d0dab04b2c39768533de36be628658da6333f0c5a1bd784fd1edaf
MD5 119a9d55f4254318d571cc9c7bdcf10e
BLAKE2b-256 5a87fe9f45db3c6ef1fdca62209405c8a8afd7d3efd20562ffab0c5c1d0daaeb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.216-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.216-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5fabcad751fa4bebe4e01dbb903516f4259411a2b949e516001ac010b06cca2b
MD5 0db88b3b942f67dcb61e2c42d119164f
BLAKE2b-256 763f56dab900d3a7ef4b508f9e6beeb91096d3a351c24d382f99732a5f673c75

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.216-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.216-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1bd9052c123ef70c3daeaa709256f15e62f9245600080b1c0b856c71705a10d0
MD5 b55c946625f76a399e28b73a9e220f8b
BLAKE2b-256 31e0e4ec6d9afa1f2c76bf4aed6bc1e39744ad8437f4cf3343e0d493c4380310

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.216-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c1821185c8a7aca31a373ce5b2128db74a1ec9cd5bc3e7453a9d7accba2299f
MD5 67c5f0e5deceef00e8d94100161e05f6
BLAKE2b-256 00c3f0d146589814d6f0a187b1b74581ced61f962f17b9c8ba7368c093e4c712

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