next up previous contents
Next: Example Up: Idiosyncrasies Previous: Idiosyncrasies   Contents

Example

For example, in defining a graph, one might have once written:

##
$a = -2;
$b = -2;

## This expression will be correctly parsed by FEQ
$f = FEQ("$a*x^2 ? {$b}*x  for x in [$xmin, $xmax] using color:blue
and weight:2");
in an attempt to resolve problems with the sign of $b and the preceding operator.

Now you should just write

$f = FEQ("${a}x^2 + ${b}x for x in [$xmin, $xmax] using color:blue
and weight:2");

and FEQ will take care of adjacent +- or -+ or - signs with no prompting.



Thomas R. Shemanske 2002-03-05