Thanks for the pointer - knew it was a simple one!
Cheers
On 19 February 2014 14:25, Dang, Christophe wrote:
> Hello,
>
> > De la part de Lester Anderson
> > Envoyé : mercredi 19 février 2014 15:16
> >
> > Is there a way to tell Scilab if this gets beyond a limit to round off
> > at zero say?
>
Hello,
> De la part de Lester Anderson
> Envoyé : mercredi 19 février 2014 15:16
>
> Is there a way to tell Scilab if this gets beyond a limit to round off
> at zero say?
Maybe format() or clean() ?
http://help.scilab.org/docs/5.4.1/en_US/format.html
http://help.scilab.org/docs/5.4.1/en_US/clean
Hi
The function *clean *does that:
clean(cos(%pi)+%i*sin(%pi))
Note that the limited precision of floating point numbers is a general
issue in computer science.
http://en.wikipedia.org/wiki/Floating_point#Representable_numbers.2C_conversion_and_rounding
You should be aware of that for ins
Hello,
Just a quick query. Not been using Scilab for a while, so maybe I have
missed something, but is there a built-in precision setting for working
with real and imaginary functions?
Tried the Euler formula (special case) in Scilab 5.4.1:
-->x=cos(%pi)+(%i*sin(%pi))
x =
- 1. + 1.225D-16i