Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
How about the attached?
Thank you Werner!
Sorry, I marked LucMeekes`s answer as correct because of his level is less than yours, don`t be offended by me 🙂
@ifomenko wrote:
Thank you Werner!
Sorry, I marked LucMeekes`s answer as correct because of his level is less than yours, don`t be offended by me 🙂
Don't worry! Most of us don't care about that level, points, ... 🙂
BTW, the main point is that the symbolic evaluation must be done INSIDE the program. In your trials you evaluated the whole function symbolically which happens automatically if the function is just a one-liner.
That was the reason for my dummy line with the quotes.
As an alternative you can put the symbolic eval in parenthesis like ...:=(t coeffs, x[i -> )
All this won't work in Prime, BTW, as they have broken the possibility to insert symbolic evals inside programmed functions 😞
Luc!
I made some critical changes with your function, it has to return 3x3 matrix.
No problem.
I took it one step further. It now should work for n equations (with n variables) and independent on the setting of ORIGIN.
Success!
Luc
Why there is an error in the first case (rows({Coeffs}) but there is not in the second (rows(scalar))?
That's potentially because {Coeffs} is symbolic, so the numeric processor complains if there it contains any undefined variables.
The numeric processor never complains about 1000.
I don't mind as long as the function functions.
Success!
Luc
I see, many thanks