Top
Back: central2nd
Forward: midpoint
FastBack: fpadim_lib
FastForward: integralbasis_lib
Up: findiff_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.15.2.10 trapezoid

Procedure from library findiff.lib (see findiff_lib).

Usage:
trapezoid(U1,U2,var); U1, U2 are the names of occuring derivatives, var is a variable in the basering;

Return:
type vector; gives a predefined approximation of the trapezoid-approximation as often used in literature;

Note:
see also forward,laxfrT,setinitials,scheme;

Example:
 
LIB "findiff.lib";
list D="Uxx","Ux","Utt","Ut","U";
list P="lambda";
list V="t","x";
setinitials(V,D,P);
trapezoid(Uxx,Ux,x);
==> [(1/2*dx)*x+(1/2*dx),-x+1]
trapezoid(Ux,U,x);
==> [0,(1/2*dx)*x+(1/2*dx),0,0,-x+1]


Top Back: central2nd Forward: midpoint FastBack: fpadim_lib FastForward: integralbasis_lib Up: findiff_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-2, Oct 2010, generated by texi2html.