On Thu, Dec 18, 2008 at 12:24 AM, Jan Groenewald <j...@aims.ac.za> wrote:
>
> Hi
>
> On Thu, Dec 18, 2008 at 08:40:37AM +0200, Jan Groenewald wrote:
>> In this worksheet:
>> http://users.aims.ac.za/~jan/type_of_variable.sws
>> The type of a symbolic variable multiplied by a
>> rational matrix does not return a rational matrix,
>> but a sage.modules.free_module_element.FreeModuleElement_generic_dense,
>> interfering with further calculations. A strange workaround
>> is to mutiply by an identify matrix. (This exercise is intended
>> for students to do some brute force experimentation and investigation,
>> which becomes slow at higher dimensions.)
>> Is this a bug or intended?

I doubt anybody is planning to answer your email so far, since it is
too challenging to figure out what you're asking.  It might be better
also to paste some code into your email message showing a little Sage
session and asking a question about it.  For example, are you possibly
complaining that the data type in the output of the last line below is
Matrix_symbolic_dense?

sage: A=matrix([[1,2],[2,1]]);A
[1 2]
[2 1]
sage: t = var('t')
sage: A*t
[  t 2*t]
[2*t   t]
sage: type(A*t)
<type 'sage.matrix.matrix_symbolic_dense.Matrix_symbolic_dense'>

 -- William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to