Error, invalid terms in product - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Error Message Guide : invalidtermsinproduct

Error, invalid terms in product

 

Description

Examples

See Also

Description

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.

Examples

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.

ab

ab

(2.1)

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&semi;

Error, invalid terms in product: O.K

Solution:

Removing the space between print and the left parenthesis corrects this error.

if Az < .25 then printO.K else printN.G end if&semi;

O.K

(2.2)

See Also

arithmetic, binary infix operators in Maple, type