Error, (in ...) expecting ... argument, got ... - Maple Programming Help

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

Error,  (in ...) expecting ... argument, got ...

 Description Maple commands and functions use types, and a specific number or order of arguments. If you do not use the correct type or argument, an error is generated.

Examples

 > $\mathrm{cos}\left(x,y\right);$

Solution 1

Use the type or whattype command to verify the type of argument.

 > $\mathrm{whattype}\left(\mathrm{cos}\right)$
 ${\mathrm{symbol}}$ (2.1)

Solution 2

Use the Describe command or review the related help page to see correct usage. In this case, review the calling sequence for cos in the trig help page.

 > $\mathrm{Describe}\left(\mathrm{cos}\right)$
 cos( x::algebraic )