(1) -> NV(x:Float):Float == (1+erf(x/sqrt(2)))/2
   Function declaration NV : Float -> Float has been added to
      workspace.
                                                                   Type: Void
(2) -> NV(0.7)
   Compiling function NV with type Float -> Float

   (2)  0.7580363477_7692698525
                                                                  Type: Float

Or is your point that this should not be necessary?


On 22 October 2015 at 13:26, Prof. Dr. Johannes Grabmeier privat
<[email protected]> wrote:
> another problem with numeric evaluations for computing the normal
> distribution using the error function.
> To my opinion, numeric NV(0.7) directly should return 0.7580363478
>
>
>
>                                                                   Type:
> Float
> (52) -> NV(x) == (1+erf(x/sqrt(2)))/2
>    Compiled code for NV has been cleared.
>    1 old definition(s) deleted for function or rule NV
>                                                                    Type:
> Void
> (53) -> numeric NV(0.7)
>    Compiling function NV with type Float -> Expression(Float)
>
>    >> Error detected within library code:
>    Can only compute the numerical value of a constant, real-valued
> Expression
>
> (53) -> NV(0.7)
>
>    (53)  0.5 erf(0.4949747468) + 0.5
>                                                       Type:
> Expression(Float)
> (54) -> numeric NV(0.7)
>
>    >> Error detected within library code:
>    Can only compute the numerical value of a constant, real-valued
> Expression
>
> (54) -> erf(0.4949747468)
>
>    (54)  0.5160726955_315973
>
> (55) -> 0.5*erf(0.4949747468)+0.5
>
>    (55)  0.7580363478
>                                                                   Type:
> Float
>> --
>> Mit freundlichen Grüßen
>>
>> Johannes Grabmeier
>>
>> Prof. Dr. Johannes Grabmeier
>> Köckstraße 1, D-94469 Deggendorf
>> Tel. +49-(0)-991-2979584, Tel. +49-(0)-151-681-70756
>> Tel. +49-(0)-991-3615-141 (d),  Fax: +49-(0)-3224-192688
>
> --
> 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