Re: [fricas-devel] erf is left unevaluated in expression

2018-11-21 Thread oldk1331
On Wed, Nov 21, 2018 at 6:22 PM Slawomir Kolodynski wrote: > > lack of a basic form of referential transparency between variables and > literals. > Namely if you assign a literal to a variable and later in code use a variable, > the result may be different than if you had used the literal

Re: [fricas-devel] erf is left unevaluated in expression

2018-11-21 Thread Slawomir Kolodynski
It sort of helps in the sense that the hint about specifying the types is useful. I could not apply the solution directly because it lead to another very surprising (to me) quirk of FriCAS: lack of a basic form of referential transparency between variables and literals. Namely if you assign a

Re: [fricas-devel] erf is left unevaluated in expression

2018-11-10 Thread Ralf Hemmecke
> Is there a way to force the evaluation of erf so that the function > s+->C(11.0,s) can be plotted? Does the following help? The idea is that you specify the type so that the result is not Expression(Float) (and must later be converted to (Double)Float, but rather an element of DoubleFloat.

[fricas-devel] erf is left unevaluated in expression

2018-11-10 Thread Slawomir Kolodynski
I got a problem trying to plot a function that uses the erf funtion. It seems that the reason was that erf is sometimes left unevaluated by FriCAS even in expressions that only involve erf and numbers. To replicate one can define the expression like