From adf037310d1b1d01f44b5586189611f8efaefb60 Mon Sep 17 00:00:00 2001 From: freudenreichju Date: Sun, 11 Oct 2026 18:04:24 +0200 Subject: [PATCH] Added usage of tabulate --- compute.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compute.py b/compute.py index ba6cb19..aa05e1d 100644 --- a/compute.py +++ b/compute.py @@ -8,8 +8,9 @@ This module provides utilities for basic matrix arithmetic: All functions validate inputs and raise ``ValueError`` where appropriate. Type hints use the built‑in ``list`` and ``int | float`` union. """ - from __future__ import annotations + +from tabulate import tabulate import math # Public type alias for a matrix of numeric values. @@ -162,3 +163,5 @@ if __name__ == "__main__": vec = [[1], [0]] print("Rotation matrix for 45°:", rot) print("Rotated vec:", matmul(rot, vec)) + + print(tabulate(rot_2D(1.0)))