Season’s Greetings, 2014 2

Posted by Cleve Moler,

Season's Greetings, 2014

help greetings
%   greetings  Seasonal holiday fractal.
%   greetings(phi) generates a seasonal holiday fractal that depends
%   upon the parameter phi.  The default value of phi is the golden ratio.
%   What happens for other values of phi?  Try both simple fractions
%   and floating point approximations to irrational values.
which greetings
https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/moler/ncm/greetings.m
phi = (1+sqrt(5))/2
greetings(phi)
greetings((1+sqrt(17))/2)
greetings((1+sqrt(13))/5)
greetings(22/7)
greetings(.469)
... and best wishes for the new year.

Get the MATLAB code Published with MATLAB® R2014b

11 views (last 30 days)  | |

Comments

To leave a comment, please click here to sign in to your MathWorks Account or create a new one.