[Scilab-users] Rounding error or precision setting?
Lester Anderson
arctica1963 at gmail.com
Wed Feb 19 15:15:51 CET 2014
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
-->y=%e^(%i*%pi)
y =
- 1. + 1.225D-16i
The real part is fine, but the complex has a measured value (approaching
zero). Is there a way to tell Scilab if this gets beyond a limit to round
off at zero say?
Sure this is an easy one!
Cheers
Lester
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140219/3b59f2da/attachment.htm>
More information about the users
mailing list