Operations between 2 polynomials with distinct variables no longer call the corresponding overloads (Regression)
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
In Scilab 5.5, overloads are called as expected:
--------------
-->%s + %z^2
!--error 144
Undefined operation for the given operands.
check or define function %p_a_p for overloading.
-->%s - %z^2
!--error 144
Undefined operation for the given operands.
check or define function %p_s_p for overloading.
-->%s * %z^2
!--error 144
Undefined operation for the given operands.
check or define function %p_m_p for overloading.
-->%s / %z^2
!--error 43
Not implemented in scilab...
at line 10 of function %p_r_p called by :
%s / %z^2
In Scilab 6.0, it is no longer the case, and the behaviors are inconsistent and wrong:
--------------
--> %s + %z^2
variables don't have the same formal variable >>>>>>>>>>>> %p_a_p should be called instead
--> %s - %z^2
ans =
2
z -z >>>>>> an error saying that %p_s_p must be defined should be yielded instead
--> %s * %z^2
ans =
3
s >>>>>> an error saying that %p_m_p must be defined should be yielded instead
--> %s / %z^2
at line 10 of function %p_d_p ( SCI\modules\polynomials\macros\%p_d_p.sci line 22 )
at line 10 of function %p_r_p ( SCI\modules\polynomials\macros\%p_r_p.sci line 23 )
simp: Wrong value for input argument #2: A polynomial 's' expected.
>>>>>> an error saying that %p_r_p must be defined should be yielded instead
Theses bugs prevent defining multivariate operations as requested as bug 6010.
ERROR LOG:
----------
See above
HOW TO REPRODUCE THE BUG:
-------------------------
%s + %z
%s - %z
%s * %z
%s / %z
OTHER INFORMATION:
------------------
See also the bug 15740