1( H2 e6 c* O% T; O" k
2. ^+ R3 j4 D6 y2 t+ y8 t5 G8 z# M( g
3$ p. i) |6 F5 t* e" G1 G! e
4) E. }$ |4 N5 r w9 J* W
56 _9 z/ R9 K, L/ b: y6 W
68 f, H! Y( T* f! u( k! b u9 l
7
& U. U! W. R% \; q: c$ t 8
' O- J* c8 u! }' u8 x7 a4 H: Q+ A 9
8 z. n8 ?2 N+ y7 m* M# R8 M 10
+ f/ c8 n- N" k! } 116 m m" A" |& n, ^
12: c. O7 S z& {! n7 [
13; e: G5 |) H# w+ N; S3 n& l+ z
14
( @( F' `0 [4 R1 B8 z 15$ a' R1 ~. {' O5 f2 O. y$ M
16
; z! S& E" S# o" s, v 174 W1 b, R, E. H4 s6 F+ N- F7 Z
182 {# h+ j+ Q6 g& U
19
5 ?3 ]- B5 m8 K. m 20, p2 h1 ?2 ]" H: R2 |! @# C
21
: g' O, g1 P2 c0 t6 { | <html>$ `, D3 k& w! W
<head>
7 o3 u- @1 [* D: F0 ? <title>javascript math sin() method</title>
# a. Y. J5 X$ A( v5 K </head>7 u: c; _; U; M1 Q+ n
<body>
) x. n7 ?- _8 R2 F <script type="text/javascript">
& V4 t+ F: x7 `; o! a 5 m$ U7 h& l" P
var value = math.sin( 0.5 );
~; Q- ~1 b* Y3 b: P6 F9 j" _+ | document.write("first test value : " + value );( x9 P% s3 t0 D" u s
: e% x8 g+ @! q3 j! v1 g" l var value = math.sin( 90 );
4 E O7 w8 v1 [: i* w! V3 v7 a document.write("<br />second test value : " + value );1 }0 P6 l! l% G
# E6 K* Y3 H) d e' b7 A6 ~ var value = math.sin( 1 );
i* t& J0 z* _0 R: Z0 n document.write("<br />third test value : " + value );* [) J7 D0 ^$ H6 a
" R: F; h3 o% G' D8 X2 @ var value = math.sin( math.pi/2 );
! R+ h! Z4 g3 _ document.write("<br />fourth test value : " + value );
/ \: U" j# r/ k! E: ^1 [# L9 A </script>0 b3 K% e, `& T+ o5 [$ m8 @: @
</body>
, S7 t$ a# l& f7 r0 A) E( h3 [ </html>9 z* a# H( R- J* }4 J
8 h" r, {- W+ U, b5 D3 j |