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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.148-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.148-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.148-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.148-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2c877a028c60ab7b812cfe090270f94c261b39fd98aebe02cd6b3b1c5d0e7018
MD5 cf2ff11632fde74f899be3a3559376d7
BLAKE2b-256 e532ed43b9e2a81f817ebcfec5b2a2fdb096f912f3b650dc0ef97cd79de69e49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.148-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.148-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6e96b529d6d34dd768c35ecea4384eeaac2c95089b424e7672ccd45c145f711b
MD5 8a9d732d5e829a455776c99a04b2b6e4
BLAKE2b-256 7dfad96324d11195f19951368ed8bccd50218199db410b8818c2da494a91cd43

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.148-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.148-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 399c471416847581f46f3373264896eed9d7746f88ca0db53259a2db2d03be6a
MD5 5a44f328400e0642d0a10e1039c17950
BLAKE2b-256 0b4e79ec70c39ff068978663b6f66eaff2b42790e3fbac748b163855faa0b82b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.148-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef7e70925ac18d3ac7231f2fa4b4ae3f754e94334117edd1402eae3af77504fd
MD5 19d2bd9e7ce906b1deebb191e9ee80bc
BLAKE2b-256 11a7893f8bb30b1588e151a843be0b54fce3186adaf03b799bcfcd0cd6bd8af1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.148-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 63c1ca5f43b6d0bc8ccdeefa60002ac85569877a7dcd4f71132941e929191a48
MD5 620294d81bc88f4cf83234dceaeac036
BLAKE2b-256 0906e65b0de096c9b95be5c3eafdb7cf7ed5206b785badb10cd83fc5f1c10eaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.148-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.148-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 af352cdc22599e63e9d1ee1f8c1dc647e41387b31736b4817b56c6f08dd00e07
MD5 4c873e404719f8c39124346ba7ef0648
BLAKE2b-256 83f6abda1290a551c8277636520be9a92e864d32118dfc5698e75d731fc27da0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.148-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.148-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1bd8e0fcc03345d55894f2b6cea786f963611ea620217c440728e928e1d63b00
MD5 74b626ac31b72dc367ae90d3ba46bad3
BLAKE2b-256 24c9bc74a29a0fc9f26cbb8283219cfef5236a3017f1c7e3c6a5ac9d8a2f8575

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.148-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 935112e1a3c070265cfab4eb4b18c657cc906fae633d9028c935927cf60972f4
MD5 138a1b291b1250f9cb83a11f90766678
BLAKE2b-256 ec51ff9a2456d28767229abaa20d49618eeba0f34375731c9a6b4b1c164bc3db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.148-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b6e4eac9c925b22074b012a3a70231f1f73ee2e054cba9829fe66385e76c95a4
MD5 ec0103da99ae7694f3cb118edc98dbfa
BLAKE2b-256 8ce432b28dd5455cd1ec33975fdf86e7f5c565c4bef954a46ecc61970f510171

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.148-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.148-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b745ac27a76e047d928c8842f096a62ce6f71cdd9693c27ceacd4555611f6712
MD5 a3ac92e31fb9b65a4a26beceeba0b924
BLAKE2b-256 36529a031f7d832761f140807b60f2f8642c277b6dad1db913ec5aa66a7b6e76

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.148-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.148-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b7b2678ddac0b3744740084912171d7b5f8516f3ca6c01eb027319c26e62441
MD5 1e8ee9957a12798e685e7bb40a2bc10e
BLAKE2b-256 5d8d3f36ddf60157ee47664a914ea316f9625fd986145837be6fde97ab0bac75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.148-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af2d0e821e404e5c7bfdb38946ef72db66a814d073dd089d66cd57e18846bfeb
MD5 8917d05caaf91eb1a0e844d7011adea4
BLAKE2b-256 431fe2322f1b8e556accb6edddd6f1a19e710083e636b9a7ffd95547868a264d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.148-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.148-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ac1528bb71d916469cdf361d42e5d0afca61e0efe60a054bca13ced945425e08
MD5 cb06f4c715a1da230ef7515c573e262f
BLAKE2b-256 bdabae6a71569948d66ddfc8e3039c6adb9ca8b972225ce32182fa48cd5d4798

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.148-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.148-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7768112bc2d142227d0f3af15674d5f7d1acd947b019e6de8501d73879cbdc18
MD5 9b793e6c6a481bf51fb49eb35ac45e89
BLAKE2b-256 446e7f61bd6a7b1d03c49f1af5eb018aab08661c2994fdc82ff959c7393f4421

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.148-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.148-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8d31e521b346cefefae2bb8510eebd4d6f0e2cc5f2dc358800e6163f1833a023
MD5 372a12e7a77af21e47c6e62ddf74a423
BLAKE2b-256 ac3ab801867a9a807c8b57b485bd5bb8098907573a5358ac0a6e6e37d5ebc2ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.148-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e37640033942819ebcb3f3dc520cd0d465a5e2277682ff8ae11c1abc4595750
MD5 d9b640516e54093205427828c65d4f31
BLAKE2b-256 f78ba1ffda397326b0140db07bfdb090271971643ed5955a2970a3245f0679a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.148-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.148-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a18c8ea07e0599ab02469415a20c8d6f86352c5dadf2dcf5b3cfee4dd324693d
MD5 85f1fd808b4e350a310af3962c7088e7
BLAKE2b-256 06711d732a5be02d63b9c5e4bc2abb8d41532569a09e71e32883fa42be7a4f03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.148-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.148-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ac45db26212f74f74773bba0aa8655af8b5755664065e6502ee78699edb40afb
MD5 7f9c854c01595a69e5f4716d61fd8103
BLAKE2b-256 397dc1db1c92a88d0d8da3ded85e6c152beab30a1c8e39b149fbdb039d3938f7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.148-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.148-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 296b450f4af45dc3245ba22fb68a18a1c696e40e94a29b652c7acd41be6b076e
MD5 e03bdd3ff4322ab651ec340eb7d3799b
BLAKE2b-256 8dc9c89effb8c7197f3ff8ffac6f0694b4ac604a3301650021db215fd1be4f30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.148-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61a73ab613462ccd7a6e44eab44de132e73aca0889343e51ccbdae3c83ecd95e
MD5 958148eed091f89faf8eda0c3b52781f
BLAKE2b-256 cae11f33f688bd270f862095c1f7f68d88ef5a344cbe7f6320d93a2fb9bb740f

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