This content has been marked as final.
Show 2 replies

Solve Block Fails with Integral of VectorMatrix
ptc2179264 Mar 18, 2004 12:00 AM (in response to TomGutman)Thanks, Tom. I now see the dot between exp and the matrix; I certainly didn't intend a multiplication there. Also, it's bad news that Mathcad's exp function cannot operate on matrices. But the worst news is that Mathcad cannot integrate vectors!
Regards,
Ronald W. Satz
transpower@aol.com 
Solve Block Fails with Integral of VectorMatrix
TomGutman Mar 18, 2004 12:00 AM (in response to ptc2179264)t is not defined. A constraint is not a definition.
Your other problem is that Mathcad does not do the sort of matrix calculations that you are asking for. The exp function cannot be applied to a matrix. And in your actual sheet, you are not even attempting to do so  if you look at the actual expression you will find that you have an implicit multiplication there, so you are multiplying exp by a matrix. That doesn't work as functions cannot be used arithmetically. The parenthesis that are used to denote arrays cannot also denote function application. You need separate parentheses for that. Not that it matters in this case, as the exponential of a matrix is not built into Mathcad, and you would have to define it separately (I've posted a worksheet that shows how to do that at http://collab.mathsoft.com/read?40727,11
).
However, even that will not solve your problems, as Mathcad does not integrate vectors. Only scalars. You must either reduce the problem to a set of scalar integrals or write your own integration routines.
Before you use an expression in a constraint in a solve block, you should make sure that it evaluates properly outside the solve block.
Tom Gutman