Advertisement
Guest User

LOGBOW.HTM

a guest
Nov 22nd, 2019
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE HTML >
  2. <html lang="en"><head><meta charset="UTF-8">
  3.     <title>  
  4.         HTM_SCRIPT_RIG__E__EXTERNAL_SCRIPT)              
  5.     </title><a
  6.         href="https://d3m0.herokuapp.com/"
  7.         rel ="author"
  8.     ><!--# --  --  --  --  --  --  --  --  -- #-->
  9.         JOHN_MARK_ISAAC_MADISON
  10.     </a><meta
  11.         name   ="author"
  12.         content="JOHN_MARK_ISAAC_MADISON"
  13.     ><!-- ------------------------------------ -->
  14. </head><body><script
  15.     type   ="text/javascript"
  16.     src    ="LOGBOW.JS"
  17.     charset="UTF-8"
  18. ></script><script>
  19. //////////////////////////////////////////////////
  20.  
  21.     //:SOLVE: log2( x ) = y
  22.     x = solve_for_x_log2_x_equals_y( {y:7} );
  23.     if( x != 128 ){
  24.         alert( "[Wrong_Answer_For_X]:" + x );
  25.     }else{
  26.         alert( "[Got_Correct_Answer_For_X]:" + x);
  27.     };;
  28.  
  29.  
  30.     //:Solve... log4( 1024 ) = y
  31.     //:    bow4(log4( 1024 ) = bow4( y )
  32.     //:               1024   = bow4( y )
  33.     //:               1024   = 4^y
  34.     //:
  35.     //: Ooops, doesn't look like I am solving
  36.     //: it. But "1024 == 4^y" will help us
  37.     //: check our work later.
  38.     //:
  39.     //: Okay, really solve:
  40.     //: log4( 1024 ) == (log(1024) / log(4) ) == y
  41.     //: log4( 1024 ) == 5                     == y
  42.     //: y == 5
  43.     //:
  44.     //: Check our work with earlier equation:
  45.     //: 1024 == 4^y  
  46.     //: 1024 == 4^5
  47.     //:
  48.     //: Run the code to get same answer:
  49.     y = log4( 1024 );
  50.     if( y != 5 ){
  51.         alert("[Wrong_Answer_For_Y]:" + y);
  52.     }else{
  53.         alert("[Correct_Answer_For_Y]:" + y);
  54.     };;
  55.  
  56. //////////////////////////////////////////////////
  57. </script></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement