home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l455 / 5.ddi / SPLINES.DI$ / FRANKE.M < prev    next >
Encoding:
Text File  |  1993-03-11  |  631 b   |  18 lines

  1. function values = franke(x,y)
  2. %FRANKE    Franke's test function.
  3. %
  4. %        values = franke(x,y)
  5. %
  6. % returns the values  f(x,y)  of Franke's test function; cf. 
  7. % Richard Franke, A critical comparison of some methods for interpolation of
  8. % scattered data, Naval Postgraduate School Tech.Rep. NPS-53-79-003, 
  9. % March 1979.
  10.  
  11. % C. de Boor: May 15, 1991
  12. % Copyright (c) 1990-92 by Carl de Boor and The MathWorks, Inc.
  13.  
  14. values = .75*exp(-((9*x-2).^2 + (9*y-2).^2)/4) + ...
  15.          .75*exp(-((9*x+1).^2)/49 - (9*y+1)/10) + ...
  16.          .5*exp(-((9*x-7).^2 + (9*y-3).^2)/4) - ...
  17.          .2*exp(-(9*x-4).^2 - (9*y-7).^2);
  18.