Re: [Scilab-users] Strange behaviour of prod on rationals

2020-07-24 Thread Samuel Gougeon
Le 24/07/2020 à 13:11, Samuel Gougeon a écrit : .../... How to apply any absolute tolerance is quite clear (although unsafe). IMHO the absolute tolerance must be set to 0 (so not keeping the default one set to 1e-10), for the reason given hereabove. I meant, in %r_simp(). In %r_clean(),

Re: [Scilab-users] Strange behaviour of prod on rationals

2020-07-24 Thread Samuel Gougeon
Le 20/03/2020 à 14:42, Stéphane Mottelet a écrit : (num,den) calling style seems to be OK: --> [a,b]=simp(prod(q.num),prod(q.den))  a  =     2    3    4    3.432D-17 +1.230D-16s +3.079D-16s  +5.709D-17s  +3.432D-17s  b  =

Re: [Scilab-users] Strange behaviour of prod on rationals

2020-03-21 Thread Federico Miyara
Stéphane, In the meantime, a workaround is to toggle simplification off: simp_mode(%f). This inhibits simplification. Regards, Federico Miyara On 20/03/2020 10:42, Stéphane Mottelet wrote: (num,den) calling style seems to be OK: --> [a,b]=simp(prod(q.num),prod(q.den))  a  =    

Re: [Scilab-users] Strange behaviour of prod on rationals

2020-03-20 Thread Stéphane Mottelet
(num,den) calling style seems to be OK: --> [a,b]=simp(prod(q.num),prod(q.den))  a  =     2    3    4    3.432D-17 +1.230D-16s +3.079D-16s  +5.709D-17s  +3.432D-17s  b  =     2    3   4    1.004

Re: [Scilab-users] Strange behaviour of prod on rationals

2020-03-20 Thread Stéphane Mottelet
Hello Frederico, The problem is in simp() : ---> rlist(prod(a.num),prod(a.den),a.dt)  ans  =   2    3    4    3.432D-17 + 1.230D-16s + 3.079D-16s + 5.709D-17s + 3.432D-17s    --  

Re: [Scilab-users] Strange behaviour of prod on rationals

2020-03-17 Thread Federico Miyara
* Federico Miyara *Envoyé :* mardi 17 mars 2020 10:31 *À :* Users mailing list for Scilab *Objet :* [Scilab-users] Strange behaviour of prod on rationals Dear all, Look at this code (the coefficients are actually the result of pevious calculations): NUM = [5.858D-09 + 2.011D-08*%s + 4.884D

Re: [Scilab-users] Strange behaviour of prod on rationals

2020-03-17 Thread Perrichon
Here are examples of my process in Open loop (FTBO) or Close loop (FTBF) Depending of managemat, D can have s14 … De : Perrichon Envoyé : mardi 17 mars 2020 10:49 À : 'Users mailing list for Scilab' Objet : RE: [Scilab-users] Strange behaviour of prod on rationals Hello

Re: [Scilab-users] Strange behaviour of prod on rationals

2020-03-17 Thread Perrichon
Objet : [Scilab-users] Strange behaviour of prod on rationals Dear all, Look at this code (the coefficients are actually the result of pevious calculations): NUM = [5.858D-09 + 2.011D-08*%s + 4.884D-08*%s^2 ... 5.858D-09 + 8.796D-10*%s + 7.028D-10*%s^2] DEN = [0.1199597 + 7.2765093

[Scilab-users] Strange behaviour of prod on rationals

2020-03-17 Thread Federico Miyara
Dear all, Look at this code (the coefficients are actually the result of pevious calculations): NUM = [5.858D-09 + 2.011D-08*%s + 4.884D-08*%s^2 ... 5.858D-09 + 8.796D-10*%s + 7.028D-10*%s^2] DEN = [0.1199597 + 7.2765093*%s + %s^2 ...    8.336136 + 7.0282601*%s + %s^2] q = NUM./DEN