Exercises

Supply the commands to perform the following tasks

  1. Assign 2 to the variable z
    Use % to display z + 2
    Use % to display z + 12
    Use % to display z + 24
    Use % to display z + 14
    Use % to assign z*(z+14) to x

              z := 2
              % + 2
              % + 10
              % + 12
              % - 10
              x := z * %
            

    Comment: Notice the sloppiness of using % for these tasks; it would be a lot easier to simply type z+2, z+12, etc.

  2. Bring up the help topic for the "with" command

            ? with
            
  3. In the same worksheet as exercise 1:
    Assign the Pythagorean Theorem (the sum of x squared and y squared equals z squared) to the variable form
    Clear the values of x and z
    Assign the Pythagorean Theorem (the sum of x squared and y squared equals z squared) to the variable form

    x^2 + y^2 = z^2

    Comment: Notice that the first form has numerical values for x and z squared but the second form is the familiar Theorem that can be used to sub values or manipulated to solve of values of x, y or z.

  4. Use commands to... Assign 10 to x without displaying the evaluated expression
    Assign x divided by Pi to x
    Find the decimal value (approximation) of x

                x := 10:
                x := x/Pi
                evalf(x)