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 Jopi  
#1 Posted : 12 March 2019 12:54:06(UTC)
Jopi


Rank: Member

Groups: Registered
Joined: 12/03/2019(UTC)
Posts: 19
Germany

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).

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

Offline Davide Carpi  
#2 Posted : 12 March 2019 13:08:03(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
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
Offline Jopi  
#3 Posted : 12 March 2019 13:12:20(UTC)
Jopi


Rank: Member

Groups: Registered
Joined: 12/03/2019(UTC)
Posts: 19
Germany

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.)
Offline Davide Carpi  
#4 Posted : 12 March 2019 13:23:08(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
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. Confusion
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jopi  
#5 Posted : 12 March 2019 14:35:59(UTC)
Jopi


Rank: Member

Groups: Registered
Joined: 12/03/2019(UTC)
Posts: 19
Germany

Was thanked: 1 time(s) in 1 post(s)
Here comes an image. This may show up differences with smath or maxima versions.
Bug in at.png
Offline mkraska  
#6 Posted : 12 March 2019 14:51:00(UTC)
mkraska


Rank: Advanced Member

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

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.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Jopi  
#7 Posted : 12 March 2019 15:24:44(UTC)
Jopi


Rank: Member

Groups: Registered
Joined: 12/03/2019(UTC)
Posts: 19
Germany

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

Bug in at II.png

it does not. Did i miss an configuration?
Offline Jean Giraud  
#8 Posted : 12 March 2019 16:19:30(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Johannes Go to Quoted Post
it does not. Did i miss an configuration?

... plot first, solve(,,,,) native Smath.

Plot1rst.PNG

Offline Jopi  
#9 Posted : 12 March 2019 16:35:02(UTC)
Jopi


Rank: Member

Groups: Registered
Joined: 12/03/2019(UTC)
Posts: 19
Germany

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.
Offline Jopi  
#10 Posted : 12 March 2019 17:40:18(UTC)
Jopi


Rank: Member

Groups: Registered
Joined: 12/03/2019(UTC)
Posts: 19
Germany

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().

Bug in at V6884.png
Offline mkraska  
#11 Posted : 12 March 2019 18:21:16(UTC)
mkraska


Rank: Advanced Member

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

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.png
Blatt39.sm (7kb) downloaded 14 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Jean Giraud  
#12 Posted : 12 March 2019 22:53:29(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Johannes Go to Quoted Post
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.

f(x)_g(x).PNG

Offline mkraska  
#13 Posted : 13 March 2019 00:02:12(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post

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?


Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Jean Giraud  
#14 Posted : 13 March 2019 03:32:35(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: mkraska Go to Quoted Post
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
Offline Razonar  
#15 Posted : 13 March 2019 05:45:34(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. The line statement seems to correct all issues, except the vectorization one.

Clipboard01.gif

Best regards.
Alvaro.
Users browsing this topic
Guest
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.