subtractScalar#
Subtract one scalar from another.
Available in: math cells, REPL.
Syntax#
subtractScalar(x, y)
Arguments and behavior#
Scalar-only arithmetic helper. For normal calculations use the corresponding operator; arrays require the general or element-wise function.
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
subtractScalar(5,2)Interactive examples could not load. You can still copy the expressions.
Expected result: 3.