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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.374-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.374-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.374-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.374-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e9867d10f67686f80d0b9b10eb9125fb0137d62d4219028e746c1a9af18320b9
MD5 7d76ef7c8a3fbb758ab558e2b338e71f
BLAKE2b-256 61c8d20f5421325da8ce998075070d3ef53079335dbed921a9a7a2727babdcc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.374-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.374-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 edaef2dceb6bdd0e25f2a2fcdfcd7bb66d682a8045d34bc8902b076d1340ebdf
MD5 e2f4f166a95dbd3187ff166aab469603
BLAKE2b-256 764c4151666e72a6ede3560c8a47d68d1d560765e97d89a00eafa6edbd967569

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.374-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.374-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 23da8c95aceaebf01260ff86629ec165866b134301e2a21470f0999f5bd0c79d
MD5 14f97c62e38467382c56c59577c09ecb
BLAKE2b-256 3c75f7ddab4017dd6aa593accbd13ffbec5c9b3d38c4769281dc2919cf41ed1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.374-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 759e7b084d6ecdea749b62d46e2291e561ca775e075af4d981821692660ed7aa
MD5 710cf30f199f4f7c8dd438c0c8c3830d
BLAKE2b-256 17653afe1923cad197ab05b167e8e550ad215aa8db2cc749839ecaf68cd3dfd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.374-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 68ce3d3fc9e28c832e13c7db24f6c8f097af4df14621fd4111f2909a0bc8e115
MD5 cd5093e57ea192be7b5ad43c3abea748
BLAKE2b-256 2b70fa9bcaf8f467ac6234bc721aae25a9071ebefa86e6a960beb39e3aa17094

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.374-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.374-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 56bc33bdc01bd734bf7bebe67412de615394b827de306264e43e3f0d296da2f4
MD5 0c44ab4e6f60d4de71742930a4f68bd7
BLAKE2b-256 c43eee7529b83863d08f8535f752a1f5b6dd39a91713ca423dc9fcaa32579a1b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.374-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.374-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f340e00ef14714ca25e00a62847eef4027a4cbc48f755a3e000da7d76b3089a2
MD5 77e2051c53b63bd31fa42e29363cb912
BLAKE2b-256 3236e184c2a1954482e4d529f14c5f963f8bfb91ef511e6cb1c895b31fa7402c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.374-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d928801bd8434cfd44c824a927e611fb34161e12e290d3c5d629c55ba9aa784d
MD5 74fd0be3d09093dd48e54def6601c56a
BLAKE2b-256 9ef4342dc4bc58ef5fe5fbd28de1b4822afe15fc8dcb372faa24bcd258c8f10b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.374-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 494d619ec56313039e2777601258d331453c2b380d1522d4da44d1fb3195a63a
MD5 e4d3e17fd73732af4be131d81579a9c4
BLAKE2b-256 78650a7e7a14469fc83876b666fe52fabce5c0c7c140afc01628328a8a5053f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.374-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.374-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b783e3b647fef6b8b8bf3feef8369ae25e37ba239ada75549440ec9ac824c01f
MD5 eeb4dd2df737bc82e0dba6d79fecc261
BLAKE2b-256 b72a5ca9a674660212dd11712eb4e47250252076019436c85e732bc3fee31ebd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.374-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.374-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1915f9d8196ba00131870f6b99b07503a1b8cdd88785a947ff3b0a676993001c
MD5 75c4df43a61fb2031958c0960967b601
BLAKE2b-256 b876fa42ade0dc08670525cfdb490aae37cb9ccf39ac90a6e49959f706f7b4c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.374-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 707229e593c4bf2ad01155d8d189e6112742b083d8a295c951a8b6205b2f6b31
MD5 7a53a36bb6591cb1e9a2d29831fa1149
BLAKE2b-256 ac4528324969f77bd4c1cdc8d9858054e4ae984d5c2c5613bc701bc40431c35a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.374-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.374-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2037d6dcb8701d5c31e7779410239517ab248aec64a58b2ed05baaa4187eacc1
MD5 377400c2bdcb2e9c49d6a10c2fd0904d
BLAKE2b-256 96ad3ce0728a8100ea1feeb99e188fcb8caad836d0be113edbba83677a9508d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.374-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.374-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f3e01d568dea3c4ba35a385f5234896a671abb7e42687608361ab73518da1913
MD5 fbef88d2a6106f6331fd034b507cd995
BLAKE2b-256 9f59899fe01e7311fc50363f7f6c260313832d6f965295dacd4324f7808518a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.374-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.374-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 07d1e6c28cd644a177f4d37373ca626870b35f6b3e84dd1dc15ab4b93fedfb9e
MD5 a1abacae83644929a09ff3aab9cd4667
BLAKE2b-256 49183a200c97a7d9f836a68645172f327e9a42855b951f955bddc5dfa288c223

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.374-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80d5fbd29bfe045ae63480a8e484b00293c17c5f533d392280b8fc64e0668938
MD5 c98ee87dff005b681489431531f8b981
BLAKE2b-256 c5d40f2a51ba23da105780dba9305a627507d6918f3a47d646a244f608b5592d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.374-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.374-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b42ebbc9e7e8873fdd6d23218ab56c6b15414f7056e7695d58154692517d9092
MD5 2eaabff79c97896887f5bf0f93460846
BLAKE2b-256 2a4c0e640a9c486f1ad0f82a9bbc3ab25f6bb67bd300acee808f6e16d64a60d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.374-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.374-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 08fefdecce01c6e74254a7e741f72a81af5e53e2f73a4d822f4d4cef5be72a39
MD5 741b49de454ec5b12f5658ae328cbd0a
BLAKE2b-256 dfb293312edcf86a15192ab3ed336bc66a5bef3390f485818d087b366041af9d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.374-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.374-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 511142c3e7c0f8387efc0b62522b3c4c55cd20c61e6dc7cd47723498a05de0bc
MD5 5f1a8fb8a18cf4a6194dd7e1571b8f5a
BLAKE2b-256 6d9e4c408d69c1578ec80d7e89da730aad3404f933da497bdd6ec2881b342d8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.374-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 13f651ec231d4d059813f4c2329e5f6b4425780ad49c47a18e28620a17e75257
MD5 c2d874d86478aaa3b3bbe69d7e7d0155
BLAKE2b-256 7d357b35eb762e9e93c396dc28924d9a6a7a7e925b9082f367122328fa361f23

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