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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.4.37-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.37-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.4.37-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.37-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.4.37-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.37-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.4.37-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.37-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.4.37-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.37-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.37-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.37-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.37-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 331dc9633a68b400a2e046134482e89a2abb04b3162626f5ed1863910881ec47
MD5 bdd19d81108b39cd6172184d506f2a86
BLAKE2b-256 60e3ec334f738186d01dda6517935480adea5df731b5e2096641b0634ecd0b62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.37-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.37-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8a62da27d08fa546226dadf16cca0fe3f41f37f7e9b6a28c0a3427bcda262fd8
MD5 712d1259914b0c7b87f348b729bcd652
BLAKE2b-256 afa29fcb22a96bdb8840804ca47bfd4d246f8ed45378d1ea61e8d0f186a9b12e

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.37-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.37-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e908e21370ba8aa14544b50890bba019fb6db65612fb04f1348b13dfb2dcf582
MD5 7068374f5350eed18ddd54951bc87c5b
BLAKE2b-256 647ca15925313a5cc2314d5dd43ac1c38768d03f35482375880386fbf6e82333

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.37-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b93fff4903194495fa9a4ae742acaf9746f318c6d8e400fcf8673d06d65f8d2e
MD5 b9c886c276f7b38b3333f1cc90b084cf
BLAKE2b-256 dc0da0ff055e9a252b43a2ec3954c9dfffb5936c8ccaca8366f459aa6b816ab9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.37-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.37-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2fbc2a9bb8df8a530afc0f8b571782c13dd11e595fa2210f51e0c2134c8e7f41
MD5 32151516c2f938aa07a6ed6a4be07a33
BLAKE2b-256 dac61bd72cea4ff059049473b85a4b42ee10c9892f20a24637aefa931a41108f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.37-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.37-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9eb363da4fa6e667f345f362f78cfac9a5aed47a4a1354952fbaadf152b4fad6
MD5 d4d8f27151d6bd008fe06d11e2063128
BLAKE2b-256 8c938ca9afbff4c8756c0c15fd5cb196157aabacfde8b55af1a51d7c7cc96d74

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.37-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.37-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 91e88cbd4cd58358f37e8341b0c4d177a13f80a1f6ddb6f36aa1eb6033aee50b
MD5 0e48e9ee922b074fbdfd60b40953a8e6
BLAKE2b-256 4dd19e92a5471b2cf404c36a00090087b1ff88afbdb3054c75cdf0b2e63c092f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.37-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c002e8178a382ca09bcf61f25ec0f326a5fde342eb8a0eee128d736911a4c17
MD5 b225f91b3b6bd4da4737d185a1f1bed2
BLAKE2b-256 a075534469256b9e2052c93ec39d42a77432e3684397b4cb90372e42172168a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.37-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.37-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 314c3ba27565d995dd7a3a052ced62f6df34005ae6dd76a85e329a70fad49e02
MD5 a7c2ef28557cc46c8fb155b8c4656c37
BLAKE2b-256 7e1de18e334e90f27e0666bb0175d7022309d9b48e5c2fdcf885bec32f6f9922

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.37-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.37-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0cc80eeed0ffa850eb1ff7c2a6386efc4dfa23825f83437b0b4dcad2ba443b28
MD5 14eab6fe78d24d6ca75d50b95839be0c
BLAKE2b-256 eeb0523a9a721a44eb62ee87a0e1dc2a8123a97b253a21e2d936fa9ac4d2475d

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.37-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.37-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dda43fc0c4893186cad31df210e6e4ec617b86cec2f0bbeedbe1b92e05f8d61b
MD5 b20683caa3f5d3f9acf85ee73eed2fe6
BLAKE2b-256 b31a2fe6a737a3e64ff4cb2f928f8a627339752933e04e599e4f9b9cb48fc64c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.37-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 926439e016ac384ee5e691f36602bdbaf237b950f5f7cadb9ec4ca39ec56fbd5
MD5 6293afa0bc84cf6461aed47207af86c6
BLAKE2b-256 7a72a0f6e31561d4451737c528e0d9f33afe2e859de7e6f3f21b9cfd262d2152

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.37-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.37-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3e97664dc92cb22e617d08bd6fd0f1a2be46ff4cf67470f06c4efac9db4a42d6
MD5 10122d9b43d4935e9497b08cce4aec73
BLAKE2b-256 62ebea9a7cc8bb4cc95a35f8af0af16eb8f616ec506ecd5f88c28fb685b1de91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.37-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.37-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 52663978a666221d818118e6e7860c7cd4c956678b632294db021d8758ff4a62
MD5 8664b17194cb2067fc18b1e1481acd1d
BLAKE2b-256 fce0b1058a112f06f1f70f7c9df39f9deb1f0fbac8490ccc28664dfbc19b8ad5

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.37-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.37-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df650e701190eb1c58bf10070c9b5eace39bbb58f43c133cfd638c58d8d1fcba
MD5 2b2805ed901b8d17678b6de74160ae41
BLAKE2b-256 93728fb276d67d01b5f0ba8cb7f6e3450678195babf13829cf14a31bf485a5cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.37-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85314754a354b62272bd9c7b9fc4e4fa8335967439b02e0bdbd660ed8d4aac95
MD5 2541387af11232f5df5f77180db7bfac
BLAKE2b-256 dcedad3f4936c27c29022b41c9473833913065897a7926adba39baeb6699fa4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.37-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.37-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6f5db121a80a78c4e970131c0e6071155fbd37a790a65ec46dcf2516a03c14c8
MD5 5ed9e571fdfe378c5a00fa5643f0b234
BLAKE2b-256 bdccae926b9478bfdb8c69c4c2ab39cb3fc0a213704562090dfa74940f36c9e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.37-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.37-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c27f75aa3bd2b81805e5931682bded9572526d7662908f70e9f08136909b0532
MD5 95551b4a1499ae1457c8d128f49a6272
BLAKE2b-256 db4b6e6b624a91e7c1d1d5cdb55e74aaaf316f4b302b2e115199a82a9380f5be

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.37-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.37-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 202d44aeaf208617e694f5db65d7a940ed68eda8a90179153a3da93397c6949b
MD5 99978100092c2a6a05bcb228a6cf1ed6
BLAKE2b-256 fe146bb677ba70b036fea1942112ab1bc1835c034c60bad6e0477813b7ee2383

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.37-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53999bfe90af2f7e1535d7c3b7cd8f3414ee4410707581065bb932669827929f
MD5 0b4af507a3274bca0357a95a9ecf9827
BLAKE2b-256 90820fc64d4ea9dbb3e3cd122e812425e92c9a8b5056f94fd4d3d2b0426737e2

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