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