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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.42-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.42-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.42-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.42-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.42-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ecdee43c91c971b4b67d52f6b8fa75b620d8d75fa2441ac923279ae2ff8f67a4
MD5 0b7296a1b5e0317f5d11aa0f9ea3ca18
BLAKE2b-256 93bc4410e7f29d37040e5307dc862675d1051d88a2c78f97a052ae2bae76c6d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.42-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.42-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b6fad6d804378e62af76376a597a2e0a6fe8183627b65ff74029a66e97657ea2
MD5 c1d7dff99dbe0c11fcd9718f0092f320
BLAKE2b-256 e56b22b7c8af0729b92f2d46892028916dcbccddefe166b44365dd403716ff11

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.42-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.42-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a76c09c407f1773aac02bdab5ea9d8e84c17f6744e9d3b03a8d90c8abc59c910
MD5 675cd1c1a71f8daaccbfc57b4c6d13b5
BLAKE2b-256 7e623ccdb20e38021bbf0d54ace85ad229f58887e38d10a6486e98f997de1389

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.42-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8a0e3b65e68b19fb6b66e282231cd70617d02458e9570264bdc8c724f7d20e5
MD5 1c3c66d3df62102a74c7183efbcea28c
BLAKE2b-256 91a86e65add243f97ede9968f937e2b1dbad88a808ce77096c6fe68dc0d2c87e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.42-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.42-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9fbceaa40877e9416c1c658834130943291c24d234def45227d204fcb35c2f68
MD5 b400dbff0a572484654259b29866cc26
BLAKE2b-256 fd52099d02c9e3e3ffad739f2dcf80571ab1a5677e7c8bff682b6ce39c4c0931

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.42-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.42-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6f6e4cb0910135f1a9c4a0c5b36ff8d664ed9188e27178b8c38bf7354553862a
MD5 b424e6a4ac6be2214a2c337bf3fa91ae
BLAKE2b-256 503d6bd4fbcd0c762a3e8231eccfed81d91b2d808e3ec0e640bf0a4778f586f3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.42-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.42-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c6f8ddad5ad0eff9e3a590d14e04290fdbb96d854aa91b1f6ea12b311a9f55e9
MD5 83fa80043cfb38d55d1bafc12104b0d5
BLAKE2b-256 48826d6138fdf4d631ec8a382e66fa2bf0abd7370bdf89a4f76006df8020c819

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.42-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ec39e0e1aee7f1b8f928b9df1b12d86d96deff3a93006800c81f657532b1452
MD5 6a352272e8cc648ca20e768212ac2e29
BLAKE2b-256 0430a18f55b15acceb020afe353dce43a8014773eb3dbedda2950af8a41bba88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.42-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.42-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f685864ba42ec41edec84d6d22957848b8b0e5e7f0a724d332366ea5de58b793
MD5 7419249ab2b302f6fbb50982b8d2727f
BLAKE2b-256 f95664888d15afb0f18d48b9605f7d998e2c857d95cb2d3a958934dc8fcb898c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.42-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.42-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8a98d8218a0349cda1b5a02a28e133b3ef89fe8a71079df7a0bf3fc5dfebf2c1
MD5 363f7299b5b4999a06ac190b62783420
BLAKE2b-256 f367672991909e1bfa56c9dcf987e9dc6783c521d1eec747fa90b254ee56049d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.42-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.42-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c7864795a06750031b2d3f17e131822abc3f290b304912c0d42bdd5a1cb22a56
MD5 e3a19cfaca0425c89c272628369f5307
BLAKE2b-256 f2fe37aeac70b432aecdf4ecc3ac1668e41d6a186bbad169b5d2fffbfcff49da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.42-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f63a9b6c7535678b8ab44eccc52bb9c4838f85fbf5e7ef7d0b1900741fd1b98
MD5 8344ac7a33904bc50f41e80329e2e23f
BLAKE2b-256 7a0342bb4ae76fdcc859e3f10b13cee54e86c28504ce474d0e133ad13e3a6eaf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.42-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.42-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 44792a72e506bd061ca9cdff7e71661f3423ae650d6384f53ee663124fcd8ade
MD5 5d3b71c662e8538a9a7c63f7a9d5dce2
BLAKE2b-256 a4b01a5ab0606e15c6403372a7fa221725f90639fe9025350dc1bf32b735248d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.42-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.42-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 449d7b6c6d0c256143dfddd8ebb0a35f7f802a29c5321dbd03c30b9b1ac7fa59
MD5 f11626df65a65a5713a7379595d92f3b
BLAKE2b-256 3b654b379cfa91a613f3d00060cb0ea00add8fd11eb7b25c14de99e5d6f7fa11

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.42-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.42-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84ce9902ba082483a834714ea982c59ba5da4230fc05b8ee2158ce436c4f2ae2
MD5 288b66d3b18644fe035eecbd1e11c951
BLAKE2b-256 8be35aec2308a16d0e813c4f2071f2e6594a4f7540ececd52b024e9674eec2e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.42-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2685162ac70c4997521734f68268c301f63e91997da051060061de0044f46bc0
MD5 fcb35c583a91bd1139a02dfed9064b11
BLAKE2b-256 2fd67c3127d0f348b7b83251474044a197e417f8adda2523e23df5d583b3f302

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.42-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.42-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3567381c1dbcc8f439501da2dbb89f9d6b1c679d01e4d394b07379c601eb5398
MD5 f40ffac71a282c777813f2eec0d22b98
BLAKE2b-256 056e546f8c14f4e059984da1738be43f6d82956f0be6d4d44c70937026860a2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.42-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.42-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f9b031a04e6f0254d475ea9f18174ecc4739668eed7eb62858446b2d6a39d1e7
MD5 7a1c28422da091923cca41b536459ec9
BLAKE2b-256 b1c3669a886d23ae2dd393f39246a6de67ba60d9f70e8d744a2b14632e266330

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.42-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.42-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 761aaf0c22e11bad1153f4492eea9c8ca864738fdbfa64310f1f22b35a056686
MD5 73e93d2e30bf75c6875635bf1866fe5c
BLAKE2b-256 935d1a0d6f00433153fdb976141767f6fe13e7711258156bdf9a206c034b2df1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.42-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89c28bc49deb446170b0bd1b65157bc675c65f8f7e1fb57b3d94305494dfa1dd
MD5 e9217b893032e35244bfcc7e65924d34
BLAKE2b-256 1a23893811449e764b117c4f391e4f122c78fa049501cbb97b47eea68cbf093d

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