Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML >
- <html lang="en"><head><meta charset="UTF-8">
- <title>
- HTM_SCRIPT_RIG__E__EXTERNAL_SCRIPT)
- </title><a
- href="https://d3m0.herokuapp.com/"
- rel ="author"
- ><!--# -- -- -- -- -- -- -- -- -- #-->
- JOHN_MARK_ISAAC_MADISON
- </a><meta
- name ="author"
- content="JOHN_MARK_ISAAC_MADISON"
- ><!-- ------------------------------------ -->
- </head><body><script
- type ="text/javascript"
- src ="LOGBOW.JS"
- charset="UTF-8"
- ></script><script>
- //////////////////////////////////////////////////
- //:SOLVE: log2( x ) = y
- x = solve_for_x_log2_x_equals_y( {y:7} );
- if( x != 128 ){
- alert( "[Wrong_Answer_For_X]:" + x );
- }else{
- alert( "[Got_Correct_Answer_For_X]:" + x);
- };;
- //:Solve... log4( 1024 ) = y
- //: bow4(log4( 1024 ) = bow4( y )
- //: 1024 = bow4( y )
- //: 1024 = 4^y
- //:
- //: Ooops, doesn't look like I am solving
- //: it. But "1024 == 4^y" will help us
- //: check our work later.
- //:
- //: Okay, really solve:
- //: log4( 1024 ) == (log(1024) / log(4) ) == y
- //: log4( 1024 ) == 5 == y
- //: y == 5
- //:
- //: Check our work with earlier equation:
- //: 1024 == 4^y
- //: 1024 == 4^5
- //:
- //: Run the code to get same answer:
- y = log4( 1024 );
- if( y != 5 ){
- alert("[Wrong_Answer_For_Y]:" + y);
- }else{
- alert("[Correct_Answer_For_Y]:" + y);
- };;
- //: 512 divided by 2 NINE(9)TIMES is 1
- if( div2( 512, 9 ) != 1 ){
- alert("[WRONG_ANSWER]");
- }else{
- alert("[ div2( 512, 9 ) === 1 ]");
- };;
- //////////////////////////////////////////////////
- </script></body></html>
Add Comment
Please, Sign In to add comment