Season’s Greetings

 

Season's Greetings

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(5))/3)
greetings((1+sqrt(5))/13)
greetings(3.14)
greetings(.964)
... and best wishes for the new year.

Published with MATLAB® R2012b

|
  • print

댓글

댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.