ABS

Function Type:

ABS will function on integer, real and complex numbers.
Function Purpose:

This intrinsic function will take the argument that is encapsulated in parenthesis and return its absolute value. Note: For complex numbers, the function will return the square root of the sum of the squares of the real and imaginary parts.
Required Arguments:

abs(x)

Where x is either a REAL, INTEGER or COMPLEX argument.

Optional Arguments:

There are none.

Results:

For the following variables:
		real x1
		integer, number
		x1 = 29.0e3
		number = -56
abs(x1) and abs(number) will produce 29.0e3 and 56 respectivly.

For more information and examples see:

lectures seven, and sixteen

examples newton1.f, odeint.f, secant.f

Up one level / Home


Written by Jason Wehr : jcw142@psu.edu and Maintained by John Mahaffy : jhm@cac.psu.edu