[Scilab-users] isreal question
    kjubo 
    kopac.jakub at gmail.com
       
    Fri Mar  6 19:31:15 CET 2020
    
    
  
Dear all,
consider this code:
==start of code
clc
clear
a3 =  1
a2 = -1
a1 =  0.106865
a0 = -0.002212
mode(0)
sol = roots([a3 a2 a1 a0])
isreal(sol(1))
isreal(sol(2))
isreal(sol(3))
==end of code
i get this print in console:
  sol  = 
   0.8816333  
   0.0907062  
   0.0276605  
 ans  =
  F
 ans  =
  F
 ans  =
  F
I do not understand, why the isreal return false flag, if all roots are real
with no imaginary part.
I am missing something? Or it is bug?
using Scilab 6.0.2 x64
thank you
BR
J.K.
--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
    
    
More information about the users
mailing list