Ask Your Question
1

How to see the documentation for a Sage function

asked 11 years ago

JoshIzzard gravatar image

I am looking for the documentation (i.e., the source code) of invariant_degree() in the Weyl Character Rings module. I have looked through that website pretty extensively, but I think I am looking in the wrong place?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 11 years ago

vdelecroix gravatar image

To access the source code you can do

sage: my_object??

In your case

sage: R = WeylCharacterRing(['A',2], prefix="R")
sage: x = R.an_element()
sage: x.invariant_degree??
Preview: (hide)
link

Comments

Note: `x.invariant_degree??` also tells you the path to the file in which the source code is, so you can open that file in your favourite text editor to read it more comfortably and to have a look at the surrounding code.

slelievre gravatar imageslelievre ( 10 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 11 years ago

Seen: 553 times

Last updated: Jun 17 '13