NAME

contextTrigDegrees.pl - for trigonometric functions evaluated in degrees.

DESCRIPTION

This is a Parser context that redefines existing trigonometric functions from radians to degrees. The trigonometric functions can be used by the problem author and also by students if the answer checking is done by Parser. The latter is the main purpose of this file.

Note: By default, webwork problems evaluate trigonometric functions in radians. Problems which evaluate trigonometric functions in degrees should alert the student in their text.

USAGE

Context("TrigDegrees")

$a = 60;
$b = Compute("cos($a)");
ANS($b->cmp);

AUTHORS

Davide Cervone (Union College, Schenectady, New York, USA)

Paul Pearson (Hope College, Holland, Michigan, USA)