Help applying the sin function

This section is now closed.
Forum rules
Audacity 1.2.x is now obsolete. Please use the current Audacity 2.1.x version.

The final version of Audacity for Windows 98/ME is the legacy 2.0.0 version.
Locked
amanda_nussbaum
Posts: 1
Joined: Wed May 05, 2010 6:26 pm
Operating System: Please select

Help applying the sin function

Post by amanda_nussbaum » Wed May 05, 2010 6:30 pm

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))

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Help applying the sin function

Post by steve » Wed May 05, 2010 10:16 pm

The sin function requires the number to be a float, not an integer.
Try (setf l (sin 5.0))
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Locked