Binary logarithm testing

by Glidias
Just need to test out all possibilities in case of possible inaccruacies! 
♥0 | Line 42 | Modified 2013-02-15 23:09:29 | MIT License
play

ActionScript3 source code

/**
 * Copyright Glidias ( http://wonderfl.net/user/Glidias )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/4c1G
 */

package {
    import flash.display.Sprite;
    import com.bit101.components.*;
    
    public class BinaryLogTest extends Sprite {
        public function BinaryLogTest() {
            // write as3 code here..
            var vBox:VBox = new VBox();
            addChild(vBox);
            var i:int = (1 << 0);  
            var x:Number = 0;  // is  some .01 epsilon required? no..not required!
    
            vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
             vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) );
              vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
               vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) );
                 vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                  vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                   vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                    vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                     vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                      vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                       vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                        vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                         vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                          vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                           vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                            vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                             vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                              vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                               vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                                vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                                 vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                                  vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
                                   vBox.addChild( new Label(null,0,0,String(Math.round(Math.log((i*=2)+x)*Math.LOG2E)) ) ); 
              vBox.addChild( new Label(null,0,0,String(int(Math.log((i*=2)+x)*Math.LOG2E)) ) ); i++;
              vBox.addChild( new Label(null,0,0,String(int(Math.log((i*=2)+x)*Math.LOG2E)) ) ); i++;
              vBox.addChild( new Label(null,0,0,String(int(Math.log((i*=2)+x)*Math.LOG2E)) ) ); i++;
              vBox.addChild( new Label(null,0,0,String(int(Math.log((i*=2)+x)*Math.LOG2E)) ) ); i++;
              vBox.addChild( new Label(null,0,0,String(int(Math.log((i*=2)+x)*Math.LOG2E)) ) ); i++;
              vBox.addChild( new Label(null,0,0,String(int(Math.log((i*=2)+x)*Math.LOG2E)) ) ); i++;
         
     
           
        }
    }
}