|
D.15.2.1 visualize
Procedure from library findiff.lib (see findiff_lib).
- Usage:
- visualize(f); f of type poly.
- Return:
- type string; translates the polynomial form of a finite difference scheme into an indexed one as often seen in literature
Example:
| LIB "findiff.lib";
list D="Ux","Ut","U";
list P="a";
list V="t","x";
setinitials(V,D,P);
scheme(u(Ut)+a*u(Ux),trapezoid(Ux,U,x),backward(Ut,U,t));
==> (-dx)*x+(-dx)
visualize(_);
==> (-dx)*U(0,1)+(-dx)*U(0,0)
|
|