MATLAB: Numbers as multiply of pi

displaymathematicsMATLABmatlab functionsymsymbolicSymbolic Math Toolbox

Hi, does anyone know how to tell Matlab it should show a number as a multiply of pi?
Example: atan(sqrt(3)/1) = 1.0472 but I want to see it as pi/3
Thx for the help guys.

Best Answer

atan(sqrt(sym(3))/1)
ans =