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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.22-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.22-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.22-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.22-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.22-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.22-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.22-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.22-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.22-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.22-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.22-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.22-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.22-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.22-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.22-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.22-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.22-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.22-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.22-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.22-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.22-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.12, 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.4.22-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9360a649713f4ae656abc2aa4589fb7501d1b61202d3a688b30b265a3722b925
MD5 573a504c2011ab55b70237b2f21f1126
BLAKE2b-256 58d3a97fc916affc13ac7f52845887eaaf087e2dfb19e59ca49d3215695e13de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.22-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.22-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 75dd29c75d8a9a1e66aaefe9002ad7d82e89eb3044a3a5d77862db3f9366dd8a
MD5 9501684acf2d9fa8aa68bde32fd9b601
BLAKE2b-256 c2bd64adbc6f4646de440b57121da7714f3fb2fb760b77a9e42480ad5f4beadf

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.22-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.4.22-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 49271c0b93b865c5f737cec8fe5c8a8a49bee44ce8f6b8abea20d808588f667b
MD5 f958580e391423f1b6ce8777325345fc
BLAKE2b-256 e46be356d6dbe8150797384eb357f132227686aef9cf949c4b34d4e5ce4dd828

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.22-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d43f4f7ec51b285efd9c9f421d7581a6cb95ecda7c0bb7f8d01fc6c87b1f7c65
MD5 09ce76fb0ab8d4c12a986a46257f8807
BLAKE2b-256 27df0f3b4f85168b74da051d97927795cec070ee005a3bd18aa3309e8ca6c174

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.22-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 kB
  • Tags: CPython 3.11, 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.4.22-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 44c0f43243dd5c8687178160f06e314fdd1e99d1033d1923fbab189e44de1317
MD5 0fc4c6b43700806fd75214ee89470d00
BLAKE2b-256 a53677a4e2cbc409cc4858811a02ea86c13cfc799ba1fb53d3751ddf3c65f96a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.22-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.22-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7befbc5386ee2902e74eb17511714f5031542c98e06d7975568b4b3d73df5a25
MD5 631745b12041adb3d6e5a8157def2182
BLAKE2b-256 6e449dcdfeb734d131b63a7f5c61867539e5aacadb0e902bbd33c6ea3843898f

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.22-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.4.22-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e52f169a1c78411dba0b979999369e16aedac0a36144791dfc6820569ff93e89
MD5 fc6b9fa064640fa3d359b9350b542383
BLAKE2b-256 504acb2fe215b8f4c19e5c029f3f40f6b4ed2e3f3345db7d2ddaaa64cf87384e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.22-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46063b10f3a22c9054a59a8f99d6673d17c6190fea616f235ef386b064b6ff8c
MD5 a85416f979e8133a5ac0fc6b494db330
BLAKE2b-256 96428570683cfbc10c37a435e0ffce0bfbdb11bb9cab60e5e05d86468d523c6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.22-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 kB
  • Tags: CPython 3.10, 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.4.22-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 619b0efecab9e96dc19305e996eb49a8562bea31548ff6ac91a0f71ae8c75f06
MD5 8ad0feddacd3318c6f5ebded413a27f4
BLAKE2b-256 ca67824487488925fd470baccd51239613542b9e4f1da679ff1a4f4dfd24ec3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.22-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.22-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 125869e0b6c3cbfda501063eb342bea7dfe773e38050199aa7fc30e3d0e68df2
MD5 18bd22d87dad594ab5df1b3c00cb03e6
BLAKE2b-256 45e7b53ec9261f8326bdf1e18bbf468f27b18380545674d7115d3cd3b038a86f

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.22-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.4.22-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aac77f3291ac6bad07c8f4bac656b8199fb5a9907f09bc610380985041da9782
MD5 ee1b5a050fb1619d446726dc3887aa9b
BLAKE2b-256 eaca139dead1fb96aec5806a140d1aa3449576669808fcea09e6b9cdff93ef50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.22-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8a1027d48a103b79b7bc3a10f7ba06a0c6ca48a8da297eee970baf7b88ba340
MD5 21253e75945e1dcc312d7327a5f57e4b
BLAKE2b-256 5cf0631dca50ebec238ce97dae3136081acd6ec3ea9f3aa4d9beea65a01870df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.22-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.22-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 700d58d4a34e9d5717da082e31f5d3c5c29e4c04c1eea12b492b97c17d22124d
MD5 8bf36df4e632e76f173acff5b2af8f91
BLAKE2b-256 f7b0ddb072f1792c05657a8d37c22339a63c62b987263b977a1665b6d7020e29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.22-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.22-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a662ca2b91dbf9762d813668266be6e14ab2c55feb076ee0e9d9ec89b0e5bc53
MD5 47af9bcbbb5cd636085891281bd6f159
BLAKE2b-256 acab8278218f2ecaa2cb8e4d2a5bebda0100caf7f5f0654d8e47a928e4982633

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.22-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.4.22-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d63e9cd77d3d8eae7b505b2518710fd80ae9b08ca6558312a406b46d7e50c5f4
MD5 20de38c9990889ea2745278ea525e9d2
BLAKE2b-256 70b39c4f221670da29437fbd87bb2c60c55518cc28a64652c89a65f1b4f8127b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.22-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7c6dcd7314e1420ce56078420a0ec5dd2003ed26c637ebe4ebf220301af15fa
MD5 ae3d7ab067ca080f1e423e70b70ef266
BLAKE2b-256 f0620715409cdcc40f4804b3dd5ac2a2a1ebbbaf19b5a307a7b37b0f90bae3a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.22-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.22-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2aa95e5b1670091e5db79ac1dfd060f585493a3c5dbcf2924d85a2bc619ab6b8
MD5 3a4a5e9c957bc800d088ee153e8dcc7f
BLAKE2b-256 c503414e95bff80a6f9aba73638b902c0065dcc965eda6e4e88c83caca7e8df4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.22-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.22-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7249b219cee8ddecf7e3dd8f28eb11950890eb1c5d54f04685d9ad133ed264d2
MD5 c1246642b760d6b592ff75a485230d35
BLAKE2b-256 425e40324223408ccd94839af489a771a87a2c91263ac8d31ea6871af345c67a

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.22-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.4.22-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 83b1915d1038ed545a79b81239352489c911beb5cb40f55f629cedb10d56fb1b
MD5 1be4b0508f2ba60e0b8b3204a472f326
BLAKE2b-256 6762eb9e47650073d298271ef30d2eb6d69602e266fac0e718aa78a289d998cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.22-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4aee074f22799e29a35b95572e7bd4fb4d4bc559f077294e525528bce24efa0b
MD5 546b8872e042e48b0b4bc084f46207f8
BLAKE2b-256 2e36b41606b3561feffc45e43082db015c3f34515f5170aa1a34b3fcc7e18aea

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