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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.44-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.44-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.44-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.44-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.44-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.44-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.44-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5a94323a067191ade4a747af8861c8eba8304dd7b1b1f1158f4f51e4016f763d
MD5 775a252e5bbb37ace26c2ff3bfa74b54
BLAKE2b-256 522b7148bc299658f80d2220673d31fd38b1658fc1faa5b273c13389120259ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.44-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.44-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 53465408798c5801ce146a1fbb53b09ca58837c470216840c6560faaba2b5db2
MD5 565eaba14f88e3b8fd6f564d5315285a
BLAKE2b-256 2a22cef0195988c256168530234b05e16f7be3d657a56b14afda47c9f1d06b5d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.44-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.44-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 00926afe04bb068dbe0e90d37ed011f0b0a65f380f6888aa093d3be3dd10218c
MD5 c484d909784d2ea45f96a561b4d2a639
BLAKE2b-256 e1c340c7436bd60f05b63d2b7cf3c1089b226c8c7d9995883f68494c8fddd62a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.44-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cde841e94fe646458a05bbfa86846e5b35a6ac550f3d4a797c29332aff531c70
MD5 7c24470bd0e989b88d59d264a9bc3bac
BLAKE2b-256 fbed89d970cdf2bf154c38d62bfeee0cc44eab2a6ed81918410afd83d842476f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.44-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.44-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bce18cd96429526465d603d399ff50bb227cf7ce8fcf66f4bf1c0911b4872047
MD5 8df4bd06521b65fabfaec5983ebb2a0a
BLAKE2b-256 9a8b95630e91ecba27147633cf49add47e95178aa64a583169c9420ed57786af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.44-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.44-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 107bbd9cb48968c02b2df39acaa44018df0df2182541f971a3c5325343983269
MD5 0af9d540073f358e98dde71e244982be
BLAKE2b-256 207623554001c862d4f5547b8831628e7e228d9449b800466b6daeb35ca5bc94

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.44-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.44-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc7c5978c8b79af30d78e05a2955f2768cf4d52e8cc8ee882da14e383e27776f
MD5 28eed5767c9c6d74a8a9f24df5d35ee1
BLAKE2b-256 126cf408671a7356ef2a57b1a6f653759559d6318d10bf43695a14df2667d7af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.44-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37653d3e22ca73e7c61b9e0890e58513e9e2830c296f4666fa50fedb372c9e4e
MD5 fee74fb59c510838b6556d742f1aa29f
BLAKE2b-256 d0605a46b013078e4d00d8592c9be22344e665e16088cc0251c2a162ad6b9e90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.44-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.44-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 66245e9bb9c4a27994e23142e7c5ebca46d0dacc8782d22bc708e7cdc2aac00c
MD5 0b40135132445fd3a5f69fcbea158903
BLAKE2b-256 44a1912359c352c3956de2ed6044e7f8574c95571414ef4f52b1d366da75a4e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.44-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.44-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b450e2402938e41a9bc93907ec5601ce19991c035fdb187696cbaaa905164f6b
MD5 183231e33f2e3b55f157734efb8b6bae
BLAKE2b-256 6fa2750d504cd421ec26f65106580a9d402cd56ac4646bb5d96ecb06b190117c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.44-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.44-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8ba4150bf8a55a9b079b9d599d24d9663a1b967aa1974b639ef38cd260561202
MD5 511e021b0035f8ced8bfdab0b56a4458
BLAKE2b-256 4bf3ea3e318beee45ac7c7a1e35a3b6c687f10b49715d995a74cfacd7977a22f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.44-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a1e30c8f0a942288b68c3ea589978506ddad6c0268c8873603e25628c6a3fa17
MD5 cc1e1275c4700edd287393d7d50cc460
BLAKE2b-256 7eef73a5659b4b1e5e1fe49d743153e41d6bd91f1e56baa82ebcfca115f8264f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.44-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.44-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 36bc62136f68570635a84488dae80e5c492957da979492262b4e4e40ef63f233
MD5 049ddec52371c5a23333857bde398a95
BLAKE2b-256 db28c79126ab4cd61f08c205ef223861fae672351f856d8f228ab861bd0cd5e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.44-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.44-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a145fdfe465438ff2f06c110779071f6a92c3ddb134d24bd69a69a8b43dffd44
MD5 1b7ec5762f08305604a2f3eb91c80ae6
BLAKE2b-256 88def617d7186600a8a288d000c32dcfe693011ae943dc69fd105b266168b0eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.44-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.44-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 432bdb39177cff8229862a1589ef7f440f0702f87fa918a78dc88d6613d9fb62
MD5 3c185ce3f1530e62f15845fcd2c7ea95
BLAKE2b-256 57a9d9a3be56927fa194c9e833065dc24b28f5665afcf9d03a4af106ca4a021a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.44-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76ce6bb74918420646159c12555cc0bd0ef74b8596303ceade5ec26518cbf7d4
MD5 c0c1b5536f144c76269a68784ffa0da2
BLAKE2b-256 1b26dd2c62500865f0be7d1082eb370996791f5a000c87e77f2b2d21c731455c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.44-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.44-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 864f899113ad780889e7a8c7b08b3a2731b47a7cc12dca891a25d9304b6d0918
MD5 41480c7e07513e7fa61d3e200bb727d1
BLAKE2b-256 a3b684df53c8db22b85e5e75240d905474338259322b170ed94e042afd41c3d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.44-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.44-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6da63f7c50801cd96d2a88ef0c0e6e4c48a0871b2ca0e5e830698b88c33815ca
MD5 1141fed0ed55fcbfd121f6082769cf88
BLAKE2b-256 aff8c3be50e1d4bc393a830aa9f87216fe1b8c1d254d7cf2de4c732ec0e7a717

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.44-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.44-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 19de936d7cfc15513cbf4f898bf4d7980bad64800d90d501123cad5995266383
MD5 32ed56324236965e58422762dacd8464
BLAKE2b-256 5b9625370e726b8fd11cf9149d1e79263cc75b19ca916f48beaf900f9e9f4ccd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.44-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38386b943451ecb4a4354da9fc97ec21dc4bcbf50a7a168e0d7c184ee651bb09
MD5 6d51fef78923394cfad48bc5a783d5e3
BLAKE2b-256 edf642076565b300613752b24db109331f2e3060af7015d09cf527ba7d0ac2c7

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