expecting argument got - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Error Message Guide : expecting argument got

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

 

Description

Examples

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

cosx,y;

Error, (in cos) expecting 1 argument, got 2

Solution 1

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

whattypecos

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.

Describecos


cos( x::algebraic )

See Also

Describe

type

whattype