Help for this page

Select Code to Download


  1. or download this
    
    #!/usr/bin/perl 
    ...
        my ( $x, $y ) = ( $val->[$_][0], $val->[$_][1] );
        print same_sign( $x, $y ) ? '' : 'not ', "same sign\n";
    }
    
  2. or download this
     1  2 => same sign
    -1  2 => not same sign
     1 -2 => not same sign
    -1 -2 => same sign