Hello, sorry for my bad English =(
0:
randPoly(2,1 .. 1) * randPoly(3,1 .. 1); [ENTER] => 3 // is not a BUG, is a math engine characteristic ( Dot product )
ANS == DOT([1,1,1,1],[1,1,1])
PATCH TO SOLVE THE UNIVERSAL CONTAINER Ambiguity (BRACKETS) []
symb2poly( poly2symb( randPoly(3,1 .. 1)) * poly2symb( randPoly(2,1 .. 1))); => [1,2,3,3,2,1]
1:
randPoly(3,1 .. 1)+randPoly(2,1 .. 1); => [2,2,2,1] // No bug
PATCH:
symb2poly(poly2symb(randPoly(3,1 .. 1))+poly2symb(randPoly(2,1 .. 1))); => [1,2,2,2]
2:
randPoly(3,1 .. 1)-randPoly(2,1 .. 1); => [0,0,0,1] // => 1*X^0 No bug
PATCH:
symb2poly(poly2symb(randPoly(3,1 .. 1))-poly2symb(randPoly(2,1 .. 1))); => [1,0,0,0] => x^4
What advantage does using a single container, if required extra conversion command?
if the following value, are the result of a conversion from rectangular to polar
[5, 53.1301023542] [5, 36.8698976458]
then, to sum required to convert back to Cartesian =(
rectangular_coordinates([5, 53.1301023542])+rectangular_coordinates([5, 36.8698976458]);
math engine, could evolve and manipulate elements of the form [#, #<_°/r] or impossible and will remain as-is for eternity
Edited: 26 Sept 2013, 9:14 a.m.