Ask Your Question
0

symbolic matrix norm

asked 2013-11-07 11:54:05 +0200

gundamlh gravatar image

Matlab has symbolic matrix norm, does Sage also have a command to compute the norm of a symbolic matrix?

Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-11-07 13:51:20 +0200

tmonteil gravatar image

updated 2013-11-07 13:58:11 +0200

It depends on what you call a "symbolic matrix". If M is a matrix with entries in the symbolic ring SR, then M has a method .norm() that computes a norm of M (you can specify which norm as a parameter). However, this method only works when the entries of the matrix can be converted to fixed real or complex numbers (elements of CDF or RDF).

for more details, type:

sage: M.norm?

for the documentation and

sage: M.norm??

for the source code of this method.

Hence, if you want to compute a norm (there are many possibilities) of a matrix with symbolic entries such as cos(x), then you have to write your own function.

edit flag offensive delete link more

Comments

Thanks! I am now pretty sure that I must write my own function.

gundamlh gravatar imagegundamlh ( 2013-11-08 08:24:49 +0200 )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

Stats

Asked: 2013-11-07 11:54:05 +0200

Seen: 1,340 times

Last updated: Nov 07 '13