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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.681-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.681-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.681-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.681-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 58bdfa4b58d3d1a9b9ed60a6956d5c6c8b716f9fcbeeeb17ab6eb56c047cbce0
MD5 7ad22052946003100d6ebbe4ec9a980c
BLAKE2b-256 7381442191999f81db4226398aa14fc9473e8082d9946b6a096d6e8b560797bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.681-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.681-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 647c1cf0973d88f972eea57b4b890252c294e712d3deba46c7e5a0de9714baa8
MD5 c3631b97e16d0f4daf0cd8a3a079b1b4
BLAKE2b-256 26eed2b5a14db0a7003dad88e538c68ab3ffa955793e0bce0f98bc388efc292f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.681-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.681-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e744cf57de21dbe692459d26ee06abaef01fc06e93f9add846ce2520a9ef4393
MD5 e7bb3ed308fb032ee94bfba5ec231310
BLAKE2b-256 0996fed27b21550d8b2244801a4b0a0558402f18572d4adc14e06e13b8ac2bdf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.681-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9aec58b353e148471a34239edd677c2904be4ab9dad6260f08eaae6fa7cce6ee
MD5 d1d3f7530e29e1ede77d9be0ce415d92
BLAKE2b-256 7e425b89c1ae3a2594f1073c43d6f8998aae3b5d95435efd9ec9c484d3377ffd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.681-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 430866fe101601d0b720ee5a91823d6924b908f41f430aa0982927e21b777bd3
MD5 adbfae5a335b24072ebb4efd7fcac9a1
BLAKE2b-256 8c541905ff950f1a0dcf5eb4be46c61dfa2907dc68964155b9c118fb666705d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.681-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.681-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b38240244753882fd9835548de6db6ef7b634960631d4145bc92fa5902de52ec
MD5 62736798e71b01f2cbef14f14365bc76
BLAKE2b-256 adcc125cf470928ec2dcc8bb8cbc0233dcf53f92e61de8d7c3bf045712721952

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.681-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.681-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d59b5d67e46c63efb210b7b28089480c5fe3234651a8f1fa4cbedd520698014d
MD5 088f0b880a66ba14d97e1ef68a1d173e
BLAKE2b-256 d0b88d20e1b4a63de015acb35e83b69f3fc7f5a2d3f7f1a0947bad48b2750e36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.681-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e6a1e83f794673716065d84299a98f47eabb46f589e920dea0b1dfefa8b37b3
MD5 fb17e6d0b99105bbd29add42f426345c
BLAKE2b-256 698c89133404f7c3085d79eb7b2372b3e76b132786f75f4f7a6d8098b71ab2c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.681-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 35f00a05abcaa1935ce250a1452d84f920b36eaa8bf1bea14965e4708921ee1e
MD5 d0a036fd8395698832f04e8fabbd197a
BLAKE2b-256 db8a9d62b89dec664bb1c2d3e5004d849e622abbfc07afe2052340a4cc645fc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.681-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.681-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4db8fc61c29c6b1a3913605edf159db899261625f0deccf0def3687b42eac92b
MD5 0150cbf963b9dbad95faf2d2e23487b3
BLAKE2b-256 6e997b9e5c92a256131fb4f7840f28c097a3b8edf7c7cc872f999152667aba26

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.681-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.681-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 53de5cc0fe02d38f0c2aad6078fded61631555283f0a0c93742dc4aa931abd1f
MD5 47bf7facbfd633096739f59471824522
BLAKE2b-256 23e74315a723456f509275237975878e71f1ba2c77de1e818435edd852c8ade1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.681-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a738f357665449756644d534d4f4ed5c4c74922e935882ec5295662b03b3961
MD5 c95413d1b8c28c5ae106a626eae2e69e
BLAKE2b-256 9318633e867682f7b11c9a8d016a33a70eba406f550866a01323204a83cb563f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.681-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.681-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d3242c4b983af86999d9b083369b1911e4636d511ebeb1d51a7046721be22f02
MD5 eb45717a5696a9d05f2d63c9379c20a5
BLAKE2b-256 f49a673bf85b58a89ac993f958db31c0e0c0d428886cd9e0d5aedca43313579a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.681-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.681-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 28f163e6bb25d3e733207272cd150726dc7377f628d5d082223d6c08bab91b1b
MD5 e51dae15d71be409540a18f9368c100d
BLAKE2b-256 d7d8a726adbb99da016ce702608e2a279e4c985d6cec02943651d23a4c34783c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.681-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.681-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2711c3bbc98a4530f8cf137e1cb746a1e93498570f27ed3fd288f06f0478d410
MD5 46369eabffdb0613134aa02b1570558e
BLAKE2b-256 01eb42a283727b7e990443a6b6f8f9bd1f8431d3c085240c033b09d4b127ca70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.681-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4fa4b4ae9673c1fb0d6e39d2254fe9f576b79fdaa183b7da92f2061e048ab517
MD5 8fc0a3c7f94652edb5c345bd508e20fc
BLAKE2b-256 fefb947c856d257650eefd7682d6c22fb549f3af7405e682c6f77cea87e52242

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.681-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.681-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aebbdb458bc77ae4e7a19c7609cadfef2be2e066b2a8a9fbdae38063fc135294
MD5 a448c19f1c43b133f2396e69a1001020
BLAKE2b-256 1a4d14a7737519cce83ace5aca83fc35a8afd9616c35dc7e6d5b03852dd8ba59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.681-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.681-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0ab018a5e730dda81b880611684e1d8735a4c7f9543364cc0bf98407dfc9bb78
MD5 7b058bbc9ca8470c27de8dee52baff97
BLAKE2b-256 7262b0e3e77fc3e613a84408377e971c0827553638cd4db4cef5873a4c2094dd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.681-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.681-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 04bd62ef14d60d06520033e2ee9f9b440c86954268a6b369b37bad37aae094fc
MD5 4fe540e489fa11d886dccab016cb51ee
BLAKE2b-256 c345ed61a2b24715e2679c44844f224861a480f355dc8c8e8279cfcaa24113b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.681-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0387ea8a8981fbe050d09d522f9879c06b1e9dc735caa645da144c19842376aa
MD5 b86cc67c2e582adb85f29b19f44fc92d
BLAKE2b-256 3ba7126aee49f900ee2f03f7512588ca303fd60d43566826e83ea05c511db157

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