開発環境
- OS X Lion - Apple(OS)
- TextWrangler(Text Editor) (BBEditの機能制限無料版、light版)
- Script言語:Perl
『初めてのPerl 第6版』(Randal L. Schwartz, Tom Phoenix, brian d foy 共著、近藤 嘉雪 訳、オライリー・ジャパン、2012年、ISBN978-4-87311-567-2) の1章(Perl入門)、1.5(練習問題)2を解いてみる。
2.
入出力結果(Terminal)
$ perldoc -u -f atan2 | cat =over 8 =item atan2 Y,X X<atan2> X<arctangent> X<tan> X<tangent> Returns the arctangent of Y/X in the range -PI to PI. For the tangent operation, you may use the C<Math::Trig::tan> function, or use the familiar relation: sub tan { sin($_[0]) / cos($_[0]) } The return value for C<atan2(0,0)> is implementation-defined; consult your atan2(3) manpage for more information. =back $
0 コメント:
コメントを投稿