Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

ABS returns an absolute value of a numerical expression.

Syntax

ABS(NumExp)

Arguments

  • NumExp is a numerical expression 

...

  1. The absolute value of NumExp indicates its magnitude without regard to its sign.

Examples

ABS(a)

returns3 whether a has value 3 or -3.

...

Our topgoal AbsoluteNumExp is given by the relation

AbsoluteNumExp = ABS(NumExp)

Solution

For example, when putting A=-2 and B=-3 as input, the solution becomes

...