Infinity 組込みオブジェクトこの章では組込み変数領域が初めから備えている
Infinity 組込みオブジェクトを定義する。
Infinity は Infinity オブジェクトに対応する
Type のインスタンスである。
Infinity のメンバprototypeNumber.prototype
を準プロトタイプとするオブジェクト。name"Infinity"positiveInfinityInfinity オブジェクト。negativeInfinityInfinity オブジェクト。complexInfinityInfinity オブジェクト。Infinity の内部メンバ$prototypeType.prototypeInfinity の関数としての呼出しInfinity は関数として呼出し可能であり、関数として呼出されると
新しい UnsupportedOperationError
のインスタンスを投げる。
Infinity オブジェクトのプロパティInfinity オブジェクトは以下のプロパティを持つ。ただし、sign プロパティ以外のプロパティについては、初期の
Infinity.prototype やその準プロトタイプのプロパティが
スクリプトの実行によって変更された場合は、この限りではない。
signInteger オブジェクトInteger オブジェクトNaN
オブジェクトInfinity オブジェクトの表す値が正の無限大、
負の無限大、複素無限大であることをそれぞれ示す。$get$abs メソッドMath$abs メソッド$get$abs2 メソッドMath$abs2 メソッド@{ @inf }Math$conj メソッド$get$asinh メソッドMath$asinh メソッドMath$floor メソッドMath$ceil メソッド@{ @this }Math$re メソッド$get$sinh メソッドMath$sinh メソッド@{ @inf * @this.sign }Math$im メソッド@{ 0 * @this.sign }$get$arg メソッドMath$arg メソッド@{ Math.atan[@this.sign, 0] }Math$sign メソッド$get$tanh メソッドMath$tanh メソッド@{ @this.sign }$get$exp メソッドMath$exp メソッド@{ @this.sign < 0 ? 0 : @this.sign > 0 ? @inf : @nan }$get$log メソッドMath$log メソッド$get$acosh メソッドMath$acosh メソッド@{ @this.sign > 0 ? @inf : @cinf }$get$sin メソッドMath$sin メソッド$get$cos メソッドMath$cos メソッド$get$tan メソッドMath$tan メソッド@{ @nan }$get$asin メソッドMath$asin メソッド$get$acos メソッドMath$acos メソッド@{ @cinf }$get$atan メソッドMath$atan メソッド@{ @this.sign * Math.pi / 2 }$get$cosh メソッドMath$cosh メソッド@{ @this.sign == @nan ? @nan : @inf }$get$atanh メソッドMath$atanh メソッド@{ @this.atan / 1i }toString メソッドInfinity オブジェクトを @this
値として関数として呼び出されると、渡された @this
値を文字列に変換し、その文字列を内容とする文字列オブジェクトを値とする正常終了の結果を返す。
文字列への変換の方法は実行環境に任せる。上記各メソッドの呼出しにおける動作では、実行環境は次のことを仮定して 動作を効率化しても良い:
Infinity オブジェクトである。実際のメソッドの呼出しにおいてこれらの仮定が満たされていない場合、 動作は未定義である。
© 2006-2007 Magicant