Ask Your Question

Error plotting root systems in Sage

asked 2015-01-06 15:45:41 -0600

guest gravatar image

updated 2015-01-14 04:34:52 -0600

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.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2015-01-06 20:52:22 -0600

kcrisman gravatar image

updated 2015-01-07 07:14:14 -0600

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.


edit flag offensive delete link more


Thank you; I will try updating.

guest gravatar imageguest ( 2015-01-06 22:58:50 -0600 )edit

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 ( 2015-01-07 01:52:17 -0600 )edit

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


Asked: 2015-01-06 15:45:41 -0600

Seen: 22 times

Last updated: Jan 07 '15