setfun_lap_1d
PURPOSE
SETFUN_LAP_1D Sets functions and coefficients for lap_1d, precolap_1d
SYNOPSIS
function [uex,uexx,ff,nu,gam]=setfun_lap_1d
DESCRIPTION
CROSS-REFERENCE INFORMATION
This function calls:
This function is called by:
SOURCE CODE
0001 function [uex,uexx,ff,nu,gam]=setfun_lap_1d
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 syms x
0020 nu=1;gam=0;
0021 Uex=cos((1+x)*pi*3).*sin((0.5+x)*pi/5)+sin(pi/10);
0022 Uexx=diff(Uex,x);
0023 Ff=(gam*(Uex)-diff(nu*(Uexx)));
0024
0025
0026 uex=vectorize(char(Uex));
0027 uexx=vectorize(char(Uexx));
0028 ff=vectorize(char(Ff));
0029
0030 uex=@(x)[eval(uex)];
0031 uexx=@(x)[eval(uexx)];
0032 ff=@(x)[eval(ff)];
0033
Generated on Fri 21-Sep-2007 10:07:00 by m2html © 2003