On Sun, Aug 24, 2008 at 12:20 AM, Ryan <[EMAIL PROTECTED]> wrote: > > I have the symbolic complex matrix: > > M=matrix([[1/((-1)^(1/4)*(I - 1)), (1 - I)*I/((-1)^(1/4)*(-1*I-1)*(I - > 1))],[1/((-1)^(1/4)*(I - 1)),I/((-1)^(1/4)*(-1*I - 1))]]) > > This matrix should simplify to a real matrix with all entries plus or > minus 1/sqrt(2), however when I use > > M.simplify()
What about sage: M.apply_map(real) [-1/sqrt(2) 1/sqrt(2)] [-1/sqrt(2) -1/sqrt(2)] sage: M.apply_map(imag) [0 0] [0 0] Does that help any? > > it doesn't simplify much at all. Any thoughts? My temporary solution > has been to change the base ring to CDF, but this results in some > small imaginary parts in the entries due to roundoff error which is > also undesirable. > > Thanks. > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---