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

Notification

Icon
Error

Login


4 Pages<1234>
Options
Go to last post Go to first unread
Offline omorr  
#21 Posted : 26 November 2013 11:34:02(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Originally Posted by: mkraska Go to Quoted Post
I always use my x64 Win7 notebook. I had very severe problems when trying your files at work. Now at home (same computer), I cannot reproduce them, except the StdDev issue with Maxima sum. I saw rubbish error messages containing §§ characters.


Have no idea what is going on??? Here is what happened on my x64 Win7 notebook Maxima load()
I can not see any pattern here, sometimes recalculating many times worked fine and once or twice failed. Sometimes every few calculations it fails.

Regards,
Radovan

Edited by user 26 November 2013 12:10:06(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 26/11/2013(UTC)
Offline mkraska  
#22 Posted : 26 November 2013 19:59:41(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)
There may be issues with the socket connection, Kay will have a look at these problems. Stabilizing is on top of our agenda.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline mkraska  
#23 Posted : 27 December 2013 20:44:15(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)
Here are some examples, showing the following issues:
  • how to create log plots
  • how to perform a nonlinear least square fit
  • how to work around translation problems. Currently, no nested lists and no mixed list and matrix arguments are allowed.

The trick with mixed and nested arguments is to define them step by step as Maxima variables.
Please note that you must kill such variables before you can re-define them.

EDIT: HV_WEZ.prn data file added (zipped, because prn files are not allowed as attachments).

Edited by user 27 December 2013 23:24:32(UTC)  | Reason: Not specified

File Attachment(s):
HV_WEZ_lsquares.sm (21kb) downloaded 56 time(s).
Section Maxima Plotoptions.sm (33kb) downloaded 58 time(s).
HV_WEZ.zip (1kb) downloaded 51 time(s).
mkraska attached the following image(s):
HAZ.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 27/12/2013(UTC)
Offline omorr  
#24 Posted : 27 December 2013 22:26:02(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello Martin,

The file "HV_WEZ.prn" is missing here and there are errors in "HV_WEZ_lsquares.sm".
Could you add this file please. I just tried with some random data, sometimes partially worked sometimes not.
There are some "empty stack" errors and I just wanted to check this with your file or the data matrix you used.

Regards,
Radovan

Edit: I manage somehow to use the data from your plot just randomly, and it seems to work. Very nice Good
Still, I do not know what those "stack empty" mean

By the way, it seems that you manage that we can resize the plots now? Good As I remember it was not possible before

Edit2: Ah yes, I can see you added the data - thank you Good

Edited by user 27 December 2013 23:45:11(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 27/12/2013(UTC)
Offline mkraska  
#25 Posted : 28 December 2013 01:27:21(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)
Sorry, I forgot the datafile, it is now added. The fitting procedure is not really robust, thus it may fail easily when the data is changed or the initial values are to far off.

empty stack errors result from back-translation problems (if the result contains nested lists), yet the maxima commands work.

Resizing the images works for images created with the standard gnuplot interface of Maxima, images generated with the draw package still cannot be scaled (did not yet find the right settings).

Edited by user 28 December 2013 01:29:35(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 28/12/2013(UTC)
Offline omorr  
#26 Posted : 28 December 2013 09:42:48(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Originally Posted by: mkraska Go to Quoted Post
Resizing the images works for images created with the standard gnuplot interface of Maxima, images generated with the draw package still cannot be scaled (did not yet find the right settings).

Ah yes, you are right. Did not pay attention, sorry.
Here are some examples with draw package


Regards,
Radovan

Edited by user 28 December 2013 10:08:03(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 03/01/2014(UTC)
Offline mkraska  
#27 Posted : 03 January 2014 05:28:44(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)
from the gnuplot examples page
File Attachment(s):
Example Maxima Gnuplot transparent solids.sm (12kb) downloaded 43 time(s).
mkraska attached the following image(s):
param.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline mkraska  
#28 Posted : 03 January 2014 05:30:29(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)
From the gnuplot examples page

EDIT: file corrected

Edited by user 03 January 2014 11:46:51(UTC)  | Reason: Not specified

File Attachment(s):
Example Maxima Gnuplot transparent solids.sm (11kb) downloaded 59 time(s).
mkraska attached the following image(s):
param.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 03/01/2014(UTC),  on 03/01/2014(UTC)
Offline omorr  
#29 Posted : 03 January 2014 09:44:22(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Thank you Martin,

I did not have a success for this example. Here is the log file. I suppose the problem is in the international settings (coma, semicolon etc.)

Regards,
Radovan

Edited by user 03 January 2014 09:47:11(UTC)  | Reason: Not specified

File Attachment(s):
Maxima.zip (2kb) downloaded 40 time(s).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 03/01/2014(UTC)
Offline mkraska  
#30 Posted : 03 January 2014 12:13:08(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 uploaded the wrong version of the file, corrected now. Lists as function arguments seem to have some complexity limit. Inspection of the log file shows that the translator re-uses the strings from the preamble list in the right hand sides of other options, where expressions are expected, not strings. I don't know if there is a quick fix.

In the meantime, we either have to limit the complexity or to define Maxima variables.

You can assign the previous expression to a variable l by Maxima("$l:%$" )

Edited by user 03 January 2014 12:23:49(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 03/01/2014(UTC)
Offline omorr  
#31 Posted : 03 January 2014 13:35:48(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Yes it is Ok now. Thank you Good

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline mkraska  
#32 Posted : 03 January 2014 15:38:44(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)
Example for linear programming and plotting
File Attachment(s):
Example maxima linear optimization.sm (18kb) downloaded 58 time(s).
mkraska attached the following image(s):
simplex.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 03/01/2014(UTC)
Offline omorr  
#33 Posted : 03 January 2014 19:21:30(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
This was nice as well, thank you

By the way, I tried most of the stats hypothesis testing functions and they work by following your example how to do that. One of them did not work regarding simple linear regression. Here are the test file and the log file as well. From the debug window I had the impression that the calculations performed well, but there is no SMath output (again "stack empty" error).

Regards,
Radovan
File Attachment(s):
stats-testing.sm (7kb) downloaded 43 time(s).
Maxima.zip (2kb) downloaded 42 time(s).
omorr attached the following image(s):
stats-testing.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 03/01/2014(UTC)
Offline mkraska  
#34 Posted : 03 January 2014 20:04:28(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)
There seems to be a problem with display of functions with list arguments. In the given case, you can avoid the function in the output by wrapping it in args(), which returns a list of the function arguments.
The outer mat2sys is just for cosmetic reason. I just prefer that type of results being left justified.

Make sure to set optimization None in the function call and in results display to get float results. Opt numeric won't work due to the texts being bare variable names.

It seems that the functions are capable of handling matrices.
File Attachment(s):
Example Maxima stats.sm (17kb) downloaded 49 time(s).
mkraska attached the following image(s):
stats.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 03/01/2014(UTC)
Offline omorr  
#35 Posted : 03 January 2014 20:57:02(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Unfortunately, it does not work for me.

I can not use matrices here, therefore I defined it in Maxima with Maxima( "$ $" ). If I use a matrix like you did with matrix M, the error message in the debug window appeared

"
apply: second argument must be a list; found: M
#0: simple_linear_regression(dat=M,select=[conflevel = 0.99])
-- an error. To debug this try: debugmode(true);
(%i7) "

Moreover, when I use the same command as you did, no result - stack empty again, although still look that the result is here - see the log file please.

Regards,
Radovan

Edited by user 03 January 2014 21:00:39(UTC)  | Reason: Not specified

File Attachment(s):
Maxima.zip (2kb) downloaded 39 time(s).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline mkraska  
#36 Posted : 03 January 2014 23:13:36(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)
The problems seem to be arg/dec separator related. I can reproduce a crash with my file. It occures in the back-translation step. This is definitely a bug with little chance of fast fixing (Kay has to focus on exam session).

What puzzles me is that the error message refers to the second argument. In the call, M is (should be) the first argument.

If you still want to go on testing, then as a workaround you might extract individual elements of the solution. Could you please try that? If that works, then the matrices should not be an issue. Could, however, be a Maxima version issue (newer versions might be more picky about argument type than mine). I still use 5.31.1-1.

Edited by user 03 January 2014 23:16:10(UTC)  | Reason: Not specified

mkraska attached the following image(s):
stats.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline omorr  
#37 Posted : 04 January 2014 00:42:58(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
I use the same Maxima version as you do 5.31.1-1. I am really puzzled that whatever works for you in this example, it does not work for me. I just tried and again here are the two pictures with matrices M defined in two ways and their respective logs - with errors. I also noted that matrix M is referred as second argument? Have no idea what that might be. I alo tried to change the arg/dec into coma and semicolon - no sucess.

If there is anything else I could try regarding this - just let me know. Otherwise, we can just wait for Kay

Regards,
Radovan

Edited by user 04 January 2014 00:45:33(UTC)  | Reason: Not specified

omorr attached the following image(s):
stats-testing-2-1.png
stats-testing-2.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline mkraska  
#38 Posted : 04 January 2014 02:00:21(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 there are two problems:

1. If in the debugger, you have to set the preprocessing flag. Otherwise M is not replaced by it's symbolic contents. The dialog is obscured by the log but I would bet a pivo that you did not set the flag ;-)
2. You applied the second el() function to the index 2, not to the complete expression. You want the first list from the result structure. I admit, that this was not obvious from the screenshot.

Removing the debug flag from the Maxima call and correcting the el function should do the job.
mkraska attached the following image(s):
stats.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline mkraska  
#39 Posted : 04 January 2014 02:11:51(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)
Example plots from the drawdf package documentation. This package provides functions for direction field plots. The sheet is tested with ;, and ,. arg and dec separator settings.
File Attachment(s):
Examples maxima drawdf.sm (62kb) downloaded 65 time(s).
mkraska attached the following image(s):
drawdf.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 04/01/2014(UTC)
Offline omorr  
#40 Posted : 04 January 2014 11:34:50(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Originally Posted by: mkraska Go to Quoted Post
1. If in the debugger, you have to set the preprocessing flag. Otherwise M is not replaced by it's symbolic contents. The dialog is obscured by the log but I would bet a pivo that you did not set the flag ;-)

You definetelly won a pivo (more than one actually Biggrinrinks: ).

Originally Posted by: mkraska Go to Quoted Post

2. You applied the second el() function to the index 2, not to the complete expression. You want the first list from the result structure. I admit, that this was not obvious from the screenshot.

Removing the debug flag from the Maxima call and correcting the el function should do the job.

You are right again, my mistake sorry. Here is the screenshot. If I understood you well, the complete calling of the entire system here is problematic - maybe a bug (sometimes it crashed for me as well) but it can be done by calling one by one - like in the picture.

Regards,
Radovan

Edited by user 04 January 2014 11:38:00(UTC)  | Reason: Not specified

omorr attached the following image(s):
stats-testing-3.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Users browsing this topic
Similar Topics
Maxima application source code (Questions)
by ioan92 18/10/2023 00:14:38(UTC)
Error implementing ToolboxGroup for the maxima plugin (Questions)
by fakemoses 31/07/2023 20:09:47(UTC)
Problems with release of MaximaPlugin (Bugs & Problems)
by mkraska 14/07/2023 12:07:53(UTC)
Maxima Plugin Feedback Survey: Share Your Ideas and Report Bugs (Feature Requests)
by fakemoses 16/06/2023 13:27:33(UTC)
Cannot solve a matrix equation with the Maxima plug-in (Questions)
by EngMath 13/06/2023 12:19:51(UTC)
MAXIMA PLUGIN expand (Questions)
by Angel695 21/05/2023 10:43:40(UTC)
Solve Function Stuck (46/47) with Maxima Plugin (Questions)
by Albedo 30/08/2022 05:24:23(UTC)
Maxima Draw2D labels error (Bugs & Problems)
by DiegoV 14/06/2022 07:52:42(UTC)
I can't access Maxima tools (Bugs & Problems)
by yeyu 19/05/2022 06:48:56(UTC)
The Maxima Solver can't solve the symbolic equations (Questions)
by netsonicyxf 19/02/2022 10:35:04(UTC)
Can't solve linear equation involving temperatures with Maxima plug-in (Questions)
by EngMath 30/01/2022 16:40:45(UTC)
SMath on Linux with Maxima (Questions)
by micky 17/01/2022 19:28:57(UTC)
[Maxima Plugin] Text exportation issue (Questions)
by SteelCat 11/01/2022 12:47:31(UTC)
Maxima Plugin problem (Bugs & Problems)
by FT_PENG 23/12/2021 23:49:19(UTC)
Maxima Draw 2D (Questions)
by PE_Electron 23/12/2021 21:28:05(UTC)
4 Pages<1234>
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.