You can subscribe to this list here.
2002 
_{Jan}

_{Feb}

_{Mar}

_{Apr}

_{May}

_{Jun}
(67) 
_{Jul}
(61) 
_{Aug}
(49) 
_{Sep}
(43) 
_{Oct}
(59) 
_{Nov}
(24) 
_{Dec}
(18) 

2003 
_{Jan}
(34) 
_{Feb}
(35) 
_{Mar}
(72) 
_{Apr}
(42) 
_{May}
(46) 
_{Jun}
(15) 
_{Jul}
(64) 
_{Aug}
(62) 
_{Sep}
(22) 
_{Oct}
(41) 
_{Nov}
(57) 
_{Dec}
(56) 
2004 
_{Jan}
(48) 
_{Feb}
(47) 
_{Mar}
(33) 
_{Apr}
(39) 
_{May}
(6) 
_{Jun}
(17) 
_{Jul}
(19) 
_{Aug}
(10) 
_{Sep}
(14) 
_{Oct}
(74) 
_{Nov}
(80) 
_{Dec}
(22) 
2005 
_{Jan}
(43) 
_{Feb}
(33) 
_{Mar}
(52) 
_{Apr}
(74) 
_{May}
(32) 
_{Jun}
(58) 
_{Jul}
(18) 
_{Aug}
(41) 
_{Sep}
(71) 
_{Oct}
(28) 
_{Nov}
(65) 
_{Dec}
(68) 
2006 
_{Jan}
(54) 
_{Feb}
(37) 
_{Mar}
(82) 
_{Apr}
(211) 
_{May}
(69) 
_{Jun}
(75) 
_{Jul}
(279) 
_{Aug}
(139) 
_{Sep}
(135) 
_{Oct}
(58) 
_{Nov}
(81) 
_{Dec}
(78) 
2007 
_{Jan}
(141) 
_{Feb}
(134) 
_{Mar}
(65) 
_{Apr}
(49) 
_{May}
(61) 
_{Jun}
(90) 
_{Jul}
(72) 
_{Aug}
(53) 
_{Sep}
(86) 
_{Oct}
(61) 
_{Nov}
(62) 
_{Dec}
(101) 
2008 
_{Jan}
(100) 
_{Feb}
(66) 
_{Mar}
(76) 
_{Apr}
(95) 
_{May}
(77) 
_{Jun}
(93) 
_{Jul}
(103) 
_{Aug}
(76) 
_{Sep}
(42) 
_{Oct}
(55) 
_{Nov}
(44) 
_{Dec}
(75) 
2009 
_{Jan}
(103) 
_{Feb}
(105) 
_{Mar}
(121) 
_{Apr}
(59) 
_{May}
(103) 
_{Jun}
(82) 
_{Jul}
(67) 
_{Aug}
(76) 
_{Sep}
(85) 
_{Oct}
(75) 
_{Nov}
(181) 
_{Dec}
(133) 
2010 
_{Jan}
(107) 
_{Feb}
(116) 
_{Mar}
(145) 
_{Apr}
(89) 
_{May}
(138) 
_{Jun}
(85) 
_{Jul}
(82) 
_{Aug}
(111) 
_{Sep}
(70) 
_{Oct}
(83) 
_{Nov}
(60) 
_{Dec}
(16) 
2011 
_{Jan}
(61) 
_{Feb}
(16) 
_{Mar}
(52) 
_{Apr}
(41) 
_{May}
(34) 
_{Jun}
(41) 
_{Jul}
(57) 
_{Aug}
(73) 
_{Sep}
(21) 
_{Oct}
(45) 
_{Nov}
(50) 
_{Dec}
(28) 
2012 
_{Jan}
(70) 
_{Feb}
(36) 
_{Mar}
(71) 
_{Apr}
(29) 
_{May}
(48) 
_{Jun}
(61) 
_{Jul}
(44) 
_{Aug}
(54) 
_{Sep}
(20) 
_{Oct}
(28) 
_{Nov}
(41) 
_{Dec}
(137) 
2013 
_{Jan}
(62) 
_{Feb}
(55) 
_{Mar}
(31) 
_{Apr}
(23) 
_{May}
(54) 
_{Jun}
(54) 
_{Jul}
(90) 
_{Aug}
(46) 
_{Sep}
(38) 
_{Oct}
(60) 
_{Nov}
(92) 
_{Dec}
(17) 
2014 
_{Jan}
(62) 
_{Feb}
(35) 
_{Mar}
(72) 
_{Apr}
(30) 
_{May}
(97) 
_{Jun}
(81) 
_{Jul}
(63) 
_{Aug}
(64) 
_{Sep}
(15) 
_{Oct}

_{Nov}

_{Dec}

S  M  T  W  T  F  S 



1
(2) 
2

3

4
(4) 
5
(9) 
6

7
(1) 
8

9
(4) 
10
(1) 
11
(4) 
12
(3) 
13
(6) 
14
(6) 
15
(3) 
16
(6) 
17
(1) 
18
(5) 
19
(4) 
20

21
(3) 
22
(1) 
23
(2) 
24
(7) 
25
(5) 
26

27
(3) 
28
(7) 
29
(1) 
30
(7) 



From: SourceForge.net <noreply@so...>  20080416 14:07:51

Bugs item #1944012, was opened at 20080416 07:07 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1944012&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Lisp Core  Solving equations Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: solve() fails depending on equation order Initial Comment: Maxima version: 5.14.0 OS: Windows XP SP2 Name: Bob Walton (note: setting up a SourceForge account apparently isn't working, so I couldn't log in) Email: http://bwalton.com/cgibin/emailbob.pl Problem: q1:2*x3; q2:96*z^2+48*z+32*y^2+9; q3:48*z^216*z17; solve([q1,q2,q3],[x,y,z]); generates: [] which is incorrect. Whereas: solve([q1,q3,q2],[x,y,z]); generates the correct answer: [[ x = 3/2, y = sqrt(674*sqrt(55))/(4*sqrt(6)), z = (sqrt(55)+2)/12 ], [ x = 3/2, y = sqrt(674*sqrt(55))/(4*sqrt(6)), z = (sqrt(55)+2)/12 ], [ x = 3/2, y = sqrt(4*sqrt(55)+67)/(4*sqrt(6)), z = (sqrt(55)2)/12 ],[ x = 3/2, y = sqrt(4*sqrt(55)+67)/(4*sqrt(6)), z = (sqrt(55)2)/12 ]] This problem arose when using solve() on the results of poly_grobner  generally solve() works directly on the output of poly_grobner, but not in this particular case.  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1944012&group_id=4933 
From: SourceForge.net <noreply@so...>  20080416 13:39:54

Bugs item #1920177, was opened at 20080319 17:07 Message generated for change (Comment added) made by rtoy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1920177&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Lisp Core Group: Includes proposed fix Status: Open Resolution: None Priority: 5 Private: No Submitted By: Crategus (crategus) Assigned to: Nobody/Anonymous (nobody) Summary: Problems with the bessel functions Initial Comment: There are several problems with the bessel functions. The problems I have found can be divided in the following categories: 1. Inconsistent use of the internal arrays $besselarray, $yarray and $iarray. Example: Restart Maxima and Enter bessel_y(2,1.0). You get an Lisp error. Try first bessel_y(2,1.0) and then repeat bessel_y(2,1.0). Now you get the correct result 1.65...  %i * 3,30... Try bessel_j(2,1.0), you get 0.1149...  %i*2.8142... Next enter bessel_y(2,1.0), you get a Lisp error. The reason for the problems is that the routine bessely uses the global array $YARRAY to store values, but uses also the array $BESSELARRAY to calculate the answer. This is an error. I think the best is to eliminate the use of the global arrays completly. 2. Problematic roundoff errors: Try bessel_j(2,1.0). The result is 0,114903...  %i* 2.8142... e17. The correct result is pure real. The problem is the use of the transformation j[n]=exp(n*%pi*%i)*j[n](x) in the code which produce a small imaginary part. This is a roundoff error for an integer order. In the case of non integer values the imaginary part is correct. So you can not cut off the imaginary part in general. Here is a piece of code which will return an answer which is pure real when the order is an integer (I started to rewrite the code, introduced a function besselj and eliminated the use of the global arrays): (if (integerp order) (if (evenp order) (aref jvals n) ( (aref jvals n)) ) (let ((v (* (cis (* order pi)) (aref jvals n)))) (simplifya `((mplus) ,(realpart v) ((mtimes) $%i ,(imagpart v))) nil ) ) ) 3. Wrong mathematic: Try bessel_j(2.5,1,0). You get 0.04949... Correct is the result 2.8763... * %i Or bessel_j(3,2.0). You get 0,128943... Correct is the result 0.128943... The calculation of the bessel function j[n](x) for real argument x and negativ order n as (realpart (hankel1 order arg)) is not correct. The correct result can be obtained with the formula j[n](x) = 1/2 * (H1[n](x) + H2[n](x)). I tried the following code: (let ((result (* 0.5d0 (+ (hankel1 order arg) (hankel2 order arg))))) (complexify result) ; Problem: you get a small imaginary part ;in the case of a real result (like Problem 2) ; An alternative with a function fpround which round the result ; so that a small imaginary part will vanish ; ; (simplifya ; `((mplus) ; ,(fpround (realpart result) 14) ; ((mtimes) ; ,(fpround (imagpart result) 14) ; $%i ; ) ; ) ; nil ; ) ) This is the definition of the function fpround: (defun fpround (x &optional (digits 1)) (let ((fac (expt 10 digits))) (/ (round x (/ 1 fac)) (float fac)) ) ) I have redesigned a lot of the code for the bessel functions but the work is not finished. Is the work interesting for the project? I use GCL 2.6.6 on Windows XP for programing. Crategus  >Comment By: Raymond Toy (rtoy) Date: 20080416 09:39 Message: Logged In: YES user_id=28849 Originator: NO What changes should be made to the documentation? I've already removed the part about besselarray. Also, I've run the test_bessel_wronskian tests. These need to be modified to fit in with how regression tests are done. However, I get the following messages: W_II: MAX EPS 7.44e5 for order = 0.50 and arg = 5.00 W_IK: MAX EPS 1.17e4 for order = 0.50 and arg = 5.00 Are these expected?  Comment By: Raymond Toy (rtoy) Date: 20080415 12:43 Message: Logged In: YES user_id=28849 Originator: NO Thank you for the fixes! I'll fix the comment in German and I'll update the documentation too. I'll add your new tests as well. Once these are done, I'll close this bug report as fixed. If you find more issues, please open a new bug report. Thanks!  Comment By: Raymond Toy (rtoy) Date: 20080415 12:42 Message: Logged In: YES user_id=28849 Originator: NO Thank you for the fixes! I'll fix the comment in German and I'll update the documentation too. I'll add your new tests as well. Once these are done, I'll close this bug report as fixed. If you find more issues, please open a new bug report. Thanks!  Comment By: Raymond Toy (rtoy) Date: 20080415 12:42 Message: Logged In: YES user_id=28849 Originator: NO Thank you for the fixes! I'll fix the comment in German and I'll update the documentation too. I'll add your new tests as well. Once these are done, I'll close this bug report as fixed. If you find more issues, please open a new bug report. Thanks!  Comment By: Crategus (crategus) Date: 20080412 17:15 Message: Logged In: YES user_id=2039760 Originator: YES Thank you very much for your work and your interest in the changes of the code. I have seen that you have deleted the use of the global $besselarray too. I have done further numerical calculations to test the code. I think a good test to show that the different parts of the code work well is to calculate the Wronskians which are defined in A&S. I have attached a file which does the calculations in test mode. (Excuse my programing style, but I have no experience programing in Maxima. Excuse my Englisch too.) As a side effect of the extension of the Bessel functions it is now possible to get nice plots to show the symmetry of the Bessel functions. A hint: You can kill the comment in German I had added at line 465. The question asks for the sign. The sign is correct! A second hint: There a still some parts of the code which don't use the symmetries of the Bessel functions completly. I will work further on this subject. At last: The documentation has to be updated too. I would like to do this work, but my English is not good enough. Crategus File Added: test_bessel_wronskian.mac  Comment By: Raymond Toy (rtoy) Date: 20080411 10:17 Message: Logged In: YES user_id=28849 Originator: NO Changes checked in to bessel.lisp, rev 1.50.  Comment By: Raymond Toy (rtoy) Date: 20080410 12:57 Message: Logged In: YES user_id=28849 Originator: NO I have now integrated your changes into bessel.lisp. The testsuite passes and your bessel tests pass too. I changed test_bessel(a,b,d) to mean abs(ab)<10^(d), which I hope is close enough. (Perhaps the real and imaginary parts should be tested separately?) I'll check in these changes after some code clean up.  Comment By: Crategus (crategus) Date: 20080401 17:02 Message: Logged In: YES user_id=2039760 Originator: YES Again, thank you very much for your interest. I have not changed any of the derivatives. I have only changed the routines which I have listed in this thread. But I have not used the last CVS file. I have used the file which was send with the Maxima 5.14.0 release. There was one change for the derviative for bessel_k since the last release. On Sunday I have installed a tool to download the CVS files. Now I can get the really actual files. The next time I would like to optimize the routines further. Additionally, I am preparing extensive numerical tests for the functions. At the moment I have no idea how to extent the calculation to complex order. In my textbooks and in the book of Abramowitz and Stegun I can't find a relationship which help to calculate the Bessel functions for complex order. Crategus  Comment By: Raymond Toy (rtoy) Date: 20080401 12:41 Message: Logged In: YES user_id=28849 Originator: NO Thank you very much for the updated files. (The diff should have used diff u or diff c, but no matter. The besselchanged.lisp file is perfect.) Given the imminent release of Maxima, I will wait on these changes until after the release. Then I'll try to incorporate your changes. I noticed that you changed the derivatives of some of the Bessel functions. Was that intentional? Were they wrong? (Some of the derivatives need to be in a certain form for some simplifications to be done.)  Comment By: Crategus (crategus) Date: 20080329 17:05 Message: Logged In: YES user_id=2039760 Originator: YES Next I have added a diff between the orginal and the changed file. Question: Is it possible to attach at once more than one file to a message? Crategus File Added: diff.txt  Comment By: Crategus (crategus) Date: 20080329 17:00 Message: Logged In: YES user_id=2039760 Originator: YES I have put all changes of the code for the Bessel functions in the orginal file bessel.lisp which is distributed with Maxima 5.14.0 and attached this file to this message. I have tested the code with the testsuite and the values of the mytest_bessel.mac. Crategus File Added: besselchanged.lisp  Comment By: Crategus (crategus) Date: 20080328 20:35 Message: Logged In: YES user_id=2039760 Originator: YES Thank you very much for your answer. I have redesigned the following routines: simpbesselj (old name besseljsimp) besselj (old name $bessel) simpbessely (old name besselysimp) bessely simpbesseli (old name besselisimp) besseli simpbesselk (old name besselksimp) besselk The new routines are: $hankel_1 simphankel1 $hankel_2 simphankel2 If have further introduced the nouns %hankel_1 und %hankel_2. I would prefer to call the functions $hankel_1 and $hankel_2 and not bessel_hankel. The reason is that these functions are well known as Hankel functions. Because I have collected the routines in a new file it would be a good idea to do the changes in the orginal file bessel.lisp. Than it easier to produce a diff for you. I do this the next time. But first, I would like to have a second look at the global arrays $besselarray, $yarray and $iarray. I think it is not so easy to manage these global arrays in a consistent and predictable way for the user. One reason is, that the code for the numerical calculations use the other functions too (i.e. to calculate bessely we need besselj or for the calculation of besseli we need besselj and besselk). So $besselarray can be destroyed when calculating besseli. It might be possible to prevent this effect by introducing a global flag which signals the internal call of one of the routines. A second point is, that we often dont't use the numerical slatec routines directly. In this case it is necessary to do a lot of extra calculations to obtain the values for the arrays. Perhaps it is useful to decide to fill the global arrays only for the case when we can use the values of the slatec routines directly. This is possible for positive order and argument or positiv order and complex argument of the Bessel functions. Further, an additional flag could be introduced to switch the filling of the arrays on and off. It is also to decide what we do when the user calculate a new value for a Bessel function and the calculation don't fill the global array. In this case, the user may be confused by the fact that the global arrays still hold old values. But for which order and argument? For this case it may be helpful to invalidate the array every time we calculate a new value or to store additionally the order and argument for which the values in the global array are calculated. All these problems with the global arrays arise because of the extension of the routines to negative arguments and orders. In my opinion it would be the best to use the concept of the global arrays no longer. The code becomes much more complicated and the benefit for the user might be small. Crategus  Comment By: Raymond Toy (rtoy) Date: 20080328 12:37 Message: Logged In: YES user_id=28849 Originator: NO First, thank you very much for the fixes to the Bessel routines. I'm sure we all want the routines to be correct! Second, about $besselarray. I see the documentation for that is gone, but I think the intent for besselarray was to let the user have access to all the computed values, since some algorithms end up computing all the intermediate orders to get to the desired order. We need to think if this should go away or not. Third, it would certainly help me a lot if you actually produced a diff between your new code and the existing code. Right now, I have to go look at every single function in different places to figure out what's changed. Trying to minimize the changes would help. I know this is a lot of work for you too. Just identifying which function you actually changed would help a lot too. About the specific changes you mention in the comments. No problem with changing besselxsimp to simpbesselx. (I think most of the code uses simpbesselx, but that's too messy for my tastes.) Extending the range is very, very good. Not sure about the special tests for pure real or imaginary answers. Need to look at that some more. Definitions for Hankel functions are good. May want to name them bessel_hankel_1 to be consistent with other Bessel functions. Certainly want to add some properties like derivatives, but that can wait. All in all, I would very much like to take in your very nice changes.  Comment By: Crategus (crategus) Date: 20080327 12:50 Message: Logged In: YES user_id=2039760 Originator: YES I have tested the Bessel functions with the numerical data attached to this message. For the tests I used a function TEST_BESSEL(value, result, digits) which allow to compare the value with the result within the specified digits. Crategus File Added: mytest_bessel.mac  Comment By: Crategus (crategus) Date: 20080327 12:21 Message: Logged In: YES user_id=2039760 Originator: YES I have finished a first redesign of the code for the numerical calculation of the Bessel functions. I have extended the calculation to or changed parts of the calculation to negative orders and arguments. Perhaps the ideas and the code are interesting for the project. I have added the code to this message. A short description of the changes can be find in the header of the file. Crategus File Added: besselnew.lisp  Comment By: Crategus (crategus) Date: 20080323 13:16 Message: Logged In: YES user_id=2039760 Originator: YES I have added to this posting the code for a routine besselj which handles the above problems. The global array $BESSELARRAY is not used. Futher, I added numerical test values for the the special cases in the code. I used Maxima 5.14.0 and GCL 2.6.6 ANSI to compile the code. The testsuite runs with no unexpected errors found. 22 of the 29 numerical tests I have added give the result within a presision of 16 digits. 7 results have a precision of about 14 to 15 digits. Perhaps, the code is interesting enough for further investigation of the numerical evaluation of the Bessel functions. Crategus File Added: besselj.lisp  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1920177&group_id=4933 
From: SourceForge.net <noreply@so...>  20080416 09:12:48

Bugs item #1943756, was opened at 20080416 18:12 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1943756&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Satoshi Adachi (satoshi_adachi) Assigned to: Nobody/Anonymous (nobody) Summary: ezgcd() never returns. Initial Comment: Dear Developers of Maxima, I met a set of two polynomials whose gcd polynomial cannot be calculated by ezgcd(). ezgcd() seems to be put into an infinite loop. If gcd() is used instead of ezgcd(), the gcd polynomial is calculated normally. A Maxima program for the demonstration is as follows  /* * ezgcd_does_not_return.maxima: * * S.Adachi 2008/04/16 */ display2d:false; F:n^2+(2*d+c+b+2)*n+d^2+(cb2)*d+c+b+1; G:n^2+(2*dcb2)*nd^2+(c+b+2)*d+(b1)*cb1; gcd(F,G); /* OK */ ezgcd(F,G); /* Does not return! */ /* END */  The result of execution is as follows  [Macintosh:~/work/289:1] adachi% maxima b ezgcd_does_not_return.maxima Maxima 5.14.0cvs http://maxima.sourceforge.net Using Lisp GNU Common Lisp (GCL) GCL 2.6.7 (aka GCL) Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) batch(ezgcd_does_not_return.maxima) batching #p/Volumes/HFS+2/home/adachi/work/289/ezgcd_does_not_return.maxima (%i2) display2d : false (%o2) false (%i3) F:1+b+c+(2bc)*d+d^2+(2+b+c2*d)*n+n^2 (%o3) n^2+(2*d+c+b+2)*n+d^2+(cb2)*d+c+b+1 (%i4) G:1b+(1b)*c+(2+b+c)*dd^2+(2bc+2*d)*nn^2 (%o4) n^2+(2*dcb2)*nd^2+(c+b+2)*d+(b1)*cb1 (%i5) gcd(F,G) (%o5) 1 (%i6) ezgcd(F,G) ^CMaxima encountered a Lisp error: Console interrupt. Automatically continuing. To reenable the Lisp debugger set *debuggerhook* to nil. (%o7) "ezgcd_does_not_return.maxima"  Here, I had to stop the program by console interrupt. Please fix this bug of ezgcd(). Sincrely yours, Satoshi Adachi  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1943756&group_id=4933 
From: SourceForge.net <noreply@so...>  20080416 05:08:20

Bugs item #1935418, was opened at 20080405 08:00 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1935418&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: display2d and newline Initial Comment: $ maxima (%i1) display2d:false; (%o1) false (%i2) expand((a+b)*(a+b)); (%o2) b^2+2*a*b+a^2 (%i3) I think there are too much newlines. Especially when I say display2d:false; the line above the output is not longer needed for the exponents and should be removed.  Comment By: Nobody/Anonymous (nobody) Date: 20080415 22:08 Message: Logged In: NO I'm pretty sure the observed behavior is due to implementationdependent interpretations of FRESHLINE. I see the observed behavior with cvs Maxima + GCL and SBCL, but not Clisp. I don't know which has the correct implementation of FRESHLINE, or if they're all equally correct. I don't know how much we can do about this, or want to do. Robert Dodier (not logged in)  Comment By: Nobody/Anonymous (nobody) Date: 20080409 14:45 Message: Logged In: NO Ok, the spaces occur with Maxima 5.12.0. I will make my next bug report on base of an actual cvs version.  Comment By: Raymond Toy (rtoy) Date: 20080405 13:30 Message: Logged In: YES user_id=28849 Originator: NO I don't see this: (%i7) display2d:false; (%o7) false (%i8) expand((a+b)^2); (%o8) b^2+2*a*b+a^2 This is with a pretty recent CVS version. What version are you using?  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1935418&group_id=4933 
From: SourceForge.net <noreply@so...>  20080416 05:02:02

Bugs item #1940411, was opened at 20080411 12:03 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1940411&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: problem with %pi in sin() Initial Comment: f(x):=sin(4*%pi*x) y:f(x) then, drawing the graph, gets a corrupted sin wave. This problem does not occur if using 2 or 3 intead of 4 in the sin argument, and also it does not occur if typing 3.14 instead of using the %pi constant. Tested using version 0.7.4 of Maxima under Win.  Comment By: Nobody/Anonymous (nobody) Date: 20080415 22:02 Message: Logged In: NO > look for "ticks" and increase it to say 500 or more. Well, I don't think it's correct to say the value of nticks is too small. The problem is that the adaptive plotting algorithm in plot2d is easily fooled into thinking that a function is constant. You can get better results by making nticks a prime number, say 7 or 11 (the default is 10). e.g. plot2d (sin(4*%pi*x), [x, 0, 10]); => spurious flat parts plot2d (sin(4*%pi*x), [x, 0, 10], [nticks, 11]); => looks right To resolve this we probably need to rethink the adaptive plotting stuff. If I'm not mistaken it has other idiosyncrasies. As a stopgap measure maybe we can change the default value of nticks to 11. Robert Dodier (not logged in)  Comment By: Barton Willis (willisbl) Date: 20080411 22:49 Message: Logged In: YES user_id=895922 Originator: NO I'm guessing that you used wxMaxima 0.74 and used the ploting > plot2d menu item. The default for the number of ticks was too small in that version. In the menu box, look for "ticks" and increase it to say 500 or more. I think there is a wxMaxima 0.74a that has a larger value for the default for ticks. Maybe you can look for that. wxMaxima 0.74sa might be part of Maxima 5.14.0 now  I think some Maxima versions 5.14.0 have wxMaxima 0.74 and others 0.74a.  Comment By: Raymond Toy (rtoy) Date: 20080411 12:49 Message: Logged In: YES user_id=28849 Originator: NO Show exactly what you did. In what way is the sine wave corrupted? What does build_info() say? Are you really using Maxima 0.7.4? Is that the wxmaxima version? I don't recall any 0.7.4 version of Maxima.  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1940411&group_id=4933 
From: SourceForge.net <noreply@so...>  20080416 04:37:03

Bugs item #534874, was opened at 20020325 13:34 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=534874&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Lisp Core Group: None Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: Jesper Harder (harder) Assigned to: Nobody/Anonymous (nobody) Summary: Fixes for mactex.lisp Initial Comment: Here's a patch that fixes some problems in mactex.lisp: * texmexpt The patch fixes some different problems in texmexpt: tex('diff(f,x)^2); => $$%DERIVATIVE^2\left(\left(f,x,1\right)\right)$$ This is not want we want, so we need to add some more exceptions. tex(f(x)^2); => $$f^2\left(\left(x\right)\right)$$ i.e. there's one set of brackets too much. tex(f(x)^(a+b)); => $$ Error: ((MPLUS) $b $a) is not of type (OR RATIONAL LISP:FLOAT). That happens because we're doing a numeric comparison of the exponent. * texmbox \framebox doesn't work in math mode, use \boxed instead. Also,support labelled boxes. * texchoose tex(binomial(a,b)); => $$\pmatrix{a\\b}$ which doesn't typeset a proper binomial  use the builtin TeX command \choose instead.  Comment By: Nobody/Anonymous (nobody) Date: 20080415 21:37 Message: Logged In: NO Committed r1.63 src/mactex.lisp to output \choose for binomial instead of \pmatrix. Robert Dodier (not logged in)  Comment By: Robert Dodier (robert_dodier) Date: 20060325 17:24 Message: Logged In: YES user_id=501686 Closing this report, as it is already marked "fixed" and, on trying the examples mentioned in the comments, it appears that the patch or patches were applied. (Except tex(binomial(a,b)) still yields pmatrix. Oh well. If that's still a problem then we'll open a new report just for that.)  Comment By: Raymond Toy (rtoy) Date: 20020715 09:21 Message: Logged In: YES user_id=28849 Sorry for messing up your original patch. I've applied your new patch. Let me know if it's working. Also, shouldn't lsum do some instead of just printing lsum? I have no problems if you send patches to the mailing list instead of here. (I'd actually prefer that because I hate this web thing too.)  Comment By: Jesper Harder (harder) Date: 20020703 16:28 Message: Logged In: YES user_id=177224 > You didn't give an example \boxed example, so I don't know > what that does. It just replaces \framebox with \boxed, because \framebox only works in text mode not in math mode. Before the patch: tex(box(a+b)); ==> $$\framebox{b+a}$$ After the patch: tex(box(a+b)); ==> $$\boxed{b+a}$$ The texmlabox stuff adds support for labelled boxed, e.g. tex(box(a+b,foo)); ==> $$\stackrel{foo}{\boxed{b+a}}$$ > Please try this out when you can. It works fine except that you missed a part of my patch: %lsum, %limit are also execeptions, and I think there's a typo  %integral should be %integrate. Here a some examples: tex('limit(f(x),x,0)^2); ==> $$\lim ^2\left(f\left(x\right),x,0\right)$$ tex('lsum(f(x),x,0)^2); ==> $$%LSUM^2\left(f\left(x\right),x,0\right)$$ tex('integrate(f(x),x)^2); ==> $$%INTEGRATE^2\left(f\left(x\right),x\right)$$ I've attached a patch against the newest version. (BTW, I really, really dislike this awkward Sourceforge web interface  isn't there some way to submit patches via email instead?)  Comment By: Raymond Toy (rtoy) Date: 20020626 10:59 Message: Logged In: YES user_id=28849 I'm closing this as fixed. Reopen later if necessary.  Comment By: Raymond Toy (rtoy) Date: 20020626 10:56 Message: Logged In: YES user_id=28849 I'm closing this as fixed. Reopen later if necessary.  Comment By: Raymond Toy (rtoy) Date: 20020626 08:07 Message: Logged In: YES user_id=28849 I'm closing this as fixed. Reopen later if necessary.  Comment By: Raymond Toy (rtoy) Date: 20020622 10:07 Message: Logged In: YES user_id=28849 I applied your patch, with some changes, and all of your examples produce the desired result now. You didn't give an example \boxed example, so I don't know what that does. Please try this out when you can.  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=534874&group_id=4933 