diff --git a/src/gauss/gauss_7_3.py b/src/gauss/gauss_7_3.py new file mode 100644 index 0000000..c99f22b --- /dev/null +++ b/src/gauss/gauss_7_3.py @@ -0,0 +1,12 @@ +# %% +import numpy as np + +R = 1.0 * np.array( + [ + [2, 3, 1], + [1, -2, -1], + [4, 1, -3], + ] +) + +L = 1.0 * np.array([8, 3, 6]) diff --git a/src/gauss/toleranz.py b/src/gauss/toleranz.py new file mode 100644 index 0000000..4330c38 --- /dev/null +++ b/src/gauss/toleranz.py @@ -0,0 +1,21 @@ +#%% +# Python initialisieren +import numpy as np + +# Parameter +G=1.*np.array([ + [2,3,1,8], + [1,-2,-1,-3], + [4,1,-3,6]]) + +# Berechnung +m = np.max(G.shape) +n = np.linalg.norm(G) +e = np.finfo(np.float64).eps +tol = m * n * e + +print(m) +print(n) +print(e) +print(tol) +# %%