> 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.

Ralf

F ==> DoubleFloat

C0(S:F,r:F,T:F,
K:F,s:F):F==((S*erf(((2*log((S/K))+T*s^2+2*T*r)/(2*s*sqrt(2)*sqrt(T))))-K*%e^((-T*r))*erf(((2*log((S/K))-T*s^2+2*T*r)/(2*s*sqrt(2)*sqrt(T))))-K*%e^((-T*r))+S)/2)

C(K:F, s:F):F==C0(10.0, 0.05, 0.8, K, s)

CC(s:F):F==C(11.0, s)

draw(CC, 2.0..3.0)

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to