First time here? Check out the FAQ!

Ask Your Question
0

Error plotting root systems in Sage

asked 10 years ago

guest gravatar image

updated 10 years ago

FrédéricC gravatar image

I am trying to use the Sage package for root systems, but it keeps returning an error. Here is what I am trying to do in the Notebook of Sage 5.7: I enter exactly the following lines from the tutorial for visualizing root systems

sage: L = RootSystem(["A",2]).ambient_space()

sage: L.plot()

The output I get is a traceback ending in 'unsupported operand parent(s) for '*': Full matrix Space of 2 by 2 dense matrices over real field with 53 bits of precision and vector space of dimension 3 over rational field'

I do not understand what I am doing wrong and what this message means. I am a newcomer to sage and all I want is to print a root system with some weights added for illustration purposes. I would appreciate any pointers.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 10 years ago

kcrisman gravatar image

updated 10 years ago

This command works fine in Sage 6.2; see below. I can confirm that this does not work in Sage 5.2, apparently due to multiplying a matrix and a vector of incompatible sizes. Anyway, you are probably looking at the latest documentation but using an older version of Sage which didn't support that; luckily, upgrading is usually not too hard.

Picture

Preview: (hide)
link

Comments

Thank you; I will try updating.

guest gravatar imageguest ( 10 years ago )

I accepted your answer; I am not sure why it does not appear as accepted. I am having some trouble navigating this site, for instance I clicked this comment box a minute ago and my browser crashed :(

guest gravatar imageguest ( 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

1 follower

Stats

Asked: 10 years ago

Seen: 305 times

Last updated: Jan 07 '15