Advertisement
JoelSjogren

Untitled

Mar 21st, 2020
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. box% octave
  2. GNU Octave, version 5.2.0
  3. Copyright (C) 2020 John W. Eaton and others.
  4. This is free software; see the source code for copying conditions.
  5. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
  6. FITNESS FOR A PARTICULAR PURPOSE. For details, type 'warranty'.
  7.  
  8. Octave was configured for "x86_64-pc-linux-gnu".
  9.  
  10. Additional information about Octave is available at https://www.octave.org.
  11.  
  12. Please contribute if you find this software useful.
  13. For more information, visit https://www.octave.org/get-involved.html
  14.  
  15. Read https://www.octave.org/bugs.html to learn how to submit bug reports.
  16. For information about changes from previous versions, type 'news'.
  17.  
  18. warning: function ./pathdef.m shadows a core library function
  19. octave:1> A = [0 1; 8 2]
  20. A =
  21.  
  22. 0 1
  23. 8 2
  24.  
  25. octave:2> u = [1 0]; v = [4; 10];
  26. octave:3> u * A^0 * v
  27. ans = 4
  28. octave:4> u * A^1 * v
  29. ans = 10
  30. octave:5> u * A^2 * v
  31. ans = 52
  32. octave:6> u * A^3 * v
  33. ans = 184
  34. octave:7>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement