ホーム ] PC技術/システム技術 ] VB.NETプログラミング ] なるほどナレッジ ] インフォメーション ]

上へ
公称精度/定数
関係演算
加減算
乗除算
数学関数-1
数学関数-2
数学関数-3
数学関数-4
予測関数

MegaPrecisionクラス

数学関数-3

最終更新日:2006/12/13 追加

●概要

 三角関数。

●角度変換

Radian(ByRef A As MegaLong) As MegaLong

 A 度をラジアンに変換する。

Degree(ByRef A As MegaLong) As MegaLong

 A ラジアンを度に変換する。

●三角関数

 ラジアンで角度を渡す。角度は、2π の剰余が採用される。関数名に Basic と付加されたものは、5倍角公式による漸化式を用いないもので、試験向きのものである。

 正弦、余弦のEx版 は、漸化段数 m を指定できるもの。0 ≦ m ≦ 20。

○正弦

Sin(ByRef A As MegaLong) As MegaLong
SinBasic(ByRef A As MegaLong) As MegaLong   (試験向き)
SinEx(ByRef A As MegaLong, ByVal m As Integer) As MegaLong   (試験向き)

 Sin(A) を返す。級数展開で求める。

○余弦

Cos(ByRef A As MegaLong) As MegaLong
CosBasic(ByRef A As MegaLong) As MegaLong   (試験向き)
CosEx(ByRef A As MegaLong, ByVal m As Integer) As MegaLong   (試験向き)

 Cos(A) を返す。級数展開で求める。

○正接

Tan(ByRef A As MegaLong) As MegaLong

 Tan(A) を返す。Sin(A)から算出される。

●逆三角関数

○逆正弦

ASin(ByRef A As MegaLong) As MegaLong
ASinDirect(ByRef A As MegaLong) As MegaLong  (試験向き)
ASinBasic(ByRef A As MegaLong) As MegaLong  (試験向き)
ASinFull(ByRef A As MegaLong) As MegaLong  (試験向き)

  ASin(A) をラジアンで返す。角度の定義域は、0 〜 π/2、3π/4 〜 2π 。級数展開で求める。

 ASin         :差分法(加法定理法)のみを適用した高速版。
 ASinDirect:変数をそのまま級数に適用したもの。
 ASinBasic :余角法を適用したもの。
 ASinFull    :余角と差分法を適用した高速版。

○逆余弦

ACos(ByRef A As MegaLong) As MegaLong

 ACos(A) をラジアンで返す。角度の定義域は、0 〜 π。ASin から求めている。

○逆正接

ATan(ByRef A As MegaLong) As MegaLong
ATanDirect(ByRef A As MegaLong) As MegaLong  (試験向き)
ATanBasic(ByRef A As MegaLong) As MegaLong  (試験向き)
ATanFull(ByRef A As MegaLong) As MegaLong  (試験向き)

 ATan(A) を返す。級数展開で求める。

  ATan         :差分法(加法定理法)のみ適用した高速版
  ATanDirect :|A| > 1 で余角法のみ適用
  ATanBasic  :余角(|A| ≧ 2.4)と既知との差(0.4 < |A| < 2.4)を適用
  ATanFull    : 余角と既知との差に差分法を適用。高速版