Ask Your Question

Revision history [back]

Starting Octave just to get a numerical value of pi is unnecessarily slow.

If you need a floating-point approximation to pi, I would suggest:

sage: pi = RDF.pi()
sage: pi
3.141592653589793

But maybe you have other reasons to use Octave?