## Description

Here is an example of a simple Sage interact. In order to convert radians to degrees we multiply the radians by $\dfrac{180}{\pi}$. The Sage cell below shows the degrees of $\pi$ radians.

## Sage Cell

#### Code

@interact
pretty_print(html(r"$radians = %s$" %radians))
pretty_print(html(r"$degrees = %s$" %degrees))


## Options

#### Option

In order to convert degrees to radians we multiply the degrees by $\dfrac{\pi}{180}$. The Sage cell below shows the radians of $180$ degrees.

#### Code

@interact
def _(degrees = input_box(default= 180)):
pretty_print(html(r"$degrees = %s$" %degrees))
pretty_print(html(r"$radians = %s$" %radians))


## Tags

Primary Tags—Precalculus: Geometric and algebraic foundations for trigonometry; Programming: Python

Secondary Tags—Geometric and algebraic foundations for trigonometry: Radians, converting radians & degrees; Python: interacts

None