ERLEDIGT
NEIN
NEIN
ANTWORTEN
0
0
ZUGRIFFE
1589
1589
EMPFEHLEN
-
29.02.12 22:30 #1Hallo,
hier ein kleines Beispiel zur Lösung eines linearen Gleichungssystems in R (http://www.r-project.org/)
Hier die Excel Variante des Beispiels:
http://www.tutorials.de/office-anwen...x-formeln.html
Gleichungssystem:
x0 x1 x2 b
-1000 40 30 | -2690
50 -2000 60 | -7550
60 90 -3000 | -14460
R-Code:
Code :1 2 3 4 5 6 7 8 9 10 11 12
A <- matrix(c( -1000, 40, 30, 50, -2000, 60, 60, 90, -3000), nrow=3, ncol=3,byrow=T) b <- c(-2690,-7550,-14460) y <- solve(A,b) A b y
Ausgabe:
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
> A <- matrix(c( -1000, 40, 30, + 50, -2000, 60, + 60, 90, -3000), nrow=3, ncol=3,byrow=T) > > b <- c(-2690,-7550,-14460) > > y <- solve(A,b) > > A [,1] [,2] [,3] [1,] -1000 40 30 [2,] 50 -2000 60 [3,] 60 90 -3000 > b [1] -2690 -7550 -14460 > > y [1] 3 4 5 >
Gruß TomJava rocks! http://www.jugsaar.de
How to become a good Java Programmer?
Does IT in Java and .Net
The only valid measurement of code quality: WTFs / minute
Blog
Xing
Twitter
Ähnliche Themen
-
» Excel Kleines Beispiel zur Lösung eines Gleichungssystems mit OLS und Matrix Formeln
Von Thomas Darimont im Forum Office-AnwendungenAntworten: 0Letzter Beitrag: 29.02.12, 22:19 -
Kleines Beispiel zum Thema Java 3D
Von Thomas Darimont im Forum JavaAntworten: 1Letzter Beitrag: 13.11.08, 19:35 -
Wer programmiert mir kleines VB-Project ?
Von spirotech im Forum Visual Basic 6.0Antworten: 2Letzter Beitrag: 03.07.08, 09:14 -
Kleines Beispiel zur JExcel API
Von Thomas Darimont im Forum JavaAntworten: 3Letzter Beitrag: 11.09.07, 09:42 -
Kleines Beispiel zu RMI over IIOP
Von Thomas Darimont im Forum JavaAntworten: 0Letzter Beitrag: 24.05.05, 19:10





Zitieren
Login