Bill: thank you for this useful work-around.

Could someone please explain why the original conversion does not work?

Kindly, Mark.

On 07/31/2015 04:35 AM, Bill Page wrote:
> You could use this as a work-round:
>
> (1) -> interpret(eval(integrate(x*exp(-(x-u)^2/2)/(sqrt(2*%pi)),
> x=a..%plusInfinity), [a=1,u=0.5])::InputForm)
>
> On 30 July 2015 at 22:23, Leon Baum <[email protected]> wrote:
>> Why can't doesn't the following produce a numerical result?
>>
>> (71) -> eval(integrate(x*exp(-(x-u)^2/2)/(sqrt(2*%pi)), x=a..%plusInfinity),
>> [a=1,u=0.5])
>>
>>    (71)  - 0.25 erf(0.3535533905_932737622) + 0.6020653267_6429947778
>>                                                       Type:
>> Expression(Float)
>> (72) -> eval(integrate(x*exp(-(x-u)^2/2)/(sqrt(2*%pi)), x=a..%plusInfinity),
>> [a=1,u=0.5])::Float
>>
>>    Cannot convert the value from type Expression(Float) to Float .
>>
>>
>> If I type the expression in manually, it works:
>>
>>
>>
>> (72) -> -0.25*erf(0.3535533905_932737622) + 0.6020653267_6429947778
>>
>>    (72)  0.5063340961_2729292596
>>                                                                   Type:
>> Float
>>
>>
>> --
>> 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 http://groups.google.com/group/fricas-devel.
>> For more options, visit https://groups.google.com/d/optout.

-- 
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 http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to