#   C A L C U L A T O R   I N   D E M A G O G 
 
 
 
 #   O p e n   t h i s   f i l e   i n   D e m a g o g   a n d   p r e s s   F 2 
 
 #   I n   t h e   S t a t   w i n d o w   w i l l   s h o w   t h e   r e s u l t s   o f   c a l c u l a t i o n 
 
 #   J u s t   w r i t e   w h a t   w e   w a n t   t o   c a l c u l a t e 
 
 #   E a c h   c a l c u l a t i o n   a t   n e w   l i n e   o r   s e p a r a t e d   b y   a   s e m i c o l o n 
 
 #   Y o u   c a n   u s e   t e x t   i n   a p o s t r o p h e s 
 
 #   A l l   t h a t   c o m e s   a f t e r   t h e   #   -   i s   c o m m e n t ! 
 
 #   E a c h   r e s u l t   i s   g i v e n   o n   a   s e p a r a t e   l i n e 
 
 
 
 #   !" &/  ,#/"         D E M A G O G 
 
 
 
 #   B:@>9B5  MB>B  D09;  D e m a g o g ' ><  8  =06<8B5  :;028HC  F 2 
 
 #     >:=5  !B0B8AB8:8  1C4CB  ?>:070=K  @57C;LB0BK  @0AG5B0
 
 #   @>AB>  ?8H5<  B>,   GB>  E>B8<  2KG8A;8BL
 
 #   064>5  2KG8A;5=85  70?8AK205<  A  =>2>9  AB@>:8  8;8  G5@57  B>G:C  A  70?OB>9
 
 #   >6=>  2AB02;OBL  B5:AB  2  0?>AB@>D0E
 
 #   A5  GB>  845B  ?>A;5  7=0:0  #   -   :><<5=B0@89! 
 
 #   064K9  @57C;LB0B  2K405BAO  A  =>2>9  AB@>:8
 
 
 
 ' B E L I E V E   O R   C H E C K   I T . . . ' 
 
 ' %""   ,",   %""    ,". . . ' 
 
 ' ' 
 
 ' A r i t h m e t i c ' 
 
 ' ' 
 
 1 + 2 + 3 ;   2 . 1 4 1 5 9 2 6 + 1 ;   1 1 1 - 1 1 1 . 5 
 
 3 / 1 0 ;   1 0 / 3 ;   2 2 / 7 
 
 2 * 2 ;   3 * 1 0 ;   2 . 5 * 3 . 3 
 
 1 0 ^ 2 ;   1 0 ^ 3 ;   2 ^ 2 ;   2 ^ 1 0 
 
 1 / 2 + 1 / 4 + 1 / 8 + 1 / 1 6 + 1 / 3 2 + 1 / 6 4 + 1 / 1 2 8 + 1 / 2 5 6 + 1 / 5 1 2 
 
 ' ' 
 
 2 0 0 0 0 0 0 * 1 3 / 1 0 0 * 5 5 . 5 5 5 
 
 ' ' 
 
 ' S t a n d a r d   m a t h e m a t i c a l   f u n c t i o n s ' 
 
 ' ' 
 
 s q r t ( 4 ) ;   s q r t ( 9 ) ;   s q r t ( 1 6 )           #   s q u a r e   r o o t   -   :204@0B=K9  :>@5=L
 
 ' ' ;   ' T h i s   n u m b e r   i s   c a l l e d   t h e   " G o l d e n   S e c t i o n " :   ' ;   ( 1 + s q r t ( 5 ) ) / 2 ;   ' ' 
 
 1 0 ^ ( 3 / 2 ) ;   2 ^ 1 0 ;   2 . 7 1 8 ^ 3 . 1 4           #   p o w e r   -   2>72545=85  2  ;N1CN  AB5?5=L
 
 l n ( 1 0 ) ;   l n ( 2 )                                     #   n a t u r a l   l o g a r i t h m   -   =0BC@0;L=K9  ;>30@8D<
 
 l o g ( 1 0 0 0 ) ;   l o g ( 2 )                             #   l o g a r i t h m   -   45AOB8G=K9  ;>30@8D<
 
 e x p ( 1 ) ;   e x p ( 3 )                                   #   e x p o n e n t   -   M:A?>=5=B0
 
 s i n ( 0 . 5 )                                               #   n o t e :   a n g l e s   i n   r a d i a n s !   -   ?><=8B5:   C3;K  2  @0480=0E! 
 
 c o s ( 0 . 5 ) 
 
 s i n ( 0 . 5 ) ^ 2 + c o s ( 0 . 5 ) ^ 2                     #   i t   i s   a l w a y s   1   -   MB>  2A5340  1   : ) 
 
 s i n ( 0 . 1 ) ^ 2 + c o s ( 0 . 1 ) ^ 2 
 
 a s i n ( 0 . 4 7 9 4 2 5 5 3 8 6 0 4 2 0 3 )                 #   a r c   s i n e   -   0@:A8=CA
 
 a c o s ( 0 . 8 7 7 5 8 2 5 6 1 8 9 0 3 7 3 )                 #   a r c   c o s i n e   -   0@::>A8=CA
 
 t a n ( 0 . 5 )                                               #   t a n g e n t   -   B0=35=A
 
 a t a n ( 0 . 5 4 6 3 0 2 4 8 9 8 4 3 7 9 1 )                 #   a r c   t a n g e n t   -   0@:B0=35=A
 
 r a d ( 3 6 0 )                                               #   d e g r e e s   t o   r a d i a n s   -   3@04CAK  2  @0480=K
 
 d e g ( 1 )                                                   #   r a d i a n s   t o   d e g r e e s   -   @0480=>K  2  3@04CAK
 
 f l o o r ( 3 . 1 4 )                                         #   r o u n d e d   t o   t h e   l o w e r   i n t e g e r   -   >:@C3;5=85  4>  <5=LH53>  F5;>3>
 
 c e i l ( 3 . 1 4 )                                           #   r o u n d i n g   t o   t h e   h i g h e r   i n t e g e r   -   >:@C3;5=85  4>  1>;LH53>  F5;>3>
 
 r a n d ( 1 )                                                 #   a   r a n d o m   n u m b e r   b e t w e e n   0   a n d   1   -   A;CG09=>5  G8A;>  >B  0   4>  1 
 
 ' ' 
 
 ' B o o l e a n   e x p r e s s i o n s ' 
 
 ' ' 
 
 2   >   1                                                     #   1   -   t r u e 
 
 2   <   ( - 1 )                                               #   0   -   f a l s e 
 
 2   <   - 1                                                   #   W R O N G ! 
 
 1 2 3 4 . 5 6 7   <   1 2 3 4 . 6                             #   1 
 
 1   = =   0                                                   #   0   -   f a l s e 
 
 ( 2   <   3   )   &   ( 1   >   0 )                           #   1 
 
 ( 1   = =   0 )   |   ( 0 . 0 1   >   0 . 0 0 1 )             #   1 
 
 ( 0 . 5   < =   0 . 4 )   |   ( 0 . 0 1   > =   0 . 1 )       #   0 
 
 ( 0   = =   0 )                                               #   1   
 
 0   < >   0                                                   #   0 
 
 