Dear Sage community,

Is there a possibility/workaround in Sage to compute the element-wise
multiplication of two matrices? In Matlab there's the .* operator, but
Matlab is useless in my case since I need a symbolic result.

Thanks in advance for every help
Regards,
Lukas

EXAMPLE:

sigma, tau, beta = var('sigma tau beta')
A = matrix([[-1/tau, sigma/tau],[sigma/tau, -1/tau]])
B = matrix([[beta/tau, 0],[0, beta/tau]])
C = matrix([[1,0],[0,1]])
D = matrix([[0,0],[0,0]])
I = identity_matrix(2)
s, t = var('s t')
P = C*(s*I-A)^(-1)*B+D
P = P.simplify_rational()

RGA = P .* P.inverse().transpose()


--~--~---------~--~----~------------~-------~--~----~
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