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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.122-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.122-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.122-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.122-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 131c2b943c7688045d0fb7c9c8e70ca592c6ab4f6b52a3cc24fdf90adeddd674
MD5 7347e72247deeabc367c7306856d64fb
BLAKE2b-256 1a9edabfcfc2e9cc549655fc5803c02c7908c4f0b40f8ba0f0a95b71277f82c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.122-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.122-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 16706941ddc0a7fa0c5ae1fc92d8da93da0fdfd66e1aad7e0976ac8b383c24b3
MD5 c87c16a1a40f2c2a94f06eb488312459
BLAKE2b-256 e5e651f996aa6517a16f7b151578d97800313ff72597487e26313462926cb5ad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.122-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.122-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6329d41aef03f96752717d344bbd2c4ba29ce6cf52be5b6b625aa44078b39b3b
MD5 f4d58cc87e640995383f80e5fe7a0525
BLAKE2b-256 60685f4fd2b3e49f27434a8744dea379141af58e1b83886fbede05bec203cdf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.122-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 082530999d6c30189446a79bdce4ea20661873cfe78489aa6bdcbd9016671f71
MD5 79f3af0cfd492ff0fd064e5f893015c8
BLAKE2b-256 5efff2f7313a2aaea0d1c5c6783841c5b61776f2249276133742cd9f29d11382

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.122-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 39ad6423f3f455e3411e24371e8bd6eab8a56459de9aef21f9512bcdf275fc12
MD5 1359b6e87fea876527e1a8a407b19c2c
BLAKE2b-256 690f9fb2f7190fd7cf5ea6f8ed838296308f5a36a6eb41fccdcd3af3065d42b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.122-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.122-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b7235e0431e9aa84b1d4c28c3cbad12740763acb48554a44673bdd5a03b0a750
MD5 a7c0b9fe47b7b80b24ddca0cc751215a
BLAKE2b-256 b076fef2d1832e2e6a02f065ad9ac5b5efa7de076540192d912f46fa71d09414

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.122-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.122-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 da1679282dcbd006bdd6f2fc8b56d9a0c6e2d19cdbe0423be4a0cab4b8518fb6
MD5 d2d197942a98768dc97c493ec30d6ba0
BLAKE2b-256 a980296ed13a0d0612520bacd5e97088e85faafb85430e081cfa44de08c101f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.122-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ef2ef2880dc385ee34eba568089d745fc46ea07509ac864b99ea2068db852c7
MD5 5607e3c0f63b823dc20fa2314c12b510
BLAKE2b-256 fd14f9ec0f55b90b8c942bb7012770a5cb9352fd49b97b0f895b76105837b9e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.122-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7339a291a0b51675d1a8733e8cb9b9861af975f22031449e8fe5efdcb3928ff4
MD5 fa343f559d71d5921ac7dc1e4d8e5c70
BLAKE2b-256 17d649dcc8d103c9b683132e53549e08f1a58419ca87c210426a2f6594d0fc6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.122-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.122-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1fb337adf6db219586e8738905634ec765d773a5cd7654c5368183791b8b794f
MD5 5184499f570e5b8ccfd496b1c4902961
BLAKE2b-256 0211e5961ddf4af2546d24dcea7be7e6aa6a379b8162406d90defd0ae311c4ef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.122-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.122-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 125936827180be80337bfd0995473b686b9362508d1c301ee848b4c57c461d30
MD5 f5af19c81426542171cfeb33bd93da78
BLAKE2b-256 9ed950f13f64d81d505738cb49c0fe1d1c33ca4451ef0858f7a34ebdbaecde01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.122-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd0778fe2cb5fe6c740e773cfd27a86fc455fbf56829001e5cd184388a565250
MD5 f4e8304c67bf0ba4be076d959cd8212b
BLAKE2b-256 7cf807b5b14f3c6e888b0e8999674634d91b8520f24f20909ab0edad397e9336

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.122-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.122-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0a1c42b53367a1f3c92f66ad47daf40b348963ae5f6fd99b97171f9ab5659251
MD5 3d1e12881749bfc936ec9ea0c6e6f6bd
BLAKE2b-256 a93c730e0bcc99d701610b3817ab04921ffe050e7c998be6921f59b1c2082e21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.122-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.122-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3d279fcb33465d366d076d67fa6648613604729407eace5798b131b16d769351
MD5 78671fd6b83cc26a8d6dcb09851e5059
BLAKE2b-256 cc012f833b139f9f52c98e1b98fdb5257b3780dac3d371188ebecb03e199793f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.122-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.122-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bf76cf4d57783275ae3027802c6f631eaee52b74c636bf8f559e38378e793ac0
MD5 0361fd014a523e5b04e198a26dbe0528
BLAKE2b-256 c4d641274ccebd59aa01bf353356965ac9ab0cc0384340e56407bf1722d4b02c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.122-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aacc72da33920657fc32b2bc4d91d7e5e26771be3d1801bd65266baeb90fda67
MD5 15377054a3b5942070d507cbf1379afd
BLAKE2b-256 c0d04048b898f102be73b61e80df24654d9edb500e1913fb06f028b989512025

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.122-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.122-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4e70b47c99c501c169864a11eb62b943c18cbfcb21ce89ef0a9698b7e3ad9891
MD5 1c25aa88ada0c5baccd33f869e81eeca
BLAKE2b-256 0ed175f3f00b90c8c0cb09adc579351b9e457b338b88ae64bbe499e161c93ec5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.122-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.122-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7ace2f4cbe88749212f8f865a2a37cfb2d3fafe68361ec08b6cbd559e09cfc1d
MD5 d0d7bee535dfc4711664fa4937ee445c
BLAKE2b-256 6f784a7ef68e21ae93f3a8f8a61cc762ff2007e6f1504a2f6ce212922f39eae7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.122-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.122-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a468e8b71126efe4940f34e3d7e4996ba742785db59f1a93376df4003574747d
MD5 0256d98512c10d0cca2163423904bbeb
BLAKE2b-256 79fb8cc0ccbf237da321d8f10680effcc0620f59e0d34e339ddbfbffe10fc369

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.122-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a8fd32458f9c08b6b9eb46edb167653c0a04bc4d8c4c06305fce34a56a4a42c
MD5 408255d542a0ad77ee05cf0276b50801
BLAKE2b-256 4f0336d9221e63b6c5be4d6966d728a050a76d7719b8631d19c6964cb3c74435

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