The ** operator is not documented
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
The ** operator can silently work, while it is not documented.
It appears to be equivalent to ^:
--> [2 3] ** 2
ans =
4. 9.
--> 2 ** [2 3]
ans =
4. 8.
--> [2 3] ** [2 3]
at line 62 of function %s_pow ( SCI\modules\overloading\macros\%s_pow.sci line 74 )
at line 3 of function %s_p_s ( SCI\modules\overloading\macros\%s_p_s.sci line 15 )
Not implemented in scilab...
--> b = [1 3 ; 2 4]; b ** 2, b ^ 2
ans =
7. 15.
10. 22.
ans =
7. 15.
10. 22.
--> b ** 2.5
ans =
15.980231 + 0.064362i 34.935032 - 0.0441614i
23.290022 - 0.0294409i 50.915263 + 0.0202006i
--> b ^ 2.5
ans =
15.980231 + 0.064362i 34.935032 - 0.0441614i
23.290022 - 0.0294409i 50.915263 + 0.0202006i
--> function test()
> a ** 2
> endfunction
--> [i,o,t] = string(test); t
t =
" "
"a ^ 2"
" "
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
[2 3] ** 2
2 ** [2 3]
[2 3] ** [2 3]
b = [1 3 ; 2 4]; b ** 2, b ^ 2
b ** 2.5
OTHER INFORMATION:
------------------
1) ** was already available in Scilab 5
2) This could be documented in the symbols page, added to the final warning.