Re: [請益] 關於三角反函數
請參考 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
討論串 (同標題文章)
Perl 近期熱門文章
PTT數位生活區 即時熱門文章