feat: Gauss Verfahren started
This commit is contained in:
parent
3484742925
commit
493eb3d03c
12
src/gauss/gauss_7_3.py
Normal file
12
src/gauss/gauss_7_3.py
Normal file
@ -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])
|
||||
21
src/gauss/toleranz.py
Normal file
21
src/gauss/toleranz.py
Normal file
@ -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)
|
||||
# %%
|
||||
Loading…
x
Reference in New Issue
Block a user