Processing math: 100%
Step 3: Algebraic version of the initial conditions
- Need to replace the derivative in the initial condition
ut(x,0)=0 by a finite difference approximation
- The differences for utt and uxx have second-order accuracy
- Use a centered difference for ut(x,0)
[D2tu]ni=0,n=0⇒un−1i=un+1i,i=0,…,Nx
The other initial condition u(x,0)=I(x) can be computed by
u0i=I(xi),i=0,…,Nx