Page 1 of 1

Help applying the sin function

Posted: Wed May 05, 2010 6:30 pm
by amanda_nussbaum
I am working on a aproject and am having some serious trouble applying the sin function in my program. I'm not really sure why, but the program seems to not be recgonizing the sin function and I would really apprecieate any suggestions anyone may have. Thanks!

Here is a copy of my program:

;nyquist plug-in

;version 2

;type process

;name "Sin Help"

;action "Applying sin function..."


(setf a 8.75)
(setf c 34400)
(setf b 0.000763)



(setf l (sin 5))

Re: Help applying the sin function

Posted: Wed May 05, 2010 10:16 pm
by steve
The sin function requires the number to be a float, not an integer.
Try (setf l (sin 5.0))