作者herculus6502 (ビーチャイ?プアチャイ?)
看板Perl
标题Re: [请益] 关於三角反函数
时间Thu Jul 29 20:48:34 2010
请参考
http://perldoc.perl.org/Math/Trig.html
SYNOPSIS
use Math::Trig;
$x = tan(0.9);
$y = acos(3.7);
$z = asin(2.4);
$halfpi = pi/2;
$rad = deg2rad(120);
# Import constants pi2, pip2, pip4 (2*pi, pi/2, pi/4).
use Math::Trig ':pi';
# Import the conversions between cartesian/spherical/cylindrical.
use Math::Trig ':radial';
# Import the great circle formulas.
use Math::Trig ':great_circle';
※ 引述《megadeth893 (加保)》之铭言:
: 最近碰到写有关三角反函数的部份
: 不过发现好像只有sin cos可以用
: 其他好像都没有函数可用
: 更别说反函数
: 不过在这里
: 我想问的是有关cos-1的反余弦函数
: 在perl程式理该如何表示
: 感谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.167.35.71