Difference between revisions of "TestNumericalNumber"

From ApCoCoAWiki
(New page: <command> <title>TestNumericalNumber</title> <short_description>Compares two numerical numbers </short_description> <syntax> ApCoCoATest.TestNumericalNumber(Found: Rat, Expected: Rat, Eps:...)
 
Line 3: Line 3:
 
<short_description>Compares two numerical numbers </short_description>
 
<short_description>Compares two numerical numbers </short_description>
 
<syntax>
 
<syntax>
ApCoCoATest.TestNumericalNumber(Found: Rat, Expected: Rat, Eps: Rat)
+
ApCoCoATest.TestNumericalNumber(Found: RAT, Expected: RAT, Eps: RAT)
 
</syntax>
 
</syntax>
  
 
<description>
 
<description>
 
+
This function compares two numerical numbers and returns "TRUE", if the difference isn't greater than Eps.
  
 
<itemize>
 
<itemize>
<item>@param <em>Found</em>: </item>
+
<item>@param <em>Found</em>: The numerical value that was computed</item>
<item>@param <em>Expected</em>: </item>
+
<item>@param <em>Expected</em>: The numerical value that should be computed</item>
<item>@param <em>Eps</em>: </item>
+
<item>@param <em>Eps</em>: The allowed difference between the two values</item>
 
<item>@return </item>
 
<item>@return </item>
 
</itemize>
 
</itemize>

Revision as of 16:38, 8 October 2009

TestNumericalNumber

Compares two numerical numbers

Syntax

ApCoCoATest.TestNumericalNumber(Found: RAT, Expected: RAT, Eps: RAT)

Description

This function compares two numerical numbers and returns "TRUE", if the difference isn't greater than Eps.

  • @param Found: The numerical value that was computed

  • @param Expected: The numerical value that should be computed

  • @param Eps: The allowed difference between the two values

  • @return

The following parameter is optional:

  • @param Dil: Integer > 0, factor for dilation of the polyhedral P, to count the lattice points of the polyhedral n*P

Example