[Scilab-users] (no subject)

Zeyu Liu liuzeyu271828 at gmail.com
Thu Apr 25 14:36:40 CEST 2013


actually, with bc program in Linux, I get

9151064444577189 * 17 = 155568095557812213

and obvious this precise. and with scilab, I get

-->format (25);

-->11 / 17
 ans  =

    0.6470588235294117973595

so the windows calculator is correct.


On Thu, Apr 25, 2013 at 3:49 PM, Dang, Christophe <Christophe.Dang at sidel.com
> wrote:

> Hello again
>
> De la part de Renzo Zini
> Envoyé : mercredi 24 avril 2013 15:58
>
> > with the Windows calculator the result is
> >
> > 9151064444577189,6470588235294118
>
> another point is: does the Windows calculator compute the right value?
>
> You can have a greater precision by performing two divisions:
>
> (a + b)/c = a/c + b/c
>
> each having no underflow.
>
> then :
> 55568095557812224 = 55568095557812200 + 24
>
> -->155568095557812200/17
>  ans  =
>
>     9151064444577188.
>
> -->24/17
>  ans  =
>
>     1.4117647058823530326066
>
> so we can guess that
> 55568095557812224/17 = 9151064444577189.4117647...
>
> so the Windows calculator gives a result, but it is false at the first
> decimal...
>
> Now: do you really need to have a precision of more than 16 digits?
>
> This might be the case, especially if the error propagates.
>
> In my field, I'm usually happy with 4 digits ;-)
>
> --
> Christophe Dang Ngoc Chan
> Mechanical calculation engineer
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error),
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20130425/2476d0e4/attachment.htm>


More information about the users mailing list