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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.733-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.733-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.733-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.733-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 87ac41e6a1dee2e5b07e3a7d28d17eaf4aeb37f2633947e7f3f7c619959aff77
MD5 82bdf81f47401bf39c1c5b97117d9052
BLAKE2b-256 e9a54ae6086578f163efc7842f511377435f89af36c631a12b8689ab9373c0bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.733-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.733-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9e5c1c16d801cc67ca2436fa3afe789b731e27616b5cf75a6745c950e946a75b
MD5 3396de280d9813be6e0bff474143c561
BLAKE2b-256 f95f93dcfc4600dd3bea3ce9baf2d2b0710f8acf631f2b5ceb2d2abc0ee9aade

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.733-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.733-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a26bbc505dc94cb3a39dd70eca93303a8825705ab1b99c28d6b7c8d768e66cf6
MD5 765e5ed64481cf9fff5ae7e40c56c2e2
BLAKE2b-256 f8783e46f7e90af66982b5f37db2a74e1006340177674ee9a6cc9f10adf40689

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.733-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee0f5cdbf1fe341ec5cd9e8de248d32bc9ec59a1554e401d793ef2587578918d
MD5 ba2633d572c167b1d3b6f7ee0da4f215
BLAKE2b-256 4a5befb25f263d6507879c170db2524822f1addb8e3bb00671e735a0f68b49fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.733-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 40a87d3bb6ddcd52239d686b5713f40762c54cec72a22016652c42f068a69ab5
MD5 d201ef545688c7957d4c5a152dc9548d
BLAKE2b-256 54f7d087d46e68ef8ec0403090494b6dab768784a5d700944d8bcc5260e281ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.733-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.733-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 419f88b526d23fef2b816d83aca47e9d981d47365a0c7c1745bfc2f65284f616
MD5 6b68ec792d3d453a64cdf907e88407bc
BLAKE2b-256 c6716ac908f8e1b89647a7c3a90f1ea65171c310b53c5fc613d201fc8fdfccdc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.733-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.733-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1cbc9959cb6ad2203c0041002a748cd3e8d4b5acfd898eb9c5651a6f42ad7ee3
MD5 25ad53324ca9ddc5244ce1a1e4c4d048
BLAKE2b-256 a6977c9cf07ac83514753fe136a29e4228738a85729cfcb5692808f1cf517b59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.733-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78a8135c97307f147bfc3c49bd804390b37d2500ea3dc8c3464a95e57913f121
MD5 37c910b26da2e92ba8033eb50699369c
BLAKE2b-256 58fb4d0df9b0d7d4919ca5d0713c9377f1e43d71d5a49f78ed31fc454eae5ce6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.733-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f892f8322f3a46fef9a4f5cee0f0d3b6ab6644f108bcc9d8ebd6421308905253
MD5 54bce55a5d5d1d975d60918a54b6ff56
BLAKE2b-256 898b2b6262482a8c3b21d8d556d6924b5156164fb36d6fdfba7256d2ba87ee04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.733-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.733-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9970960984e7d4117f660465d25ab30fa421026259369c807099205491a63a08
MD5 707c516c5c4175418620bd0707c51914
BLAKE2b-256 5ab6efabcff0ce5e70a4e76f67af3ea8e65cedbc151b2456c79b0c1d75caf328

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.733-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.733-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 44d8bf47aa8870fbd6c5f4fb5bec3c4132451af5908a49f06c3b380519eb6da1
MD5 87b78137e3ce3de4a9f2aafcc42e9734
BLAKE2b-256 290523cba243c8ffe3486aefbbba001cebec56b89cd6da56337722e10a63d9b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.733-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d057d0973d6e189b01ce9a0211d77942ecd640cad588938a215b5a57f2a987e4
MD5 c1ae3214e048947d9b6b168226e66dba
BLAKE2b-256 9ec28cac6ff144320df2dae648988acbd739164f1b3f34b0c29b5457b27a39c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.733-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.733-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5341ac86382a13a240dc8df384ae2268c9977cc88544aa57a10b06a87bacf3c4
MD5 43dbb1eed23064ca59f1c3d06651e3a5
BLAKE2b-256 4c041a9ef6499831999dd0efee8e939226fa9f02d9bf79473814d326dba97c8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.733-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.733-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ba80eff75e3ec437302de1dbbedf85dfa628296411298f51ff7a53cf6f6a8195
MD5 1243fae4be92078f692f887ce97f6547
BLAKE2b-256 585090d75962c3446f091063bddcb7399090be67fc94a017ef2572fe11f3eb09

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.733-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.733-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b987177d678bc4e531dbed490fa38f6391837bc699d3c3bae84dff0fb3eaa62c
MD5 ee381a5d2f0590ee1bb3d48eabb11f83
BLAKE2b-256 df72e4ba4e8185cc43164cf659f8e07e8e2c7867b679cc8bd2026c07b76532b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.733-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0fe4dc5395156ad5c3ac02187888bf5364c2c86e2516f636d3191a1fa5f759a
MD5 ddcdb078b3eaf57a35c73d1a533ca92a
BLAKE2b-256 858c1292396336bf60fa732bc98b83844c7f7e57ae5f7a7b536aeede8746d656

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.733-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.733-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 72174d13670c43859a294fb243b3992b620da7c487c86b3fc7b12bdeb79f6ac4
MD5 d554f53385ebe87acdff25d68ab2480f
BLAKE2b-256 42cd0a88463ed20cb5f9ff94bffda1dc3f60d67408c3d8d747108a92bcd8af81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.733-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.733-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9a149454f62f6c2bd11fa6c17aa2e658279d80206689afc868acf8c59ccce684
MD5 c3fd3f3fed4af4fb919e9bb1947781d5
BLAKE2b-256 de3c25ee5d8fd073a9a68c19c8e2f26cecfa952725667a1f384322254f24fa31

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.733-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.733-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c341baa4f21c63cbaf38298d6cb51d14195c4a05d6377b1c8275d2b56450158e
MD5 6516b7cec3fffd1620ee1575b5584c2a
BLAKE2b-256 dac50a8824b0b18d0cc636e2b1870ecb74d9421a6d6dbd6446379869b8dcef0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.733-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 edb90ecf6f1ee015f0b74399b3eaf5d93fd5d9f5cb5d09a55419642652621c1f
MD5 82c8bb8a18017a254f6d1df757b7356e
BLAKE2b-256 42017c28f56e6eab884b0731d809b128d04f07228c71462068e6e56b72283dc2

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