[system] Repository:
ViewVC logotype

Revision 5569

Jump to revision: Previous Next
Author: gage
Date: Sat Oct 27 14:13:31 2007 UTC (12 years ago)
Log Message:
Changed plot_functions so that it uses the Formula MathObject to parse the
the function in

$f1 = qq! x^2 - 3*x + 45 for x in [0, 45) using color:red and weight:2!

instead of using the built in perl parser.

This allows things such as $formula=Formula("|x|");

$f1 = qq! $formula  for x in [0, 45) using color:red and weight:2!

to be evaluated. There should be no apparent change to old problems
since the Formula MathObject parser handles a superset of the builtin perl parser syntax.

This is not yet the most efficient method to have GraphObjects and
Formula's interact since the same string is being recompiled several times,
but it is a useful hack which preserves backward compatibility.

Changed paths:

Path Details
Directorytrunk/pg/macros/PGgraphmacros.pl modified , text changed

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9