Ask Your Question
0

Error plotting root systems in Sage

asked 2015-01-06 22:45:41 +0100

guest gravatar image

updated 2015-01-14 11:34:52 +0100

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
1

answered 2015-01-07 03:52:22 +0100

kcrisman gravatar image

updated 2015-01-07 14:14:14 +0100

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

edit flag offensive delete link more

Comments

Thank you; I will try updating.

guest gravatar imageguest ( 2015-01-07 05:58:50 +0100 )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 08:52:17 +0100 )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

Stats

Asked: 2015-01-06 22:45:41 +0100

Seen: 256 times

Last updated: Jan 07 '15