


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/


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