O'Reilly logo

JMP 11 JSL Syntax Reference, Second Edition, 2nd Edition by SAS Institute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Arithmetic Functions
Here are the six essential arithmetic operators and their function equivalents. You can add numbers, matrices, and variables that contain either. Each operator has two forms: an operator (for example, +) and a functional equivalent (for example, Add()).
Add(a, b, ...)
a+b+...
Description
Adds the values of the listed arguments. No arguments are changed.
Returns
The sum.
Arguments
For Add(), a comma-separated list of variables, numbers, or matrices.
For a+b, any number of variables, numbers, or matrices.
Notes
Any number of arguments is permitted. If no argument is specified, Add() returns 0.
See Also
The Data Structures chapter in the Scripting Guide.
Divide(a, b)
Divide(x)
a/b
Description
Divides a by b. If only one argument ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required