Mercurial > hg > octave-lyh
comparison scripts/plot/peaks.m @ 9211:f0c3d3fc4903
Simplify Texinfo documentation in .m scripts by removing redundant @iftex calls
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Sun, 17 May 2009 14:39:39 -0700 |
parents | dbd0c77e575e |
children | 16f53d29049f |
comparison
equal
deleted
inserted
replaced
9210:a7a9eecc07b5 | 9211:f0c3d3fc4903 |
---|---|
23 ## @deftypefnx {Function File} {@var{z} =} peaks (@dots{}) | 23 ## @deftypefnx {Function File} {@var{z} =} peaks (@dots{}) |
24 ## @deftypefnx {Function File} {[@var{x}, @var{y}, @var{z}] =} peaks (@dots{}) | 24 ## @deftypefnx {Function File} {[@var{x}, @var{y}, @var{z}] =} peaks (@dots{}) |
25 ## Generate a function with lots of local maxima and minima. The function | 25 ## Generate a function with lots of local maxima and minima. The function |
26 ## has the form | 26 ## has the form |
27 ## | 27 ## |
28 ## @iftex | |
29 ## @tex | 28 ## @tex |
30 ## $f(x,y) = 3 (1 - x) ^ 2 e ^ {\left(-x^2 - (y+1)^2\right)} - 10 \left({x \over 5} - x^3 - y^5)\right) - {1 \over 3} e^{\left(-(x+1)^2 - y^2\right)}$ | 29 ## $f(x,y) = 3 (1 - x) ^ 2 e ^ {\left(-x^2 - (y+1)^2\right)} - 10 \left({x \over 5} - x^3 - y^5)\right) - {1 \over 3} e^{\left(-(x+1)^2 - y^2\right)}$ |
31 ## @end tex | 30 ## @end tex |
32 ## @end iftex | |
33 ## @ifnottex | 31 ## @ifnottex |
34 ## @verbatim | 32 ## @verbatim |
35 ## f(x,y) = 3*(1-x)^2*exp(-x^2 - (y+1)^2) ... | 33 ## f(x,y) = 3*(1-x)^2*exp(-x^2 - (y+1)^2) ... |
36 ## - 10*(x/5 - x^3 - y^5)*exp(-x^2-y^2) ... | 34 ## - 10*(x/5 - x^3 - y^5)*exp(-x^2-y^2) ... |
37 ## - 1/3*exp(-(x+1)^2 - y^2) | 35 ## - 1/3*exp(-(x+1)^2 - y^2) |