Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. >> A = [20 -10 0 0 0; -10 20 -10 0 0; 0 -10 15 -5 0; 0 0 -5 10 -5; 0 0 0 -5 5]
  2.  
  3. A =
  4.  
  5. 20 -10 0 0 0
  6. -10 20 -10 0 0
  7. 0 -10 15 -5 0
  8. 0 0 -5 10 -5
  9. 0 0 0 -5 5
  10.  
  11. >> c = [-10 -10 -5 -5]
  12.  
  13. c =
  14.  
  15. -10 -10 -5 -5
  16.  
  17. >> d = [20 20 15 10 5]
  18.  
  19. d =
  20.  
  21. 20 20 15 10 5
  22.  
  23. >> e = [-10 -10 -5 -5]
  24.  
  25. e =
  26.  
  27. -10 -10 -5 -5
  28.  
  29. >> LUdec3(c, d, e)
  30.  
  31. ans =
  32.  
  33. -0.5000 -0.6667 -0.6000 -0.7143
  34.  
  35. >>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement