Problem in Maple |
21.11.2009, 00:25 | Ripper1986 | Auf diesen Beitrag antworten » |
Problem in Maple hier mein code: > restart; > with(LinearAlgebra); vectornorm := proc (a::Vector) local j, n, vnorm; vnorm := 0; n := Dimension(a); for j from 1 to n do if vnorm < abs(a[j]) then vnorm := abs(a[j]) end if; end do; evalf(vnorm); end proc; BanachFix := proc (A::Matrix, b::Vector) local n, j, l, x, y; n := Dimension(b); x := Vector(n); y := MatrixVectorMultiply(A, x); y := y+b; l := x-y; if 1/1000000 <= vectornorm(l) then x := y; y := MatrixVectorMultiply(A, x); y := y+b; l := x-y; end if; evalf(y); end proc; Wenn ich jetzt eine Matrix und passenden vektor eingebe kommt folgender Fehler: > BanachFix(A, b); Error, (in rtable/Product) invalid input: LinearAlgebra:-LA_Main:-Multiply expects its 1st argument, MV1, to be of type {Matrix, Vector, scalar}, but received evalf Wenn ich jetzt jedoch alles nacheinander mache was ich in BanachFix geschrieben habe funktioniert es... keine ahnung...!! wäre super wenn mir jemand helfen könnte! LG |
|
Verwandte Themen
Die Beliebtesten » |
|
Die Größten » |
Die Neuesten » |
|