How to get PI based results in Octave?

390 Views Asked by At

In Octave

octave.exe:4> asin(1/2)
ans =  0.52360

is it possible to get the result in form of:

ans = pi/6

It seems not possible with format function, but may be there are any tricks.

1

There are 1 best solutions below

1
On BEST ANSWER

I assume it's the same as with Matlab, where you would do sym(asin(1/2)).