Skip to content
Property Value
Hex Value $1B
Categories
Localizations
  • FR: R►Pr(

R►Pr(

Overview

Returns R, given rectangular coordinates x and y or a list of rectangular coordinates.

Availability: Token available everywhere.

Syntax

R►Pr(x,y)

Arguments

NameTypeOptional
x
y

Location

2nd, angle, ANGLE, 5:R, Pr(


Description

R►Pr( (Rectangular to polar radius) takes the (x,y) (Cartesian) coordinates, and gives the radius coordinate r of the same point in (r,θ) (polar) mode. The identity used for this conversion is _r_² = _x_²+_y_²

R►Pr(3,4)
    5
√(3²+4²)
    5
R►Pr({6,5},{8,12})
    {10 13}

The function works even when the equivalent √(_x_²+_y_²) fails due to overflow:

R►Pr(3e99,4e99)
    5e99

Optimization

R►Pr( is the smallest way to implement the distance formula \(d=\sqrt{(x_1-x_2)^2+(y_1-y_2)^2}\). Just give the values x1-x2 and y1 - y2 as arguments:

:√((5-2)²+(4-0)²)
can be
:R►Pr(5-2,4-0)

Error Conditions


Source: parts of this page were written by the following TI|BD contributors: burr, DarkerLine, GoVegan, Myles_Zadok, thornahawk, Timothy Foster.

History

Calculator OS Version Description
TI-82 1.0 Added
Authors: Adrien Bertrand