pde for Bratu, text expression syntax, just as a template
0001 function [c,a,f,b]=bratuft(p,u,lam) 0002 % pde for Bratu, text expression syntax, just as a template 0003 lam=mat2str(lam); c=1; a=0; f=char(['-10*(u-' lam '*exp(u))']); b=0; 0004 [c,a,f]=pdetxpd(p.points,p.tria,u,c,a,f); % evaluate on triangles