Rank: Member Groups: Registered
Joined: 12/03/2019(UTC) Posts: 19 Was thanked: 1 time(s) in 1 post(s)
|
Hi, I starting with smath and still try easy examples. Is found the results of at() to be inconstistent, but it may be an bad understandig. Could someone review my appended file? Many thanks, Johannes Bug in at.sm (21kb) downloaded 16 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
It is by design. If you give multiple replacement rules for the same variable ( x=a then x=b ) only the first is used (tbf there's no filter on how many times you can enter the same variable name on the LHS, thus the function tries even to evaluate x in b, but x doesn't exists anymore since is already evaluated in a) Edited by user 12 March 2019 13:13:34(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: Member Groups: Registered
Joined: 12/03/2019(UTC) Posts: 19 Was thanked: 1 time(s) in 1 post(s)
|
But why is it different for the two definitions of L?
Or does it look equal for you? (Than it may only occur for me.)
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
Sorry, I'm on a linux machine right now and I missed a part of the document, my comment was about the first yellow region without maxima. |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Member Groups: Registered
Joined: 12/03/2019(UTC) Posts: 19 Was thanked: 1 time(s) in 1 post(s)
|
Here comes an image. This may show up differences with smath or maxima versions.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,986 Was thanked: 1124 time(s) in 721 post(s)
|
L is differently defined in the two versions (use the dynamic assistant by mouse hovering over the definitions to see the difference)
in the second case, L isnt't stored in evaluated shape, thus vectorize() doesn't recognise the expression as vector and executes the expression only once. |
|
|
|
|
Rank: Member Groups: Registered
Joined: 12/03/2019(UTC) Posts: 19 Was thanked: 1 time(s) in 1 post(s)
|
OK. I see. But how can i get L stored in evaluated shape? In your example: MK example.png (8,957kb) downloaded 14 time(s).it works nice. If i try the same it does not. Did i miss an configuration?
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Johannes it does not. Did i miss an configuration? ... plot first, solve(,,,,) native Smath.
|
|
|
|
Rank: Member Groups: Registered
Joined: 12/03/2019(UTC) Posts: 19 Was thanked: 1 time(s) in 1 post(s)
|
This is the numerical solution. My question is about assignin symbolic results. In the example you see mkraska using L:=Solve(,), and assigning the results. In my try, you see the result is not assigned as expected, last line shows x.1= x=result but it should be x.1=result.
|
|
|
|
Rank: Member Groups: Registered
Joined: 12/03/2019(UTC) Posts: 19 Was thanked: 1 time(s) in 1 post(s)
|
I found the difference between Program Versions. I tried V0.99.6884 and all works as expected. L is now assigned identically for both definitions. The bug may be not located in at().
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,986 Was thanked: 1124 time(s) in 721 post(s)
|
It seems that the evaluation logic in the plug-in interface has changed. The function Solve() indeed shows a different behaviour (not evaluated/simplified when used in definitions, as if it was behind a line operator) Other functions like int() don't seem to be affected by the problem. Blatt39.sm (7kb) downloaded 14 time(s). |
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Johannes This is the numerical solution. My question is about assignin symbolic results. In the example you see mkraska using L:=Solve(,), and assigning the results. In my try, you see the result is not assigned as expected, Users keep complaining about Maxima from SS versions/versions. Maple/Smath are more stable companions.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,986 Was thanked: 1124 time(s) in 721 post(s)
|
Originally Posted by: Jean Giraud Users keep complaining about Maxima from SS versions/versions. Maple/Smath are more stable companions.
Jean, I know that many users don't care, but once you vote for maple, can you tell me under what license it is distributed? Is it legally safe to use it in public service like university? Can it be recommended under the light of respect for IP? |
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: mkraska Jean, I know that many users don't care, but once you vote for maple, can you tell me under what license it is distributed? Is it legally safe to use it in public service like university? Can it be recommended under the light of respect for IP? Martin, you have several specific questions that only Andrey can answer. Maxima was formerly MacSyma, originally piloted by the MIT, conjointly MIT/University of Toronto. MIT pedaled too long in butter, so that this branch of research founded itself "Maple Waterloo". Most of the stuff was borrowed from book. My understanding is that: part of Maple is courtesy to Smath whereas Smath is freeware. Viacheslav is the guru Maple/Smath, is it ? Probably same as the Matlab "mwXXX" ... odesolvers ... etc. Jean
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Hi. The line statement seems to correct all issues, except the vectorization one. Best regards. Alvaro.
|
|
|
|
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.