Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Matrices as function variables' topicStudent Support Forum > General > "Matrices as function variables"

Next Comment >Help | Reply To Topic
Author Comment/Response
Jason Wright
11/21/00 09:00am

Consider the function p[R_]:=Inverse[R].{x,y,z} where R is a 3x3 matrix . I would like to pass a list of say 12 3x3 matrices, for example the list t={R1,R2,R3,...,R12}, as arguments to p[R_] so that I can get out hopefully in list form the values {p[R1], p[R2],..., p[R12]}.

When I try this though with p[t] Mathematica apparently tries to send each 12x9=108 separate 1-D elements from t into p.

So how can I use 3x3 matrices as arguments of a function? I've tried to SetAttributes[p,Listable] without success.

Thx for your help

URL: ,

Subject (listing for 'Matrices as function variables')
Author Date Posted
Matrices as function variables Jason Wright 11/21/00 09:00am
Re: Matrices as function variables Forum Modera... 11/21/00 09:36am
Next Comment >Help | Reply To Topic