Chapter 2: Interacting with Octave: Variables and Operators
Working with arrays
1 |
e) |
f) |
i) |
2 |
a) 11 |
b) 3 |
c) 4 9 14 19 24 |
d) 1 2 3 4 5 |
e) 1 2 3 |
f) 5 10 15 20 | |
g) 1 2 3 6 7 8 11 12 13 |
h) 1 3 5 11 13 15 21 23 25 |
i) 16 17 18 19 20 21 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.000 1.000 4.667 |
b) 2.0000 1.0000 0.18182 |
c) Non-conformant arguments |
d) -1.000 1.0000 4.667 | ||
e) 3.0000 2.5000 4.2222 |