Timeline for Matrices and polynomials: MMA 8 vs. 9?
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 20, 2013 at 18:45 | comment | added | nardol5 | Also, I think my institution is upgrading their MMA license to 9 in a few days, so I won't be able to take advantage of the difference in 8 anymore. | |
Jul 20, 2013 at 18:42 | comment | added | nardol5 | @bills I guess that's what I need to do. This is actually part of a larger program I was writing for a research project. I was just trying to make my code as compact as possible. | |
Jul 20, 2013 at 16:15 | comment | added | bill s | Why not build up your answer from the pieces you have, rather than trying to solve a single large problem all at once? | |
Jul 20, 2013 at 15:47 | comment | added | nardol5 |
@bills The output I'm getting includes several hundred Root expressions, with several polynomials in x thrown in for good measure. I tried placing N[ ] in my program inside the Print command, in several different ways. It did not lead to any understandable output either.
|
|
Jul 20, 2013 at 9:18 | comment | added | sebhofer |
@nardol5 I'm not quite sure what you are doing then because it gives me 13.1578
|
|
Jul 20, 2013 at 3:28 | comment | added | nardol5 |
@bills Applying N[] does not change the expression.
|
|
Jul 20, 2013 at 3:22 | comment | added | bill s |
That's the symbolic form. Put N[ ] around it to see a numerical version.
|
|
Jul 20, 2013 at 3:12 | comment | added | nardol5 |
@sebhofer Your suggestion works for individual cases, but in my program it produces a long list of expressions similar to: Root[-1-2#1-3#1^2+#1^3 &, 1]^2 . I'm not really sure what's going on (being new to programming in MMA) but I might be able to make Function work for me somehow.
|
|
Jul 20, 2013 at 0:21 | comment | added | sebhofer | @nardol5 The error message says it all... Try MatrixFunction[Function[x, R[[1]]], T] | |
Jul 19, 2013 at 23:44 | history | edited | Mr.Wizard | CC BY-SA 3.0 |
added 68 characters in body
|
Jul 19, 2013 at 18:52 | comment | added | nardol5 |
MatrixFunction::nunipf: -1-2 x-3 x^2+x^3 is not a univariate pure function. I suspect that MatrixFunction has issues with list elements, but I don't see how I can avoid using a list in my program. @bill s
|
|
Jul 19, 2013 at 18:44 | comment | added | nardol5 |
Unfortunately, when I replace applyPoly[r[x], x, T] with MatrixFunction[r[x],T] in the code above, it returns:
|
|
Jul 19, 2013 at 17:43 | history | answered | bill s | CC BY-SA 3.0 |