SMath Studio Forum
»
SMath Studio
»
Questions
»
[Dev] Strange error message from cross product
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,990 Was thanked: 1128 time(s) in 724 post(s)
|
Hi, The expression a*(vectorize(λ* b )†c) displays correctly, if directly written to a math region, also if it is wrapped in Maxima(). Maxima doesn't do a lot here, all is done on the SMath side. However, if it is used in a definition, then SMath complains about wrong arguments for the cross product. How can I avoid this? Plugin Maxima Test.sm (451kb) downloaded 16 time(s). |
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Assuredly, the 1rst expansion is correct in the Smath native vector algebra. It reminds me Tom G. [Mathsoft Collab] reported Mthacad 11 x product was different than in previous Mathcad 2000.
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
As for my point of view, the wrong thing is the result given in (vectorize(λ*a))†b; since λ is unknown (and there fore type of λ), vectorize() it should be hold in the formula until will be defined. Just think if I'd like to use a vector as λ: Edited by user 23 August 2017 13:22:16(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,990 Was thanked: 1128 time(s) in 724 post(s)
|
I think the given symbolic engine of SMath assumes scalars for all variables unless they have a non-skalar value. It would be convenient to have some type declaration objects (along with some symbol decoration), but as long as we don't have them, we can't expect symbolic vector equations to be handled correctly. Section matrix operations symbolic.sm (17kb) downloaded 9 time(s). |
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
Originally Posted by: mkraska I think the given symbolic engine of SMath assumes scalars for all variables unless they have a non-skalar value. Maybe, but here is some side effect of the evaluation operator (=) RHS evaluation logic (just a guess, I have to check it with the debugger). A normal assignments works as I'd expect: Originally Posted by: mkraska It would be convenient to have some type declaration objects (along with some symbol decoration), but as long as we don't have them, we can't expect symbolic vector equations to be handled correctly. I agree with you, maybe a dedicated multiplication operator for matrices (standard multiplication = 1 or both the arguments are assumed as scalars; matrix multiplication = both the arguments are matrices/vectors). |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
[Dev] Strange error message from cross product
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.