Difference between revisions of "Arith num cmp"

From WeBWorK_wiki
Jump to navigation Jump to search
m (ArithNumCmp moved to Arith num cmp: consistent naming)
(modifiied title display)
 
Line 1: Line 1:
  +
{{DISPLAYTITLE:arith_num_cmp}}
 
===arith_num_cmp===
 
===arith_num_cmp===
   

Latest revision as of 20:57, 18 November 2009

arith_num_cmp

Description

Alias for num_cmp($ans, mode=>'arith'). Arithmetic operations are allowed
but not function evaluation

Syntax

arith_num_cmp($correctAnswer, $relPercentTol, $format, $zeroLevel, $zeroLevelTol)
Only the first entry (answer) is required, the rest are optional

Params

Equivalent to

num_cmp(
$correctAnswer,
mode => 'arith',
relTol => $relPercentTol,
format => $format,
zeroLevel => $zeroLevel,
zeroLevelTol => $zeroLevelTol )

Returns

An answer evaluator