In [ ]:
load 'trig'
In [ ]:
cos 1 NB. Cosine of radian arguments
In [ ]:
cos 1 2 3.14
In [ ]:
cosd 0 30 45 60 NB. Cosine of degree arguments
In [ ]:
(sind 0 30 45 60) ; (cosd 0 30 45 60)
In [ ]:
circle=: cosd ; sind
In [ ]:
circle 0 30 45 60
In [ ]:
load 'plot'
In [ ]:
plot circle 10 * 0 1 2 3 4 5 6 7 8 9 10 11 12
In [ ]:
i. 13 NB. First 13 non-negative integers
In [ ]:
plot circle i. 270
In [ ]:
spiral=: cosd ; sind ; %:
In [ ]:
spiral 0 10 20 30
In [ ]:
plot spiral i. 1000
In [ ]:
decay=: ^@(%&_500)
In [ ]:
desin=: decay * sind
In [ ]:
decos=: decay * cosd
In [ ]:
despi=: decos ; desin ; %:
In [ ]:
plot despi i. 1000
In [ ]: