Annotation of OpenXM/src/asir-doc/parts/builtin/numeric.texi, Revision 1.1
1.1 ! ohara 1: @comment $OpenXM$
! 2: \BJP
! 3: @node $B?tCMH!?t(B,,, $BAH$_9~$_H!?t(B
! 4: @section $B?tCMH!?t(B
! 5: \E
! 6: \BEG
! 7: @node Numerical functions,,, Built-in Function
! 8: @section Numerical functions
! 9: \E
! 10:
! 11: @menu
! 12: * dacos dasin datan dcos dsin dtan::
! 13: * dabs dexp dlog dsqrt::
! 14: * ceil floor rint dceil dfloor drint::
! 15: @end menu
! 16:
! 17: \JP @node dacos dasin datan dcos dsin dtan,,, $B?tCMH!?t(B
! 18: \EG @node dacos dasin datan dcos dsin dtan,,, Numerical functions
! 19: @subsection @code{dacos}, @code{dasin}, @code{datan}, @code{dcos}, @code{dsin}, @code{dtan}
! 20: @findex dacos
! 21: @findex dasin
! 22: @findex datan
! 23: @findex dcos
! 24: @findex dsin
! 25: @findex dtan
! 26:
! 27: @table @t
! 28: @item dacos(@var{num})
! 29: \JP :: $BH!?tCM(B Arccos(@var{num}) $B$r5a$a$k(B.
! 30: \EG :: Get the value of Arccos of @var{num}.
! 31: @item dasin(@var{num})
! 32: \JP :: $BH!?tCM(B Arcsin(@var{num}) $B$r5a$a$k(B.
! 33: \EG :: Get the value of Arcsin of @var{num}.
! 34: @item datan(@var{num})
! 35: \JP :: $BH!?tCM(B Arctan(@var{num}) $B$r5a$a$k(B.
! 36: \EG :: Get the value of Arctan of @var{num}.
! 37: @item dcos(@var{num})
! 38: \JP :: $BH!?tCM(B cos(@var{num}) $B$r5a$a$k(B.
! 39: \EG :: Get the value of cos of @var{num}.
! 40: @item dsin(@var{num})
! 41: \JP :: $BH!?tCM(B sin(@var{num}) $B$r5a$a$k(B.
! 42: \EG :: Get the value of sin of @var{num}.
! 43: @item dtan(@var{num})
! 44: \JP :: $BH!?tCM(B tan(@var{num}) $B$r5a$a$k(B.
! 45: \EG :: Get the value of tan of @var{num}.
! 46: @end table
! 47:
! 48: @table @var
! 49: @item return
! 50: \JP $BG\@:EYIbF0>.?t(B
! 51: \EG floating point number
! 52: @item num
! 53: \JP $B?t(B
! 54: \EG number
! 55: @end table
! 56:
! 57: @itemize @bullet
! 58: \BJP
! 59: @item
! 60: $B;03Q4X?t!"5U;03Q4X?t$r?tCME*$K7W;;$9$k(B.
! 61: @item
! 62: $B$3$l$i$NH!?t$O(B C $B8@8l$NI8=`?t3X%i%$%V%i%j$rMQ$$$k(B.
! 63: $B$7$?$,$C$F(B, $B7W;;7k2L$O%*%Z%l!<%F%#%s%0%7%9%F%`$H%3%s%Q%$%i$K0MB8$9$k(B.
! 64: @item
! 65: @@pi $B$d(B @@i $B$J$I$N%7%s%\%k$r0z?t$KM?$($k$3$H$O$G$-$J$$(B.
! 66: \E
! 67: \BEG
! 68: @item
! 69: Compute numerical values of trigonometric functions.
! 70: @item
! 71: These functions use the standard mathematical library of C language.
! 72: So results depend on operating systems and a C compilers.
! 73: \E
! 74: @end itemize
! 75:
! 76: @example
! 77: [0] 4*datan(1);
! 78: 3.14159
! 79: @end example
! 80:
! 81: \JP @node dabs dexp dlog dsqrt,,, $B?tCMH!?t(B
! 82: \EG @node dabs dexp dlog dsqrt,,, Numerical functions
! 83: @subsection @code{dabs}, @code{dexp}, @code{dlog}, @code{dsqrt}
! 84: @findex dabs
! 85: @findex dexp
! 86: @findex dlog
! 87: @findex dsqrt
! 88:
! 89: @table @t
! 90: @item dabs(@var{num})
! 91: \JP :: $B@dBPCM(B |@var{num}| $B$r5a$a$k(B.
! 92: \EG :: Get the absolute value of @var{num}.
! 93: @item dexp(@var{num})
! 94: \JP :: $BH!?tCM(B exp(@var{num}) $B$r5a$a$k(B.
! 95: \EG :: Get the value of expornent of @var{num}.
! 96: @item dlog(@var{num})
! 97: \JP :: $BBP?tCM(B log(@var{num}) $B$r5a$a$k(B.
! 98: \EG :: Get the value of logarithm of @var{num}.
! 99: @item dsqrt(@var{num})
! 100: \JP :: $BJ?9T:,(B sqrt(@var{num}) $B$r5a$a$k(B.
! 101: \EG :: Get the value of square root of @var{num}.
! 102: @end table
! 103:
! 104: @table @var
! 105: @item return
! 106: \JP $BG\@:EYIbF0>.?t(B
! 107: \EG floating point number
! 108: @item num
! 109: \JP $B?t(B
! 110: \EG number
! 111: @end table
! 112:
! 113: @itemize @bullet
! 114: \BJP
! 115: @item
! 116: $B=iEyH!?t$r?tCME*$K7W;;$9$k(B.
! 117: @item
! 118: $B$3$l$i$NH!?t$O(B C $B8@8l$NI8=`?t3X%i%$%V%i%j$rMQ$$$k(B.
! 119: $B$7$?$,$C$F(B, $B7W;;7k2L$O%*%Z%l!<%F%#%s%0%7%9%F%`$H%3%s%Q%$%i$K0MB8$9$k(B.
! 120: @item
! 121: @@pi $B$d(B @@i $B$J$I$N%7%s%\%k$r0z?t$KM?$($k$3$H$O$G$-$J$$(B.
! 122: \E
! 123: \BEG
! 124: @item
! 125: Compute numerical values of elementary functions.
! 126: @item
! 127: These functions use the standard mathematical library of C language.
! 128: So results depend on operating systems and a C compilers.
! 129: \E
! 130: @end itemize
! 131:
! 132: @example
! 133: [0] dexp(1);
! 134: 2.71828
! 135: @end example
! 136:
! 137: \JP @node ceil floor rint dceil dfloor drint,,, $B?tCMH!?t(B
! 138: \EG @node ceil floor rint dceil dfloor drint,,, Numerical functions
! 139: @subsection @code{ceil}, @code{floor}, @code{rint}, @code{dceil}, @code{dfloor}, @code{drint}
! 140: @findex ceil
! 141: @findex floor
! 142: @findex rint
! 143: @findex dceil
! 144: @findex dfloor
! 145: @findex drint
! 146:
! 147: @table @t
! 148: @item ceil(@var{num})
! 149: @item dceil(@var{num})
! 150: \JP :: @var{num} $B$h$jBg$-$$:G>.$N@0?t$r5a$a$k(B.
! 151: \EG :: Get the ceiling integer of @var{num}.
! 152: @item floor(@var{num})
! 153: @item dfloor(@var{num})
! 154: \JP :: @var{num} $B$h$j>.$5$$:GBg$N@0?t$r5a$a$k(B.
! 155: \EG :: Get the floor integer of @var{num}.
! 156: @item rint(@var{num})
! 157: @item drint(@var{num})
! 158: \JP :: @var{num} $B$r@0?t$K$^$k$a$k(B.
! 159: \EG :: Get the round integer of @var{num}.
! 160: @end table
! 161:
! 162: @table @var
! 163: @item return
! 164: \JP $B@0?t(B
! 165: \EG integer
! 166: @item num
! 167: \JP $B?t(B
! 168: \EG number
! 169: @end table
! 170:
! 171: @itemize @bullet
! 172: \BJP
! 173: @item
! 174: @code{dceil}, @code{dfloor}, @code{drint} $B$O(B
! 175: @code{ceil}, @code{floor}, @code{rint} $B$NJLL>$G$"$k(B.
! 176: @item
! 177: $BIbF0>.?t$r@0?t$K$^$k$a$kJ}K!$O(B, $B%*%Z%l!<%F%#%s%0%7%9%F%`$H%3%s%Q%$%i$K0MB8$9$k(B.
! 178: @item
! 179: @@pi $B$d(B @@i $B$J$I$N%7%s%\%k$r0z?t$KM?$($k$3$H$O$G$-$J$$(B.
! 180: \E
! 181: @end itemize
! 182:
! 183: @example
! 184: [0] dceil(1.1);
! 185: 1
! 186: @end example
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>