back

Solution to exercise 2.1

Run Octave:

  octave -q

Crate variables a and b by assigning them a value:

  a = 0.7
  b = 1.0

Enter the expression. Mind operators priorities and be careful with the braces:

  sin(a)^(sin(b)+1)

Again assign values to variables a and b.
Use up-arrow key to bring back the expression and evaluate it.