Help for this page

Select Code to Download


  1. or download this
    sub sqrt ($) {
      my $x = shift;
    ...
    }
    
    test( $_ ) for( 16, 9, 4, 2, 0.5, -1, 0, 0.001 );
    
  2. or download this
    SQRT 16: 4.0000114440918 ?= 4
    
    ...
    SQRT 0: 0.0078125 ?= 0
    
    SQRT 0.001: 0.03125 ?= 0.0316227766016838