ÿþs w 1 = " < t a b l e > < t r > < t d > " ;  
 s w 2 = " < / t d > < t d   v a l i g n = m i d d l e > = " ;  
 s w 3 = " < / t d > < / t r > < / t a b l e > " ;  
 / / $0:B>@80; 
 f u n c t i o n   f a k t ( k ) {  
 a = 1 ;  
 i = 0  
 f o r ( i = 1 ; i < k ; i + + ) {   a = ( i + 1 ) * a ; }  
 d o c u m e n t . r e s h . p e r e m e n . v a l u e = a ;  
 }  
 / / '8A;>  A>G5B0=89 
 f u n c t i o n   C N K ( n , k ) {  
 f a k t ( n ) ;  
 n 1 = d o c u m e n t . r e s h . p e r e m e n . v a l u e ;  
 f a k t ( k ) ;  
 n 1 = n 1 / d o c u m e n t . r e s h . p e r e m e n . v a l u e ;  
 f a k t ( n - k ) ;  
 n 1 = n 1 / d o c u m e n t . r e s h . p e r e m e n . v a l u e ;  
 d o c u m e n t . r e s h . p e r e m e n . v a l u e = n 1 ;  
 }  
  
 f u n c t i o n   Z a d S t a t 1 ( ) {  
 f a k t ( d o c u m e n t . r e s h . n 1 . v a l u e ) ;  
 n = d o c u m e n t . r e s h . p e r e m e n . v a l u e ;  
 s t a t 1 . i n n e r H T M L = " < b r > " + s w 1 + " < i m g   s r c = ' i m g / F a c t . g i f ' > = " + s w 2 + n + s w 3 ;  
 }  
 f u n c t i o n   Z a d S t a t 2 ( ) {  
 C N K ( d o c u m e n t . r e s h . n 2 . v a l u e , d o c u m e n t . r e s h . k 2 . v a l u e ) ;  
 s t a t 2 . i n n e r H T M L = " < b r > " + s w 1 + " < i m g   s r c = ' i m g / S o c h e t . g i f ' > = " + s w 2 + d o c u m e n t . r e s h . p e r e m e n . v a l u e + s w 3 ;  
 }  
  
 f u n c t i o n   Z a d S t a t 3 ( ) {  
 n = M a t h . p o w ( d o c u m e n t . r e s h . n 3 . v a l u e , d o c u m e n t . r e s h . k 3 . v a l u e ) ;  
 s t a t 3 . i n n e r H T M L = " < b r > " + s w 1 + " < i m g   s r c = ' i m g / S t e p e n . g i f ' > = " + s w 2 + n + s w 3 ;  
 }  
  
 f u n c t i o n   Z a d S t a t 4 ( ) {  
 C N K ( d o c u m e n t . r e s h . n 1 4 . v a l u e , d o c u m e n t . r e s h . k 1 4 . v a l u e ) ;  
 n = d o c u m e n t . r e s h . p e r e m e n . v a l u e ;  
 C N K ( d o c u m e n t . r e s h . n 4 . v a l u e - d o c u m e n t . r e s h . n 1 4 . v a l u e , d o c u m e n t . r e s h . k 4 . v a l u e - d o c u m e n t . r e s h . k 1 4 . v a l u e ) ;  
 n = d o c u m e n t . r e s h . p e r e m e n . v a l u e * n ;  
 C N K ( d o c u m e n t . r e s h . n 4 . v a l u e , d o c u m e n t . r e s h . k 4 . v a l u e ) ;  
 n = n / d o c u m e n t . r e s h . p e r e m e n . v a l u e ;  
 s t a t 4 . i n n e r H T M L = " < b r > " + s w 1 + " < i m g   s r c = ' i m g / S o c h e t 1 . g i f ' > " + s w 2 + n + s w 3 ;  
 }  
  
 f u n c t i o n   Z a d S t a t 5 ( ) {  
 C N K ( d o c u m e n t . r e s h . n 1 5 . v a l u e , d o c u m e n t . r e s h . k 1 4 . v a l u e ) ;  
 n = d o c u m e n t . r e s h . p e r e m e n . v a l u e ;  
 C N K ( d o c u m e n t . r e s h . n 5 . v a l u e - d o c u m e n t . r e s h . n 1 5 . v a l u e , d o c u m e n t . r e s h . k 5 . v a l u e - d o c u m e n t . r e s h . k 1 5 . v a l u e ) ;  
 / /  
 n = d o c u m e n t . r e s h . p e r e m e n . v a l u e * n ;  
 C N K ( d o c u m e n t . r e s h . n 5 . v a l u e , d o c u m e n t . r e s h . k 5 . v a l u e ) ;  
 n = 1 * 1 - n / d o c u m e n t . r e s h . p e r e m e n . v a l u e ;  
 s t a t 5 . i n n e r H T M L = " < b r > " + s w 1 + " < i m g   s r c = ' i m g / S o c h e t 2 . g i f ' > " + s w 2 + n + s w 3 ;  
 }  
  
 f u n c t i o n   Z a d S t a t 6 ( ) {  
 n = M a t h . p o w ( d o c u m e n t . r e s h . p 6 . v a l u e , d o c u m e n t . r e s h . k 6 . v a l u e ) ;  
 n = n * M a t h . p o w ( d o c u m e n t . r e s h . q 6 . v a l u e , d o c u m e n t . r e s h . n 6 . v a l u e - d o c u m e n t . r e s h . k 6 . v a l u e ) ;  
 C N K ( d o c u m e n t . r e s h . n 6 . v a l u e , d o c u m e n t . r e s h . k 6 . v a l u e ) ;  
 n = n * d o c u m e n t . r e s h . p e r e m e n . v a l u e ;  
 s t a t 6 . i n n e r H T M L = " < b r > " + s w 1 + " < i m g   s r c = ' i m g / B e r n y l i 1 . g i f ' > " + s w 2 + n + s w 3 ;  
 }  
  
 f u n c t i o n   Z a d S t a t 7 ( ) {  
 n = M a t h . p o w ( d o c u m e n t . r e s h . p 7 . v a l u e , d o c u m e n t . r e s h . k 7 . v a l u e ) ;  
 n = n * M a t h . p o w ( 1 - d o c u m e n t . r e s h . p 7 . v a l u e , d o c u m e n t . r e s h . n 7 . v a l u e - d o c u m e n t . r e s h . k 7 . v a l u e ) ;  
 C N K ( d o c u m e n t . r e s h . n 7 . v a l u e , d o c u m e n t . r e s h . k 7 . v a l u e ) ;  
 n = n * d o c u m e n t . r e s h . p e r e m e n . v a l u e ;  
 s t a t 7 . i n n e r H T M L = " < b r > " + s w 1 + " < i m g   s r c = ' i m g / B e r n y l i 1 . g i f ' > = " + s w 2 + n + s w 3 ;  
 }  
  
 f u n c t i o n   Z a d S t a t 8 ( ) {  
 s 1 = ' x ' ;  
 i = 0 ;  
 s 2 = ' < i n p u t   t y p e = " b u t t o n "   o n c l i c k = " j a v a s c r i p t : Z a d S t a t 9 ( ) ; "   v a l u e = " 0;55" > ' ;  
 n = d o c u m e n t . r e s h . n 8 . v a l u e ;  
 f o r ( i = 0 ; i < n ; i + + )   {  
 k = i + 8 ;  
 s 1 = s 1 + ' < i n p u t   t y p e = " t e x t "     v a l u e = " "   s t y l e = w i d t h : 4 0 p x > ' ;  
 }  
 s t a t 8 . i n n e r H T M L = ' < b r > ' + s 1 + ' < b r > ' + s 2 ;  
 }  
  
 f u n c t i o n   Z a d S t a t 9 ( ) {  
 v a r   s 1 1 = " < t a b l e   b o r d e r = ' 1 p x ' > < t r > < t d > X " ;  
 v a r   s 2 2 = " < / t r > < / t d > < t r > < t d > P " ;  
 D i s = 0 ; O g = 0 ; i = 0 ; j = 0 ; a = 0 ; c o u n t = 0 ; h = 1 ;  
 c o u n t 1 = d o c u m e n t . r e s h . n 8 . v a l u e ;  
 v a r   X = n e w       A r r a y ( ) ;  
 v a r   X m 1 = n e w   A r r a y ( ) ;  
 v a r   X m 2 = n e w   A r r a y ( ) ;  
 f o r ( i = 0 ; i < n ; i + + )   { k = i + 2 ; X [ i ] = d o c u m e n t . r e s h . e l e m e n t s [ k ] . v a l u e ; }  
 f o r ( i = 0 ; i < c o u n t 1 ; i + + ) { f o r ( j = ( i + 1 ) ; j < c o u n t 1 ; j + + ) { i f ( ( X [ i ] = = X [ j ] ) & & ( X [ i ] ! = ' ' ) ) { h + + ; X [ j ] = ' ' ; c o u n t + + ; } } i f ( X [ i ] ! = ' ' ) { X m 1 [ a ] = X [ i ] ; X m 2 [ a ] = h ; a + + ; h = 1 ; } }  
 f o r ( i = 0 ; i < ( c o u n t 1 - c o u n t ) ; i + + ) { s 1 1 = s 1 1 + " < / t d > < t d > " + X m 1 [ i ] + "   " ; s 2 2 = s 2 2 + " < / t d > < t d > " + X m 2 [ i ] + ' / ' + d o c u m e n t . r e s h . n 8 . v a l u e + "   " ; }  
 f o r ( i = 0 ; i < ( c o u n t 1 - c o u n t ) ; i + + ) {  
 O g = O g + X m 2 [ i ] * X m 1 [ i ] / d o c u m e n t . r e s h . n 8 . v a l u e ;  
 D i s = D i s + X m 1 [ i ] * X m 1 [ i ] * X m 2 [ i ] / d o c u m e n t . r e s h . n 8 . v a l u e ;  
 }  
 D i s = D i s - O g * O g ;  
 Y k l = M a t h . s q r t ( D i s ) ;  
 s t a t 9 . i n n e r H T M L = ' < b r > ' + s 1 1 + ' < b r > ' + s 2 2 + ' < / t r > < / t d > < / t a b l e > 0B5<0B8G5A:>5  >6840=85= ' + O g ;  
 s t a t 9 . i n n e r H T M L + = ' < b r > 8A?5@A8O= ' + D i s ;  
 s t a t 9 . i n n e r H T M L + = ' < b r > !B0=40@B=>5  C:;>=5=85= ' + Y k l ;  
 n y 1 = 0 ;  
 n y 2 = 0 ;  
 f o r ( i = 0 ; i < ( c o u n t 1 - c o u n t ) ; i + + ) {  
 n y 1 + = X m 2 [ i ] * X m 1 [ i ] / d o c u m e n t . r e s h . n 8 . v a l u e ;  
 n y 2 + = X m 2 [ i ] * X m 1 [ i ] * X m 1 [ i ] / d o c u m e n t . r e s h . n 8 . v a l u e / d o c u m e n t . r e s h . n 8 . v a l u e ;  
 }  
 s t a t 9 . i n n e r H T M L + = ' < b r > 0G0;L=K9  <><5=B  ?5@2>3>  ?>@O4:0= ' + n y 1 ;  
 s t a t 9 . i n n e r H T M L + = ' < b r > 0G0;L=K9  <><5=B  2B>@>3>  ?>@O4:0= ' + n y 2 ;  
 s t a t 9 . i n n e r H T M L + = ' < b r > &5=B@0;L=K9  <><5=B  2B>@>3>  ?>@O4:0= ' + n y 1 * 1 - n y 2 * 1 ;  
 s t a t 9 . i n n e r H T M L + = ' < b r > A;8  40==0O  25;8G8=0  >?8AK205BAO  30<<0  @0A?@545;5=85<  B>  < b r > & # 9 5 5 ; = M / D = ' + O g / D i s + ' ; < b r >   & # 9 5 1 ; = & # 9 5 5 ; M = ' + O g / D i s * O g + ' ; ' ;  
 s t a t 9 . i n n e r H T M L + = ' < b r > < i m g   s r c = " i m g / G a . g i f " > '  
 }  
 s w 1 = " < t a b l e > < t r > < t d   v a l i g n = m i d d l e > " ;  
 s w 2 = " < / t d > < t d   v a l i g n = m i d d l e > " ;  
 s w 3 = " < / t d > < / t r > < / t a b l e > " ;  
 f u n c t i o n   Z a d M o l F i z 1 ( ) {  
 s t a t 1 . i n n e r H T M L = s w 1 + ' < i m g   s r c = " i m g / M o l 1 . g i f " > ' + s w 2 + d o c u m e n t . r e s h . m . v a l u e * d o c u m e n t . r e s h . E d I z M a . v a l u e / d o c u m e n t . r e s h . m y . v a l u e + s w 3 ;  
 }  
 f u n c t i o n   Z a d M o l F i z 2 ( ) {  
 s t a t 2 . i n n e r H T M L = s w 1 + ' < i m g   s r c = " i m g / M o l 2 . g i f " > ' + s w 2 + d o c u m e n t . r e s h . m 2 . v a l u e * d o c u m e n t . r e s h . m y 2 . v a l u e + ' :3' + s w 3 ;  
 }  
 f u n c t i o n   Z a d M o l F i z 3 ( ) {  
 s t a t 3 . i n n e r H T M L = s w 1 + ' < i m g   s r c = " i m g / M o l 3 . g i f " > ' + s w 2 + d o c u m e n t . r e s h . m 3 . v a l u e * d o c u m e n t . r e s h . E d I z R o 3 . v a l u e * d o c u m e n t . r e s h . E d I z M a 3 . v a l u e * d o c u m e n t . r e s h . r o 3 . v a l u e + ' << s u p > 3 < / s u p > ' + s w 3 ;  
 }  
 f u n c t i o n   Z a d M o l F i z 4 ( ) {  
 s t a t 4 . i n n e r H T M L = s w 1 + ' < i m g   s r c = " i m g / M o l 4 1 . g i f " > ' + s w 2 + d o c u m e n t . r e s h . p 4 . v a l u e * d o c u m e n t . r e s h . E d I z P 4 . v a l u e * d o c u m e n t . r e s h . m 4 . v a l u e + ' 0' + s w 3 ;  
 }  
  
 f u n c t i o n   Z a d S t a t 1 0 ( ) {  
 s t a t 1 0 . i n n e r H T M L = ' < b r > P ( A B ) = ' + d o c u m e n t . r e s h . P 6 . v a l u e + ' * ' + d o c u m e n t . r e s h . P 6 . v a l u e + ' = ' + d o c u m e n t . r e s h . P 6 . v a l u e * d o c u m e n t . r e s h . P 6 . v a l u e ;  
 }  
 f u n c t i o n   Z a d S t a t 1 1 ( ) {  
 s t a t 1 1 . i n n e r H T M L = ' < b r > P ( A + B ) = P ( A ) + P ( B ) - P ( A B ) = ' + d o c u m e n t . r e s h . P A . v a l u e + ' + ' + d o c u m e n t . r e s h . P B . v a l u e + ' - ' + d o c u m e n t . r e s h . P A . v a l u e + ' * ' + d o c u m e n t . r e s h . P B . v a l u e + ' = ' ;  
 s t a t 1 1 . i n n e r H T M L + = d o c u m e n t . r e s h . P A . v a l u e + d o c u m e n t . r e s h . P B . v a l u e - d o c u m e n t . r e s h . P A . v a l u e * d o c u m e n t . r e s h . P B . v a l u e ;  
 } 
