back

Solution to exercise 2.1.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.

  • en/teaching/subjects/it/labs/sol_2_1_1.txt
  • Last modified: 2017/10/02 15:54
  • (external edit)