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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.229-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.229-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.229-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.229-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.229-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 524be316c279cbc921073a9426dd6376063f52b7e43ce69d86f6b269410d878a
MD5 8b6c1c65e7598b21c809f660b1a3e552
BLAKE2b-256 7f56801aea74b3c9c7a9313a628e33ffe4c47c8dcf0a97cf2d94a98c93886b3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.229-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.229-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8236bbf76f0a969b27db756e75f394ffa498abbe18424fe52bc12d0d59a361a3
MD5 d83ae1d287c96361597cb29529a2a8ad
BLAKE2b-256 caf9e463a680d1241f45f6416a95b09b2923f3ec8347d481f429bff03098ce42

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.229-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.229-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f32029434533e2102c93b6f3c39593952e077d90557aa7b9ef736ed732df5013
MD5 afbc47f59274989e3c804f1331003550
BLAKE2b-256 50c787a8f23e293923a829c456bb6f897100481ddba50caddc3e8b7796aa2e69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.229-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 092d5d00eee175086dfd2d9727228a21d53218a87c4ff48fd3ec61579e9e6ba7
MD5 6fc04731782a49514f76d999f9b49ac2
BLAKE2b-256 bc02fa928a8f51a6458fbe48ea77f11b7e86c205725b55ffe5f428449e0236d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.229-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a83a71ba1e08f05eb2509af742dcbe719864c815c9686991c15e8dda875cf781
MD5 2c48534678ddca207ce1720ebebdc7a3
BLAKE2b-256 63e6d0c885ba170e84eab4560eef1351ec9c80534c0ad1a178ee3b7e31fef675

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.229-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.229-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 19e8a6840f2106b5a0de0c0bb16b61e862b1d675ff8a8405a8c1db8bd765a29c
MD5 d8193cc504b1bcb4fdb45a58152469f9
BLAKE2b-256 c1cd4e3ef2592798c62fcbea846cddd499d7cab443b9a3b797feb7b1fafb9582

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.229-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.229-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 67ddf2ef171293404ccb35703ff4d3d6c95fdd774b49c9dfe8c4fe0351ae7446
MD5 61b68c99f50442329e6c4315c7667aec
BLAKE2b-256 66aed13ad179e5e9695fceeb700c10d6e66678ce9d147b5dabbbeee2300584d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.229-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2e288317c0a24fa5c97254910f2a3d7cc3fa894c2180f809b2203dc2c41bd3c
MD5 aec53ab580d2ecc72e20b234411c4dfd
BLAKE2b-256 fe4dff62a12d07a3f3b867963e1b23a8c61f0d4352f2f0a9224ff9f2704fce2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.229-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9374bb2605b42160f32872672c140748985b757e7663c0e7342bc3286f36d22c
MD5 c3aa7950ca961a77a64bedd49770ba8f
BLAKE2b-256 7dad7297ae0fa427f2f081ddc3287a63908f79a2d5cc0e214b6c7ab407588e92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.229-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.229-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 56de8cabb14741c9f36999dcc5dfd075bd16a0d3b585a08716a7476bd4ae91f6
MD5 de3be824f8b9ce9df20a846d30d4cf9e
BLAKE2b-256 80e0e1b21cd9518426b4b19d5d09b49c9b7f856a8ea97eaa2537ce5824e2a2a0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.229-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.229-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 749cbd70b0f424f1be140ff84f93972b5367d9ea8fcc57233cd02fbc07e9d928
MD5 2a3c0afd9eed438a23e10892e3d7b7aa
BLAKE2b-256 a467888d3894126d38a0e82ceba78f68e13cd641cdfa375388c013618b5a00b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.229-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2889bd2397cc7c26b216453548a8dd76426059a4a324d27da7f72996f935a049
MD5 062c0ac8cf93046f31ee62db368139e5
BLAKE2b-256 f23450db739acf4ccf388a0215734837fda4c3897617c23379bb22cc3ed517cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.229-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.229-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dde5c7089d47c930df342483c61d7260091a693f7a9832f1ad032b4e633122d0
MD5 e1fcfa721b5743138bfaa5024148f4d2
BLAKE2b-256 2f3a42988ded994c733c246729504a339d669dd79fa9fbecd1701001cdfc7159

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.229-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.229-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0b254d03615b7b804b13d56ca9eb4d8447c5a2070494e2a0669ca624fac8001e
MD5 d622b813b0a5dd2ceb46a7559fd37ce0
BLAKE2b-256 7e54b81b9d843cf1334aa5db6a731d2064c329ffe19618aa29207d6e7f4ff04e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.229-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.229-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 735b9de7ff0b6a630744287365daa418c3e4da11d178b828b8f3b1dec2af51df
MD5 9258cbcfa8ab3f4423c42c62605ad6e9
BLAKE2b-256 7aef54863bf5fc820c35763b70e232893e9c3a2cc4e0d0c0f4b323a9e3d17203

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.229-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95ed3036e479a2cff2af65b3743da6db0adc97a3dd0b9ac6ca78eeb2969b6cc7
MD5 824bbb90047c1e05218ac9b80363d152
BLAKE2b-256 51e535d65dd20a97b621dc75d3f9e01e5ff3b1240717ea022ec1e82f2d1a1a1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.229-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.229-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 08eb0cc3025c8d74d2f52e11cfcd1fcc2817abf20d34a0e481e4549f66d2695a
MD5 a0f2642426e3c3c240ba8753262e8e6d
BLAKE2b-256 4be38e20215aa638ec088ac3f0c401be525ac6abb94f087104cec249e982481d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.229-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.229-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 da7f3816bee419e79685aec1b70b3f98d8fc9055ad87540b334ca95e048436a1
MD5 3da231a9bd07221fcb92dea8d39c8a16
BLAKE2b-256 a43b4ccde4574b865fba212dbb2c89e5edac79e8b4e832fe9a436b148ee782d0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.229-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.229-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76cacbbc8b7c39e73fb09a9bb5e9f87856818f44d8129535b54b0705464f6fdc
MD5 7df2caf3880aef766ceede52e3f74530
BLAKE2b-256 1a7d4d3778fcb08ab2796d23c9abe148d8d17f5bde5782040284c2a506993d91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.229-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e66c1229e2305e9b2203c24925baf4c4240525a4e4bcf42f9e5f310e44a145e4
MD5 80cd3129cabc020746c6b405c56b352d
BLAKE2b-256 76879e7da1d65301dcca521c63a6cba959c8c6a1d746608a6a66523bb03fc640

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