Appendix A. Pop Quiz Answers
Chapter 2: Interacting with Octave: Variables and Operators
Working with arrays
1 |
e) |
f) |
i) |
2 |
a) 11 |
b) 3 |
c) 49141924 |
d) 1 2 3 4 5 |
e) 1 2 3 |
f) 5101520 | |
g) 1 2 36 7 811 12 13 |
h) 1 3 511 13 1521 23 25 |
i) 16 17 18 19 2021 22 23 24 25 |
Understanding arrays
a) 3 3 |
b) 3 |
c) 3 |
d) 1 |
e) 0 |
f) 3 |
g) 3 |
Understanding simple operations
a) |
b) |
d) |
e) |
g) |
Understanding precedence rules
a) -1.0001.000 4.667 |
b) 2.00001.00000.18182 |
c) Non-conformant arguments |
d) -1.000 1.0000 4.667 | ||
e) 3.0000 2.5000 4.2222 |
Get GNU Octave now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.