Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: False positive on inequality comparison

by Nkuvu (Priest)
on Apr 03, 2009 at 22:21 UTC ( [id://755354]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $tolerance = 1.0e-16; # Change this value based on observation
    
    if ($tolerance*abs($range_min + $change_min) < abs($range_min - $chang
    +e_min)) {
    ...
        my $difference = $range_min - $change_min;
        printf "  Difference : %0.24f\n", $difference;
    }
    
  2. or download this
    variable_c has different maximum value:
      Change list: 45142.388774415 (Intermediate Variables)
      Range file : 45142.388774415 (Intermediate Variables)
    ...
      Change list: 1.57615706403821 (Intermediate Variables)
      Range file : 1.57615706403821 (Intermediate Variables)
      Difference : 0.000000000000000000000000
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://755354]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-24 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found