Re: [Scilab-users] (no subject)

2013-04-25 Thread Zeyu Liu
actually, with bc program in Linux, I get

915106577189 * 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  wrote:

> Hello again
>
> De la part de Renzo Zini
> Envoyé : mercredi 24 avril 2013 15:58
>
> > with the Windows calculator the result is
> >
> > 915106577189,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  =
>
> 915106577188.
>
> -->24/17
>  ans  =
>
> 1.4117647058823530326066
>
> so we can guess that
> 55568095557812224/17 = 915106577189.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@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] bug

2012-12-13 Thread Zeyu Liu
in fact, scilab works with float numbers. so this kind of things always
happen. say,

-->format(25);

-->1-0.9
 ans  =

0.0999777955

and

-->0.1 == 1 - 0.9
 ans  =

  F

you need to remember that this software is not for symbolic algebra system
like maxima or maple


On Wed, Dec 12, 2012 at 2:01 AM, Пилюгин Иван  wrote:

> programm code
> -
> clear
> z=mscanf('%g')
>
> --
>
> Input   7.9
>
> Result  z=7.901
>
>
> -->78.8
>  z  =
>
> 78.83
>
>
>
>
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users