You are here

Example 2.5

8 October, 2015 - 17:29

Calculate \theta =\textrm{tan}\left ( \frac{\pi }{3} \right ) and display results in short and long formats.

The short format is set by default:

    » theta=tan(pi/3)
theta =
    1.7321
»

And the long format is turned on by typing format long:

    » theta=tan(pi/3)
theta =
    1.7321
» format long
» theta

theta =

    1.732050807568877