abs

abs(a: number) 🡒 number, const autodiff pure function

Returns the absolute value of a number.

Example:

x = -5
y = abs(x)
show scalar "" with y

Similar to the ABS function in Excel.

User Contributed Notes
0 notes + add a note