rpruim/mosaic — Issue #47: treat pi specially in makeFunction()
Author: rpruim
Created: 2012-03-01 19:49:56+00:00
State: open
Labels: bug

If pi is not declared, treat pi like the numerical constant, not like a variable with no default.

pi can still be used as a variable if you declare it explicitly.

The result:

```R
> makeFunction( sin(pi* x) ~ x )
function (x)
sin(pi * x)
> makeFunction( sin(pi* x) ~ x & pi)
function (x, pi)
sin(pi * x)
> makeFunction( sin(e* x) ~ x)
function (x, e)
sin(e * x)
> makeFunction( sin(e* x) ~ x & e)
function (x, e)
sin(e * x)
```