neophyte has asked for the wisdom of the Perl Monks concerning the following question:
use Math::Trig; use diagnostics; my $a = 3; # user input my $r1 = 3.05; # radius 1 of elliptical tube my $r2 = 3.95; # radius 2 of elliptical tube my $w2 = 82.6; # angle 2 my $w_beta1 = asin($a / (2 * $r1)); my $b = $r1 * ( cos($w_beta1) - (cos($w2 / 2) ) + $r2 * cos($w2 / 2); print $b;
neophyte Niederrhein.pm
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: trigonometric functions give an uncaught user exception
by ChOas (Curate) on May 30, 2001 at 14:46 UTC | |
by neophyte (Curate) on May 30, 2001 at 14:55 UTC | |
Re: trigonometric functions give an uncaught user exception
by gollem (Acolyte) on May 30, 2001 at 14:50 UTC | |
Re: trigonometric functions give an uncaught user exception
by DrSax (Sexton) on May 30, 2001 at 16:42 UTC |