Error, (in ...) expecting ... argument, got ...
Description
Examples
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.
cosx,y;
Error, (in cos) expecting 1 argument, got 2
Solution 1
Use the type or whattype command to verify the type of argument.
whattype⁡cos
symbol
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.
Describecos
cos( x::algebraic )
See Also
Describe
type
whattype
Download Help Document