Ask Your Question
1

Matrix-valued functions

asked 2012-10-24 08:50:16 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I'm looking for a good way to define matrix valued functions.

A function defined as (x1,x2...xn) -----> M(x1,x2....xn), where M is a mxm matrix.

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-10-24 11:55:20 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Why not this way?

sage: def f(x,y):
....:     return matrix([[x,y],[x^2,y^2]])
....: 
sage: f(1,2)
[1 2]
[1 4]
edit flag offensive delete link more

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: 2012-10-24 08:50:16 +0100

Seen: 1,423 times

Last updated: Oct 24 '12