Skip to main content

Number of arguments

This function may not behave as expected. Internally, all the expressions are implemented as combinations of elementary operations. Thus, the operation 'sum' has two arguments. For instance, summing a+b has two arguments (a and b), but sin(x)+y*z has also two arguments: sin(x) and y*z.

Syntax

number_of_arguments(Expression)

Description

Given an expression, returns its number of arguments.

calc.number_of_arguments.calc.png