Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6554
| From | Chris Young <cy56@comcast.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Matrices as operators |
| Date | 2011-11-20 10:34 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jaal4e$12d$1@smc.vnet.net> (permalink) |
I'd like to be able to abbreviate matrices such as rotation matrices so
that I don't have to repeat the argument. This way I can pass in more
complicated arguments and it also shows the structure of the
transformation more clearly.
Through[( {
{Cos, -Sin},
{Sin, Cos}
} )[θ]]
will get me partway there:
Out: {{Cos, -Sin}[θ], {Sin, Cos}[θ]}
I have to apply Thread and Through again to finally get what I want:
In: Thread[Through[{{Cos, -Sin}[θ], {Sin, Cos}[θ]}]]
Out: {{Cos[θ], (-Sin)[θ]}, {Sin[θ], Cos[θ]}}
Is there a shortcut way to do this all in one step?
Thanks very much for any help.
Chris Young
cy56@comcast.net
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
Matrices as operators Chris Young <cy56@comcast.net> - 2011-11-20 10:34 +0000
Re: Matrices as operators Simon <simonjtyler@gmail.com> - 2011-11-21 09:29 +0000
Re: Matrices as operators Ray Koopman <koopman@sfu.ca> - 2011-11-22 10:39 +0000
Re: Matrices as operators Chris Young <cy56@comcast.net> - 2011-11-25 09:54 +0000
Re: Matrices as operators Ray Koopman <koopman@sfu.ca> - 2011-11-26 10:12 +0000
Re: Matrices as operators Chris Young <cy56@comcast.net> - 2011-11-27 09:13 +0000
csiph-web