Hi<br><br>I would be interested knowing why Scilab (version beta 5.2) and Matlab (7.6.0) do not provide the same results for a '1/x' calculation (with x being a matrix of real numbers), and how to reproduce the results of Matlab in Scilab for this particular case.<br>
<br>Thank you<br><br>Sebastien<br><br>%%%%%%Matlab<br><br>>> X=1:5<br><br>X =<br><br> 1 2 3 4 5<br><br>>> 1./X<br><br>ans =<br><br> 1.0000 0.5000 0.3333 0.2500 0.2000<br><br>
<br>/////////////// Scilab<br><br>-->X=1:5<br> X =<br> <br> 1. 2. 3. 4. 5. <br> <br>-->1./X<br> ans =<br> <br> 0.0181818 <br> 0.0363636 <br> 0.0545455 <br> 0.0727273 <br> 0.0909091<br>