Functions

xcoord

Supported By

Syntax

the xcoord of ( expression , expression )

xcoord ( expression , expression )

Expression yields an integer or a number.

Description

The xcoord function returns the x coordinate of the specified polar coordinates. The first argument is the distance from the origin and the second argument is the angle from the positive x-axis in radians.

The formula for the xcoord function is:

xcoord(r, th) = r*cos(th)

The xcoord function is faster and more accurate than using the above formula.

See Also

ycoord, radius, theta