-- 

On Wed, 24 Nov 2004, Bastian Angerstein wrote:
> 
> in an excel sheet I use:
> =SIN((2*PI()/96)*1)
> =SIN((2*PI()/96)*2) etc...
> 
> my question is how to get this function in perl?
> 
> The Results are values (in the example max. 96) on the Y-Axes of the
> Sinuswave.
> 
> BTW:
> I want to replace the 96 (measuringpoints) and the multiplication value with
> variables, too.


You might want to try something like this

#!/usr/bin/perl

use strict;
use constant PI    => 4 * atan2(1, 1);

my $something = sin((2*PI/96)*1);

print "$something\n";

__END__
and adapt with variables as you want.


Owen


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to