If I try to type for example factor?
in sage console It yields very detailed output with documentation based on dosctrings. But if I try to find factor
in html\pdf docs (offline and online) there is no such search results.
So two questions:
- How to get that complete docsrting help from outside sage console?
- Why they are different?
Signature:
factor(n, proof=None, int_=False, algorithm='pari', verbose=0, **kwds)
Docstring: Returns the factorization of "n". The result depends on the type of "n".
If "n" is an integer, returns the factorization as an object of type "Factorization".
If n is not an integer, "n.factor(proof=proof, **kwds)" gets
called. See "n.factor??" for more documentation in this case.Warning: This means that applying "factor" to an integer result of a symbolic computation will not factor the integer, because it is considered as an element of a larger symbolic ring.EXAMPLES:
sage: f(n)=n^2 sage: is_prime(f(3)) False sage: factor(f(3)) 9 ...