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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.616-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.616-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.616-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.616-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d312e4728950edcec87394158a117a85b7acc42070ac44dea73d821c3c9d4807
MD5 ca6043ec0905e5dafce141bc8aa5442b
BLAKE2b-256 20c3bc0dfd5c27e357c14e6d9650520b7f8a072ba839e1d739e2b43101647c4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.616-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.616-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 104ec97f856bc5eb8b7c49afb4bfde82973ff5d31913b4115612db5cbcc66434
MD5 bc60a33b0e0ea6530239f31340607743
BLAKE2b-256 e1ec7305c58d641ea0a3921f4dde62e6affa0f8c647532745b1f6085f8e0f43b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.616-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.616-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6507cad9de35576ae5d399b4e3a87afd648d30c5d564ddfc7a0654bb4f7b9105
MD5 39750060774e56959c3c8b228124063b
BLAKE2b-256 c94d40242f887a0ae66e577dafd47ace4ebd1e6c2b551b252aae3cd203b742b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.616-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4505777e01f296109073a893937b669e55a65d84b213b1b28e1ee1c99f5814f0
MD5 9f7dc26f83ccececd2fca04776ab8a9e
BLAKE2b-256 d6e31047002cb4881a618baf407bbe039779af7356755376fe52185bc3c46150

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.616-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0189af5a7dc16d9055885b101bb7a1f823b27e82d2b0eea66b401ca838fc9c03
MD5 654e01ca114a7c25ee081b4850e439fb
BLAKE2b-256 76120854233404e40af6fe3578e084c0cfec51a29baa0304233bbc86f8ef66ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.616-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.616-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0483d6739ad11ad835270e543ccb0a9217a0760ab68816938f2340033c18a382
MD5 87f4b8efb749d5654327b3ae12ddcff7
BLAKE2b-256 b89f804cb8fda6e076e768f328e9576bda2347b0c680767af1c814b9e4c28efe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.616-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.616-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b81931066b5ea0a4a91a007cb404bf487717c7a8e2d0462354a0392f2f26c9b
MD5 0604b6d196bb1065f5ec9d20d19372c2
BLAKE2b-256 670bdb8d2f9f6812c59ba476a013baa3c166b04979ab5384d1e856e8dd990b20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.616-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca210e4a4f0e3dae49af1977fb62be3f236a90c5d330adcf4629ad4f02320030
MD5 96ba41ee09d7c27df70553ebb231d764
BLAKE2b-256 8bb71781f01c3160d198bd55b0b00049e8d9e4c480d570a01f6dc02a498181ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.616-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6db771a512987e42fc4a93cc340200d430a626c63a4ea5adfd6880c7c3b965e8
MD5 52ceef0e9b6640274fc18c69654d3b79
BLAKE2b-256 33d97fbb29580a5706c171f3f065401ac3c8dde6ce584411d6411232682a57e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.616-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.616-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7afd3077db68d59a1dcce309e1f0a1c8f6e1a4d6d471721eb76d5954c89c3d75
MD5 5be40077f81713cc146f9c2b3db24366
BLAKE2b-256 267ecaa85394fddbc077b995d02da84736c8be31dc5ca9035f6ab311fedea967

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.616-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.616-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 26f693d43062f6b41fff31d07d56741f59f20ff7fab75b2604008fe795c6966e
MD5 ef2a6e59e1c693fd7ffd7f3ff40bbc73
BLAKE2b-256 ddfe0fc05378814b05e6c09b4ba37732d277b33f0ed482ea120d6a5c6606d2a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.616-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4db67a8200d3e042d062cd1280b1e37d7ceb34dbc50ecdd1b1ae70a49f4511e3
MD5 01580ae6491433ab4b0755c0aa90656f
BLAKE2b-256 9c4ae4553694b300b8e1f12b80b4780efd7d470516523f295650b1ca717547f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.616-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.616-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 112daae331e36111c21f296589136868fe7708de755ddaec9e328898e5677501
MD5 c59836d4c6b452aa04720a5c4f357f60
BLAKE2b-256 b8fb0709b22fa48a2388c02eeb4c4ad1891b405dea84c6c1c6a0c75c88435a6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.616-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.616-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8110cced3dc6f71a3d5c598af693f32c85eebd8ad80ab548cdb21977b5a7764f
MD5 9251f9edb2750e5944065a44e4c7729c
BLAKE2b-256 4be8c31fbcc161d171ffc18764aea7e09e29921abe0cab723c8159dbfb8d989b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.616-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.616-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3c4b4dc894fd091bb38667a272df21aeaaa40d62136964d5baed41cee787bc4d
MD5 767f7b8480f54808079645969e4c7a97
BLAKE2b-256 5787d5f69c3aad71c1e1c77fe0b63218a08291959e13ca758bfdfb409672d59d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.616-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc560adb9644fb7ee6e678352da90ce3b8c9fedcddf27efd2a1e8a79fedf3f02
MD5 b7618890e2a14e5c371425a5f7f96344
BLAKE2b-256 e7ff178d5d8b0246ded974ed77b5f5fd06c57886e10adacdd76c10ad219014b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.616-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.616-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0db1472c856073e24a47ee2a5a08adaa894d821c1e2ef9d417abc6ee94aa9fda
MD5 2a8a0c694b7acd4bf230e9d6f6af23e5
BLAKE2b-256 7c845b4c726fddadcaa485c234102eebc566740cd0a9119361d6f6ca09121e39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.616-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.616-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2353ba72c962fa1e9f9a2ba9078e99054f168a1ca05888da8af62e2e95b2e9d3
MD5 30d082bd6a3252d16d63c29ed98b1105
BLAKE2b-256 0ee30efca76017015ab76ab1022aa4a6e5a5f0d348d7ad5344fb904c4183abc3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.616-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.616-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 70214a10a00730f5e3e3792e78dbe308d326eb0f1b0f4054c52c370fbb435eb3
MD5 265327a999cebd64e386a8de969e05e7
BLAKE2b-256 e2d9521b8efb30b84a64cfbd36657cee3be386f78c52910a9ea9e225c3e6ac35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.616-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 192ece216599832f08bf77cbda98d08d2ac2b854a0de5ef8cc551425bf03199c
MD5 3692a3577292b0a648329be120183eed
BLAKE2b-256 0a8a66e415144ba2827341b524af68271603ba17424381e0e8c3e9e58539f584

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