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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.890-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.890-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.890-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.890-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 98d12dc4678631815cb294ddea8a8657ffa947e3242d74e967d7e63e89c19ec8
MD5 a870dad87082a89bb45767095dd75b4c
BLAKE2b-256 15a908a9901b277a7cae869b0dc3c9d4304b637f4286f94dc159d40d8de45f62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.890-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.890-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6aa05ead90cf0631b90ec3f94d22685ed42e7233df11da5694cc556b7de87305
MD5 f2498889561d715f605ffef7f148bd1a
BLAKE2b-256 8c1108ea2229170cf1c6a5b94c0b6e45ac279ea75523c8871922b108d997cbaf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.890-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.890-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 378204b256d741fbe718ee44f1c33cf5d3db35d35c3cd640f321600a182fdb05
MD5 001b2abbd9a2a99e394aa068f6d150fc
BLAKE2b-256 c98497f04729e0294b0c68642e898ee097190725a6c991669cff347772b64111

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.890-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65fa078289a4db3d4f290f4be4590d1333d679b440986471c1529e0c1479bee7
MD5 a1250a0655042f8758a3501e13454f41
BLAKE2b-256 7e1e556d129f85ee9ac273e7db59932b3fdee0d658703bce913937f4f83bb5a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.890-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c93166b49d052ba85cf9543a8ce73b30581d88b70a06bd6cb1af57d7ae22c631
MD5 ea30416f1a74cd8d152d9f8a752e5e11
BLAKE2b-256 f135a876e6aa678ebfd654c8b9dc1188449e34b85ea795b4e4bbeaae027354ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.890-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.890-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dea3ff2cf6dd7d6bfc40dc2ebe5e721d5e54293dc935a9301a7621b6eaf7af65
MD5 a81509cfa9bda4238a0d712514d71b76
BLAKE2b-256 420c7b95e7ad5808961553ab8103b50b96c001c8373a8da6e3174855c637284c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.890-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.890-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dd132742ff0e009f2b1ff680afb841e805a2d7b54da1e043eb8e8e8882baa6ce
MD5 57918a0d4c72351fa7c6a5b41036b49c
BLAKE2b-256 701c706ff5c4397c0f94fd6c79222b51749cb51d50a20a9928912da8f27e0c88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.890-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a01590e543894ba69bb8ce5e46e1dd387d9503da27932c755369dbb3fd3b261e
MD5 ec42bd76b45b48110cb988fa905cea57
BLAKE2b-256 0fa047d00bbce91c0feb8ab82f5dc7842e15f53417f7b26c9216df99e0821131

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.890-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 651d04ce7d16f87156828ae50a8277e3e73d90f009feae50336be1304bf86582
MD5 ef254229144be86945f5433071ad2209
BLAKE2b-256 e63ed33fb81055cc1000e85260d59e77930ed71756e5059231ac8642279fca97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.890-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.890-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 998a348b8c449ad1aeee26049dc725332fa318c732d7737b0edce92b62f919b3
MD5 f8a7824e48386d4e774a8af758a93455
BLAKE2b-256 43a300e45f270f32ea7dfef1e3b0854b6d75538574c7fb4a6f2f12caf0b4ecaa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.890-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.890-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 310d581ee8f85211201c4670aa40149c860a40590edb8ef3545462219f280a10
MD5 34defd15eb55bc55a565436118ad0471
BLAKE2b-256 88b45d1081da941a1bbd22413c879e9a8984e350837b11573accc5c5617afb72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.890-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a699cda4cfa05680c1d910fbb4f1bca904468574ecda8bb091c11da017889be
MD5 80ef18932197dbe427707bd85036a3fd
BLAKE2b-256 862a59b8b165ad36a9e1f99eebf2d23cafd4447494643c740d9470ee9c686845

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.890-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.890-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8969a841c7477ea4e6fed084ceb88e276ab7ada60f01a8f46b1b2da1bc085160
MD5 273420ff98e76d75f3637f334bf6f45b
BLAKE2b-256 ed2956fd9993aefc73926ede8b3b3cd01b2593665d41a0095cd33b0c1eb33f58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.890-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.890-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a9ff39e24f10dcc76b0ffe2d3fa5b06ce7cfba33ebe74181faf6392b862024cc
MD5 2b1b459e03913e2875293ae33ad1c34e
BLAKE2b-256 d37b5a5feb7eda7a150199caf1f4212fc954178b8639cd3c89a22bcc50fa6931

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.890-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.890-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ed1832d06e92a0dcf7911181f05d331aad2b31a1dfa64aa4c83386c0d64fbbf7
MD5 6bd9144dbe50c97dad7f98e9e8f05d8a
BLAKE2b-256 e41e9cb8d2f4a87dfa86192ddd37cae145d7dc3bc3d540c2894eaaf073f184d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.890-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3692f85a8866b65fae79c252bb9887039e79a06809dc999fa2dcbdc1995c9a50
MD5 0a81d79da3cbe5ac034e99efd462a262
BLAKE2b-256 293aab41b94e0ba8f83e61f74776965c7b5bc2571cfad6d668c73cfcc68c8be1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.890-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.890-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3fc6e520e54025a4cd868e6948afe7ff8d3e8aa60572cba5eff7e840666b4549
MD5 5c76d8cf71355fcc62b9e0bcc68a2701
BLAKE2b-256 568980cc84d93df8595f47e6d922696b80f27f0a2b1913b6404fba9f7d550cfc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.890-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.890-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 562411835193f0a809333a9beb6e326cbe3acb738049080047707b3614d0e5dc
MD5 74351065988bf0912c0b449110970505
BLAKE2b-256 9104a8d3a5698d95b4bb806a42c61d6bcb68df3bfb9aca94523f45c20bcaf6ab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.890-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.890-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d5c96a1ffe86569b95cc45972fe1cd0c9e2efa77e07c9e4fb463918ba8c1da71
MD5 92959feed938ef50c611c5305310410f
BLAKE2b-256 20c20216a34d7ef4c9c11ffff3e8b3ec2c8c0348806d8d3c280b3baa853efc26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.890-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0bbaf57b6d3b5eb0a085da401cf3a26a9df76823badd04dd72e86b3a8ed8b3f
MD5 e73acb396ac6a0a5ba86aba0c2bedddc
BLAKE2b-256 e5cfb4c6f5902d5b5c3fef8010734de78e280b672dc6882475d9219c858dd48a

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