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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.597-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.597-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.597-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.597-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cd255da2a2155b02d2a8542c891f5b71fe21aa455d50a71dd514c23f0b3a4f1a
MD5 ca09c5b7cdeafd6f4faebab973a66b95
BLAKE2b-256 54c929b6a15a918679c14fe8c8c95a894d7491149d6f943820fe0c018383106f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.597-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.597-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 97b51e05cde26b0def72c74ad8c35b04177255bce652aebb1a027421f1bf8824
MD5 e06842c7889bd25e38debb4dd7407b59
BLAKE2b-256 08f90e0dae17ad8123ac6477e3427f43eac30f19d4c49b98a54690379ab6f497

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.597-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.597-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d800eb1e534eaf7fdb3d66652c7af0c4871e662caad41389c3dc9c1daea27fde
MD5 4f19c49b4a4680d88fcbdd54dc98d765
BLAKE2b-256 de5cc949041ac3a01a779ac4564805b14a4fd93e9ca79373f141ea5e07aecb7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.597-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c73c975c7c6f2d27bc09f888d9009f4b7cd28a3e8a72b3dff4acc117c7e3e77e
MD5 71aec1902b216105974dafaded983271
BLAKE2b-256 8c34eaa8865f609ad5c92e99e5ac1b20fb74d0ad99811e1774e719bd08be07d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.597-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5021826ea718d468a8bc4245e2742cb3821c7e003668a06669c1a481d02197b2
MD5 028884c8ee5b1e384e23c292975ee8a2
BLAKE2b-256 75c0ca6c39e695b08fb547fae6cef45246d5021e1b4e371cb80cacc61a925e69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.597-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.597-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4df2de37bea3cf935ca302733c2df5bdccea661957dd6d491ff854ecf63cb91e
MD5 4d648218de93cca1666126d693d84ace
BLAKE2b-256 3264cffbe3622b0ff0e2fb3202b1842024b0ab419c991d48ff98ee5154765dcd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.597-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.597-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cb87841cc81f5382e4bd832148ff464600ef91cd2a808672921baa72087a0b65
MD5 fe7abed00e3cda10002639c2793779dc
BLAKE2b-256 748b85d48d9f37d0775b7438b1d6207c02c61dcf46f6a2c282ad7e43638201b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.597-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7b66df0803cafb52ea8e8fa06a17a11c9c920e87b0f6eee465fcabd56182354
MD5 37313d02118a6217b3fcc88eb2dce70d
BLAKE2b-256 c5a9561ac42f178a3e14a52111606b731fe45226895dea1745a3ee8f41ac7ef9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.597-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 01d502ea84eb80565e538ab70650c9ae84eb5fd3f737ecca7c048a523cef278f
MD5 6235a6a358159e16e3542476e86129d8
BLAKE2b-256 e05e55a976c5c1e5231ae83e07dc323533e5911399daad44470d9a7703f21535

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.597-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.597-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b833a94de3ac3c89166339c8b199aa9015186a9d8c94718a9502ea65f3b944f7
MD5 61d108cedaa80429840af158ba0d7753
BLAKE2b-256 e81f121514a23c16c4d023c99683c1148f27f1994a4d770eadff38dd1c1cb47a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.597-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.597-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 301da6ab1a0a24f607cb03630f9ab273e17670f55509049f044f83e77ca08151
MD5 ed2e79dfd32fbd83dcbbe38aee365fcc
BLAKE2b-256 0702536072c906cda815bed53c6ee27400f90289e02f7732f250a7725614b03a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.597-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec9aeb2358f3d28518db385e46dd2d97e8cf62eae5891aa0a21014f35c73af84
MD5 58ad6604c742c8149e59a12c8f02e5b7
BLAKE2b-256 908e45b6a8e7ad6d81af169850098e3d123d90f8f4623487438c2ce04895196b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.597-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.597-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 750cf7c4a5a9ac4346d1b8a042f788e223c7f2159adc984daa21de5f60af58cc
MD5 c137050f7943e3552afd823228cd5518
BLAKE2b-256 a3023cdb8dbc2d32ca2b6753733ef52bfd18629d1f98de2d13330e1464772929

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.597-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.597-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a3e921557c7c59e6cb650116cd748e765798a71e3be48ba283f623bc988e81eb
MD5 fc2fb7b75a849f55ef77adf6d1a39d08
BLAKE2b-256 081d05706dddc6c797fc064f722aeb013500c1ec0ee6d907610fa020e532cb6e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.597-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.597-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eee48ddaa738f2a8a0e81e4e70cc1afb54715310699bdfb627e42f7a791f12d7
MD5 8a74205c63fe898b9496b79073c0e0f5
BLAKE2b-256 acc6ef9ce5e1a8ad17aec2372e83b08a618078fafc49f32449999c3b1ed1aea4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.597-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0bacc4088ba9b3d56cd847a746766e3d910f45f515a8f7aab845637b2e24549d
MD5 f80f6bde22f02242cb81583779ffa13a
BLAKE2b-256 ceb79ff601dc987adffec721d82eab9aee150648d984cf49ae7f0e3d8765ec8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.597-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.597-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2206a43f9d6877078bd7fce0640d7b5f96940634319a843bbfaf348c84ecd0d1
MD5 6e596820260172d8366256d51755048d
BLAKE2b-256 bd22b4e008fe572d03646d2e7014955ae2a5101536547a5ec5813b7d1e7758e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.597-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.597-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ec8c0ed07cd892001f912a6d4702ccad871b983f355aca525f099be379595f25
MD5 72c6125807325b91a501614d3f82d58f
BLAKE2b-256 261ea930a26ee5946b4e38fd9847f8075bb0866fd2bb543bfc967754ec94f7a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.597-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.597-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e5d4e525e77b281895c7abee517bca4d967dfc307cce36cc52e94dd066c2b948
MD5 9c51c4fce9d934fd5a8854c7a630ee0b
BLAKE2b-256 3d443801f0f20b7d4919559db5f32a487faefe06cab32f4ffc87224e9987ceb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.597-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe4c20cab9495a0f9f52f2953a35d4611daa2e9996bbf220c0f09759c7f56a27
MD5 df8344fec32f0dc9d63b46d60d1fdd6c
BLAKE2b-256 732f7af4d1b339cfb689d4b50bad1f13f23761ac8a8f9e4c53f9f08fd077743c

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