flower

PURPOSE ^

FLOWER Flower-shaped function

SYNOPSIS ^

function fx = flower(x, y)

DESCRIPTION ^

FLOWER Flower-shaped function
   Flower-shaped function found in the following example from scipy docs:
   https://scipython.com/book/chapter-8-scipy/examples/two-dimensional-interpolation-with-scipyinterpolategriddata/

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function fx = flower(x, y)
0002 %FLOWER Flower-shaped function
0003 %   Flower-shaped function found in the following example from scipy docs:
0004 %   https://scipython.com/book/chapter-8-scipy/examples/two-dimensional-interpolation-with-scipyinterpolategriddata/
0005 %
0006     s = hypot(x, y);
0007     phi = atan2(y, x);
0008     tau = s + s.*(1-s)./5 .* sin(6.*phi);
0009     fx = 5.*(1-tau) + tau;
0010 end
0011

Generated on Thu 10-Dec-2020 17:34:27 by m2html © 2005