Error, invalid terms in product
Description
Examples
See Also
For users of Maple 15 and earlier versions: This error occurs when one or both of the operands that form the* type arithmetic expression are of a type that is not allowed to be multiplied.
Example 1 In the following example, one of the operands in the arithmetic expression is a string, for arithmetic operations are not allowed.
a ⋅b
Error, invalid terms in product: a
Solution:
Changing the string, a to the variable a, corrects this error.
a⋅b
a⁢b
Example 2
In the following example, a space between print and the left parenthesis implies multiplication between the two, which causes an error.
Az≔.15:
if Az < .25 then print O.K else printN.G end if;
Error, invalid terms in product: O.K
Removing the space between print and the left parenthesis corrects this error.
if Az < .25 then printO.K else printN.G end if;
O.K
arithmetic, binary infix operators in Maple, type
Download Help Document