Reputation: 247
I'm trying to use Sageworksheet (as in Sage math cloud) for programming in Sage. If I need immediate help on something; for example, how to find the determinant of a matrix, and I want to get a command for that in sage, how should I find it? And, where should I type the command?
Also, in Sage worksheet, I observed that, after erasing an incorrect code (using the backspace button), the error notice (in red color) that comes with the compilation still remains, I cannot erase that, and even after refreshing the page, and running the empty code, the error code remains. How should I let it go when I don't need it.
Thanks!
Upvotes: 3
Views: 592
Reputation: 1
Numpy has a member function that computes determinants
***define your matrix at Mat****
import numpy as np
determinant=np.det(Mat)
determinant
Upvotes: -1
Reputation: 4402
I would assume that
command?
still gives the documentation, and
command??
gives the source code.
Also, I would imagine that tab-completion, like
de[tab]
should give commands like det
or something. Ipython is still what is used there for such magic, I believe.
Or, if you have defined a matrix M
, then
M.[tab]
would give you all available methods on that matrix, including the determinant.
Upvotes: 5