Hint for problem 2
- Pick 9 points on your curve and find their coordinates
(x1,y1), ... ,
(x9,y9)
(in the order as they are on the
curve, first point is starting point, last point is end point of curve)
- For the given data
| ti | 1 | 2 | ... | 8 | 9 |
| xi | x1 |
x2 | ... | x8 |
x9 |
use the subroutines pchez and pchev to obtain at
the values tei=1.0,1.1,...,8.9,9.0 the interpolated
values xe1, ... , xe81 :
| tei | 1.0 | 1.1 | ... | 8.9 | 9.0 |
| xei | xe1 |
xe2 | ... | xe80 |
xe81 |
- For the given data
| ti | 1 | 2 | ... | 8 | 9 |
| yi | y1 |
y2 | ... | y8 |
y9 |
use the subroutines pchez and pchev to obtain at
the values tei=1.0,1.1,...,8.9,9.0 the interpolated
values ye1, ... , ye81 :
| tei | 1.0 | 1.1 | ... | 8.9 | 9.0 |
| yei | ye1 |
ye2 | ... | ye80 |
ye81 |
- Write a file mydata which contains one xei and
one xei value per line:
xe1 ye1
.
.
.
xe81 ye81
- Use the Gnuplot command
plot "mydata" with lines
to obtain a plot.
Tobias von Petersdorff ,
tvp@math.umd.edu
Last modified: Mon Apr 14 13:05:03 EDT 1997