Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

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, Administrators, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,731
Man
Serbia

Was thanked: 311 time(s) in 265 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,515
Germany

Was thanked: 807 time(s) in 516 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://en.smath.info/wi...th%20with%20Plugins.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,515
Germany

Was thanked: 807 time(s) in 516 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 51 time(s).
Section Maxima Plotoptions.sm (33kb) downloaded 55 time(s).
HV_WEZ.zip (1kb) downloaded 48 time(s).
mkraska attached the following image(s):
HAZ.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.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, Administrators, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,731
Man
Serbia

Was thanked: 311 time(s) in 265 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,515
Germany

Was thanked: 807 time(s) in 516 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://en.smath.info/wi...th%20with%20Plugins.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, Administrators, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,731
Man
Serbia

Was thanked: 311 time(s) in 265 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,515
Germany

Was thanked: 807 time(s) in 516 post(s)
from the gnuplot examples page
File Attachment(s):
Example Maxima Gnuplot transparent solids.sm (12kb) downloaded 40 time(s).
mkraska attached the following image(s):
param.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.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,515
Germany

Was thanked: 807 time(s) in 516 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 56 time(s).
mkraska attached the following image(s):
param.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.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, Administrators, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,731
Man
Serbia

Was thanked: 311 time(s) in 265 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 37 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,515
Germany

Was thanked: 807 time(s) in 516 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://en.smath.info/wi...th%20with%20Plugins.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, Administrators, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,731
Man
Serbia

Was thanked: 311 time(s) in 265 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,515
Germany

Was thanked: 807 time(s) in 516 post(s)
Example for linear programming and plotting
File Attachment(s):
Example maxima linear optimization.sm (18kb) downloaded 57 time(s).
mkraska attached the following image(s):
simplex.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.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, Administrators, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,731
Man
Serbia

Was thanked: 311 time(s) in 265 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 40 time(s).
Maxima.zip (2kb) downloaded 39 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,515
Germany

Was thanked: 807 time(s) in 516 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 45 time(s).
mkraska attached the following image(s):
stats.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.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, Administrators, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,731
Man
Serbia

Was thanked: 311 time(s) in 265 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 35 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,515
Germany

Was thanked: 807 time(s) in 516 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://en.smath.info/wi...th%20with%20Plugins.ashx
Offline omorr  
#37 Posted : 04 January 2014 00:42:58(UTC)
omorr


Rank: Administration

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

Was thanked: 311 time(s) in 265 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,515
Germany

Was thanked: 807 time(s) in 516 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://en.smath.info/wi...th%20with%20Plugins.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,515
Germany

Was thanked: 807 time(s) in 516 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 64 time(s).
mkraska attached the following image(s):
drawdf.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.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, Administrators, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,731
Man
Serbia

Was thanked: 311 time(s) in 265 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 Assume doesn't work (Questions)
by LorenzAl 04/04/2019 17:11:28(UTC)
Maxima Plot path error (Questions)
by Topsi 21/03/2019 20:41:14(UTC)
[MaximaPlugin][SS-4584] SM File not opening (Bugs & Problems)
by Camden 20/02/2019 20:44:55(UTC)
Maxima operator (Bugs & Problems)
by omorr 25/10/2018 10:09:19(UTC)
Maxima draw2d-Plugin (Questions)
by Oktaeder 20/10/2018 17:41:50(UTC)
[Maxima Plugin] is a custom Maxima function call-able in SMath (Questions)
by 007.000 22/05/2018 13:06:49(UTC)
[Maxima Plugin] least common multiple (Questions)
by 007.000 22/05/2018 12:13:20(UTC)
Maxima Draw2d Discrete (Questions)
by alyles 23/03/2018 20:31:18(UTC)
i try maxima (Bugs & Problems)
by electro 28/11/2017 10:14:54(UTC)
How to use functions in Maxima? (Questions)
by ellboy 14/11/2017 20:17:42(UTC)
Maxima and Zedraph plugins (Questions)
by subseapark 06/11/2017 07:16:41(UTC)
I can't access portable maxima (Project discussion)
by aishen 20/01/2017 17:56:43(UTC)
Deceiving 3D Maxima (Bugs & Problems)
by Jean Giraud 17/10/2016 04:55:34(UTC)
Maxima weak solver (Bugs & Problems)
by Jean Giraud 07/04/2016 08:16:23(UTC)
[SS-2311][MAXIMA] Why doesn't work in 0.98? (Bugs & Problems)
by Khram 05/04/2016 13:25:16(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.