Hi Joal!

On 19 Jan., 14:24, ancienthart <[email protected]> wrote:
> Attempting to use this on my matrix, I end up with the following results (D
> is my matrix):
>
> D.apply_map(simplify_full)

simplify_full is not a function defined in the Sage name space.
Instead, simplify_full is a *method* of symbolic stuff.

So, you should create a function that calls the method, e.g. using
Python's lambda syntax:

sage: M = matrix([[sin(x),cos(x)],[-cos(x),sin(x)]])
sage: E = M*M.transpose()
sage: E
[sin(x)^2 + cos(x)^2                   0]
[                  0 sin(x)^2 + cos(x)^2]
sage: E.apply_map(lambda x: x.simplify_full())
[1 0]
[0 1]

Best regards,
Simon

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to