Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline mkraska  
#1 Posted : 21 August 2017 00:12:37(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 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?

2017-08-20 22_36_36-SMath Studio 0.98.6398 - [Plugin Maxima Test.sm_].png
Plugin Maxima Test.sm (451kb) downloaded 16 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 21 August 2017 03:38:24(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 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.
Offline Davide Carpi  
#3 Posted : 23 August 2017 13:11:18(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
Location: Italy

Was thanked: 1323 time(s) in 873 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 λ:

2017-08-23 12_09_07-SMath Studio 0.98.6398 - [Documento5_].png

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
Offline mkraska  
#4 Posted : 23 August 2017 13:50:11(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 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).
2017-08-23 12_46_39-SMath Studio 0.98.6398 - [Section matrix operations symbolic.sm].png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Davide Carpi  
#5 Posted : 23 August 2017 14:24:02(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
Location: Italy

Was thanked: 1323 time(s) in 873 post(s)
Originally Posted by: mkraska Go to Quoted Post
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:
2017-08-23 13_17_11-SMath Studio - [Page1_].png


Originally Posted by: mkraska Go to Quoted Post
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
Users browsing this topic
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.