Problems 7
  1. Theory:

    1. With gnuplot/pyxplot how do you plot different sets of data (with different styles and titles) from the same data-file?
      Hints:
      1. manual → commands → plot → data → index;
      2. in gnuplot interactive mode: help index;
      3. in pyxplot interactive mode: help data index;
    2. Suppose an array is declared as
      double a[] = {1,2,3};
      • What is the type and the value of a ?
      • What is the type and the value of *a ?
      • What is the type and the value of a+1 ?
      • What is the type and the value of *(a+1) ?
      • What is the type and the value of *(1+a) ?
      • What is the type and the value of 1[a] ?
      • What is the type and the value of a[1] ?
    3. Given double x=5; what is the type and the value of the expression *(&x) ?
  2. Practice: Quantum particle in a box or Standing wave in a string.