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}
(28) 
_{Oct}
(45) 
_{Nov}
(48) 
_{Dec}
(109) 
2015 
_{Jan}
(106) 
_{Feb}
(36) 
_{Mar}
(65) 
_{Apr}
(63) 
_{May}
(95) 
_{Jun}
(56) 
_{Jul}
(48) 
_{Aug}
(55) 
_{Sep}
(100) 
_{Oct}
(57) 
_{Nov}
(33) 
_{Dec}
(46) 
2016 
_{Jan}
(76) 
_{Feb}
(53) 
_{Mar}
(88) 
_{Apr}
(79) 
_{May}
(62) 
_{Jun}
(65) 
_{Jul}
(37) 
_{Aug}
(23) 
_{Sep}
(108) 
_{Oct}
(68) 
_{Nov}
(66) 
_{Dec}
(47) 
2017 
_{Jan}
(55) 
_{Feb}
(11) 
_{Mar}
(30) 
_{Apr}
(12) 
_{May}

_{Jun}

_{Jul}

_{Aug}

_{Sep}

_{Oct}

_{Nov}

_{Dec}

S  M  T  W  T  F  S 

1
(1) 
2
(5) 
3
(2) 
4
(4) 
5
(3) 
6
(8) 
7
(4) 
8

9
(2) 
10
(5) 
11
(2) 
12

13
(1) 
14

15
(1) 
16

17

18
(19) 
19
(1) 
20
(22) 
21
(6) 
22
(4) 
23
(2) 
24
(1) 
25
(1) 
26

27
(3) 
28

29
(5) 
30
(7) 
31
(2) 




From: SourceForge.net <noreply@so...>  20100830 20:24:05

Bugs item #3056276, was opened at 20100830 16:24 Message generated for change (Tracker Item Submitted) made by macrakis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3056276&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  Complex Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Stavros Macrakis (macrakis) Assigned to: Nobody/Anonymous (nobody) Summary: abs(x^2) with domain:complex Initial Comment: abs(x)^2,domain:real => x^2 OK abs(x^2),domain:real => x^2 OK abs(x)^2,domain:complex => abs(x)^2 OK abs(x^2),domain:complex => x^2 NO! Should be abs(x)^2 The abs(x)^2 behavior is not documented by the docstring, but makes sense and should also apply to the abs(x^2) case.  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3056276&group_id=4933 
From: SourceForge.net <noreply@so...>  20100830 14:57:00

Bugs item #3054399, was opened at 20100827 11:30 Message generated for change (Settings changed) made by rtoy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3054399&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  Simplification Group: None >Status: Closed Resolution: Works For Me Priority: 5 Private: No Submitted By: Dženan Zukić (dzenanz) Assigned to: Nobody/Anonymous (nobody) Summary: Sum incorrectly calculated Initial Comment: The commands below are steps to reproduce. The correct sum for n=5 is 0.25. (%i2) declare (n, constant); (%o2) done (%i6) sum((0.25+cos(2*i*%pi)+0.5*cos(4*i*%pi))/n,i,0,n1); (%o6) 1.75 GUI: wxMaxima on Win7 x64  Maxima version: 5.22.1 Maxima build date: 11:48 8/13/2010 Host type: i686pcmingw32 Lisp implementation type: GNU Common Lisp (GCL) Lisp implementation version: GCL 2.6.8   >Comment By: Raymond Toy (rtoy) Date: 20100830 10:56 Message: Closing report. I'm not going to answer the other questions; those are best asked on the mailing list. Please take your questions there.  Comment By: Dženan Zukić (dzenanz) Date: 20100830 10:27 Message: That does the trick. But without load command there was no warning/error that "simplify_sum" is not loaded. How many such modules are there? Can they all fit into workspace (memory) on an average computer? (I believe yes). Have you considered autoloading all such modules on startup (as Derive does)? Is there any other reason (besides efficiency) for not loading them all on startup? And my preference: simplicity over efficiency for stuff that is realtimefast (such as simple symbolic math). Anyway, thanks for the help.  Comment By: Raymond Toy (rtoy) Date: 20100830 10:15 Message: Do this first: load(simplify_sum);  Comment By: Dženan Zukić (dzenanz) Date: 20100830 10:04 Message: This is behavior on my box: (%i1) declare(n, constant); (%o1) done (%i2) simplify_sum(sum((1/4+cos(2*i*%pi/n)+1/2*cos(4*i*%pi/n))/n,i,0,n1)); (%o2) simplify_sum(sum(cos((4*%pi*i)/n)/2+cos((2*%pi*i)/n)+1/4,i,0,n1)/n) I copied the statement from Dieter's post. I do not get results 1/4 (as Dieter is getting).  Comment By: Raymond Toy (rtoy) Date: 20100830 09:49 Message: Look at Dieter's comments. By using simplify_sum, he gets the answer of 1/4, as expected. Marking report as pending.  Comment By: Dženan Zukić (dzenanz) Date: 20100830 06:19 Message: Sorry, when copying the formula from my C++ code into Maxima for debugging purposes, I missed division by n within cosine functions. This is the correct formula: ratsimp(sum(0.5*cos((4*%pi*i)/n)+cos((2*%pi*i)/n)+0.25,i,0,n1)/n); However, this does not simplify in Maxima. In Derive 6.1, it gives the result I was trying to confirm (the result I suspected by tracing variable values in my code): this sum is equal to 0.25. So, this can be changed from bug to feature request.  Comment By: Dieter Kaiser (crategus) Date: 20100828 21:38 Message: I do not see a problem and I get the expected results: (%i2) sum((1/4+cos(2*i*%pi)+1/2*cos(4*i*%pi))/n,i,0,n1); (%o2) 7/4 This is the same as (%i26) 7/4*sum(1/n,i,0,n1); (%o26) 7/4 When a division by n is missing in the cos functions we have to use the function simplify_sum to get a simplified result: (%i20) simplify_sum(sum((1/4+cos(2*i*%pi/n)+1/2*cos(4*i*%pi/n))/n,i,0,n1)); (%o20) 1/4 This again is a correct result. The result does not depend on n. Setting the status to pending and the resolution to "works for me". Dieter Kaiser  Comment By: Dženan Zukić (dzenanz) Date: 20100827 15:08 Message: You missed division by n (at the end). And I missed division by n within cosines. I will have to check this again on Monday  I guess I have found a bug in my code now :D  Comment By: Raymond Toy (rtoy) Date: 20100827 13:55 Message: Why is the correct answer 0.25? 0.25+cos(2*i*%pi)+0.5*cos(4*i*%pi) = 0.25 + 1 + 0.5 = 1.75 for all integer i. So it looks like the sum should always be 1.75 to me. Did I miss something?  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3054399&group_id=4933 
From: SourceForge.net <noreply@so...>  20100830 14:27:01

Bugs item #3054399, was opened at 20100827 17:30 Message generated for change (Comment added) made by dzenanz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3054399&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  Simplification Group: None Status: Open Resolution: Works For Me Priority: 5 Private: No Submitted By: Dženan Zukić (dzenanz) Assigned to: Nobody/Anonymous (nobody) Summary: Sum incorrectly calculated Initial Comment: The commands below are steps to reproduce. The correct sum for n=5 is 0.25. (%i2) declare (n, constant); (%o2) done (%i6) sum((0.25+cos(2*i*%pi)+0.5*cos(4*i*%pi))/n,i,0,n1); (%o6) 1.75 GUI: wxMaxima on Win7 x64  Maxima version: 5.22.1 Maxima build date: 11:48 8/13/2010 Host type: i686pcmingw32 Lisp implementation type: GNU Common Lisp (GCL) Lisp implementation version: GCL 2.6.8   >Comment By: Dženan Zukić (dzenanz) Date: 20100830 16:27 Message: That does the trick. But without load command there was no warning/error that "simplify_sum" is not loaded. How many such modules are there? Can they all fit into workspace (memory) on an average computer? (I believe yes). Have you considered autoloading all such modules on startup (as Derive does)? Is there any other reason (besides efficiency) for not loading them all on startup? And my preference: simplicity over efficiency for stuff that is realtimefast (such as simple symbolic math). Anyway, thanks for the help.  Comment By: Raymond Toy (rtoy) Date: 20100830 16:15 Message: Do this first: load(simplify_sum);  Comment By: Dženan Zukić (dzenanz) Date: 20100830 16:04 Message: This is behavior on my box: (%i1) declare(n, constant); (%o1) done (%i2) simplify_sum(sum((1/4+cos(2*i*%pi/n)+1/2*cos(4*i*%pi/n))/n,i,0,n1)); (%o2) simplify_sum(sum(cos((4*%pi*i)/n)/2+cos((2*%pi*i)/n)+1/4,i,0,n1)/n) I copied the statement from Dieter's post. I do not get results 1/4 (as Dieter is getting).  Comment By: Raymond Toy (rtoy) Date: 20100830 15:49 Message: Look at Dieter's comments. By using simplify_sum, he gets the answer of 1/4, as expected. Marking report as pending.  Comment By: Dženan Zukić (dzenanz) Date: 20100830 12:19 Message: Sorry, when copying the formula from my C++ code into Maxima for debugging purposes, I missed division by n within cosine functions. This is the correct formula: ratsimp(sum(0.5*cos((4*%pi*i)/n)+cos((2*%pi*i)/n)+0.25,i,0,n1)/n); However, this does not simplify in Maxima. In Derive 6.1, it gives the result I was trying to confirm (the result I suspected by tracing variable values in my code): this sum is equal to 0.25. So, this can be changed from bug to feature request.  Comment By: Dieter Kaiser (crategus) Date: 20100829 03:38 Message: I do not see a problem and I get the expected results: (%i2) sum((1/4+cos(2*i*%pi)+1/2*cos(4*i*%pi))/n,i,0,n1); (%o2) 7/4 This is the same as (%i26) 7/4*sum(1/n,i,0,n1); (%o26) 7/4 When a division by n is missing in the cos functions we have to use the function simplify_sum to get a simplified result: (%i20) simplify_sum(sum((1/4+cos(2*i*%pi/n)+1/2*cos(4*i*%pi/n))/n,i,0,n1)); (%o20) 1/4 This again is a correct result. The result does not depend on n. Setting the status to pending and the resolution to "works for me". Dieter Kaiser  Comment By: Dženan Zukić (dzenanz) Date: 20100827 21:08 Message: You missed division by n (at the end). And I missed division by n within cosines. I will have to check this again on Monday  I guess I have found a bug in my code now :D  Comment By: Raymond Toy (rtoy) Date: 20100827 19:55 Message: Why is the correct answer 0.25? 0.25+cos(2*i*%pi)+0.5*cos(4*i*%pi) = 0.25 + 1 + 0.5 = 1.75 for all integer i. So it looks like the sum should always be 1.75 to me. Did I miss something?  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3054399&group_id=4933 
From: SourceForge.net <noreply@so...>  20100830 14:15:52

Bugs item #3054399, was opened at 20100827 11:30 Message generated for change (Comment added) made by rtoy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3054399&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  Simplification Group: None Status: Open Resolution: Works For Me Priority: 5 Private: No Submitted By: Dženan Zukić (dzenanz) Assigned to: Nobody/Anonymous (nobody) Summary: Sum incorrectly calculated Initial Comment: The commands below are steps to reproduce. The correct sum for n=5 is 0.25. (%i2) declare (n, constant); (%o2) done (%i6) sum((0.25+cos(2*i*%pi)+0.5*cos(4*i*%pi))/n,i,0,n1); (%o6) 1.75 GUI: wxMaxima on Win7 x64  Maxima version: 5.22.1 Maxima build date: 11:48 8/13/2010 Host type: i686pcmingw32 Lisp implementation type: GNU Common Lisp (GCL) Lisp implementation version: GCL 2.6.8   >Comment By: Raymond Toy (rtoy) Date: 20100830 10:15 Message: Do this first: load(simplify_sum);  Comment By: Dženan Zukić (dzenanz) Date: 20100830 10:04 Message: This is behavior on my box: (%i1) declare(n, constant); (%o1) done (%i2) simplify_sum(sum((1/4+cos(2*i*%pi/n)+1/2*cos(4*i*%pi/n))/n,i,0,n1)); (%o2) simplify_sum(sum(cos((4*%pi*i)/n)/2+cos((2*%pi*i)/n)+1/4,i,0,n1)/n) I copied the statement from Dieter's post. I do not get results 1/4 (as Dieter is getting).  Comment By: Raymond Toy (rtoy) Date: 20100830 09:49 Message: Look at Dieter's comments. By using simplify_sum, he gets the answer of 1/4, as expected. Marking report as pending.  Comment By: Dženan Zukić (dzenanz) Date: 20100830 06:19 Message: Sorry, when copying the formula from my C++ code into Maxima for debugging purposes, I missed division by n within cosine functions. This is the correct formula: ratsimp(sum(0.5*cos((4*%pi*i)/n)+cos((2*%pi*i)/n)+0.25,i,0,n1)/n); However, this does not simplify in Maxima. In Derive 6.1, it gives the result I was trying to confirm (the result I suspected by tracing variable values in my code): this sum is equal to 0.25. So, this can be changed from bug to feature request.  Comment By: Dieter Kaiser (crategus) Date: 20100828 21:38 Message: I do not see a problem and I get the expected results: (%i2) sum((1/4+cos(2*i*%pi)+1/2*cos(4*i*%pi))/n,i,0,n1); (%o2) 7/4 This is the same as (%i26) 7/4*sum(1/n,i,0,n1); (%o26) 7/4 When a division by n is missing in the cos functions we have to use the function simplify_sum to get a simplified result: (%i20) simplify_sum(sum((1/4+cos(2*i*%pi/n)+1/2*cos(4*i*%pi/n))/n,i,0,n1)); (%o20) 1/4 This again is a correct result. The result does not depend on n. Setting the status to pending and the resolution to "works for me". Dieter Kaiser  Comment By: Dženan Zukić (dzenanz) Date: 20100827 15:08 Message: You missed division by n (at the end). And I missed division by n within cosines. I will have to check this again on Monday  I guess I have found a bug in my code now :D  Comment By: Raymond Toy (rtoy) Date: 20100827 13:55 Message: Why is the correct answer 0.25? 0.25+cos(2*i*%pi)+0.5*cos(4*i*%pi) = 0.25 + 1 + 0.5 = 1.75 for all integer i. So it looks like the sum should always be 1.75 to me. Did I miss something?  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3054399&group_id=4933 
From: SourceForge.net <noreply@so...>  20100830 14:04:06

Bugs item #3054399, was opened at 20100827 17:30 Message generated for change (Comment added) made by dzenanz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3054399&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  Simplification Group: None >Status: Open Resolution: Works For Me Priority: 5 Private: No Submitted By: Dženan Zukić (dzenanz) Assigned to: Nobody/Anonymous (nobody) Summary: Sum incorrectly calculated Initial Comment: The commands below are steps to reproduce. The correct sum for n=5 is 0.25. (%i2) declare (n, constant); (%o2) done (%i6) sum((0.25+cos(2*i*%pi)+0.5*cos(4*i*%pi))/n,i,0,n1); (%o6) 1.75 GUI: wxMaxima on Win7 x64  Maxima version: 5.22.1 Maxima build date: 11:48 8/13/2010 Host type: i686pcmingw32 Lisp implementation type: GNU Common Lisp (GCL) Lisp implementation version: GCL 2.6.8   >Comment By: Dženan Zukić (dzenanz) Date: 20100830 16:04 Message: This is behavior on my box: (%i1) declare(n, constant); (%o1) done (%i2) simplify_sum(sum((1/4+cos(2*i*%pi/n)+1/2*cos(4*i*%pi/n))/n,i,0,n1)); (%o2) simplify_sum(sum(cos((4*%pi*i)/n)/2+cos((2*%pi*i)/n)+1/4,i,0,n1)/n) I copied the statement from Dieter's post. I do not get results 1/4 (as Dieter is getting).  Comment By: Raymond Toy (rtoy) Date: 20100830 15:49 Message: Look at Dieter's comments. By using simplify_sum, he gets the answer of 1/4, as expected. Marking report as pending.  Comment By: Dženan Zukić (dzenanz) Date: 20100830 12:19 Message: Sorry, when copying the formula from my C++ code into Maxima for debugging purposes, I missed division by n within cosine functions. This is the correct formula: ratsimp(sum(0.5*cos((4*%pi*i)/n)+cos((2*%pi*i)/n)+0.25,i,0,n1)/n); However, this does not simplify in Maxima. In Derive 6.1, it gives the result I was trying to confirm (the result I suspected by tracing variable values in my code): this sum is equal to 0.25. So, this can be changed from bug to feature request.  Comment By: Dieter Kaiser (crategus) Date: 20100829 03:38 Message: I do not see a problem and I get the expected results: (%i2) sum((1/4+cos(2*i*%pi)+1/2*cos(4*i*%pi))/n,i,0,n1); (%o2) 7/4 This is the same as (%i26) 7/4*sum(1/n,i,0,n1); (%o26) 7/4 When a division by n is missing in the cos functions we have to use the function simplify_sum to get a simplified result: (%i20) simplify_sum(sum((1/4+cos(2*i*%pi/n)+1/2*cos(4*i*%pi/n))/n,i,0,n1)); (%o20) 1/4 This again is a correct result. The result does not depend on n. Setting the status to pending and the resolution to "works for me". Dieter Kaiser  Comment By: Dženan Zukić (dzenanz) Date: 20100827 21:08 Message: You missed division by n (at the end). And I missed division by n within cosines. I will have to check this again on Monday  I guess I have found a bug in my code now :D  Comment By: Raymond Toy (rtoy) Date: 20100827 19:55 Message: Why is the correct answer 0.25? 0.25+cos(2*i*%pi)+0.5*cos(4*i*%pi) = 0.25 + 1 + 0.5 = 1.75 for all integer i. So it looks like the sum should always be 1.75 to me. Did I miss something?  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3054399&group_id=4933 
From: SourceForge.net <noreply@so...>  20100830 13:49:29

Bugs item #3054399, was opened at 20100827 11:30 Message generated for change (Comment added) made by rtoy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3054399&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  Simplification Group: None >Status: Pending Resolution: Works For Me Priority: 5 Private: No Submitted By: Dženan Zukić (dzenanz) Assigned to: Nobody/Anonymous (nobody) Summary: Sum incorrectly calculated Initial Comment: The commands below are steps to reproduce. The correct sum for n=5 is 0.25. (%i2) declare (n, constant); (%o2) done (%i6) sum((0.25+cos(2*i*%pi)+0.5*cos(4*i*%pi))/n,i,0,n1); (%o6) 1.75 GUI: wxMaxima on Win7 x64  Maxima version: 5.22.1 Maxima build date: 11:48 8/13/2010 Host type: i686pcmingw32 Lisp implementation type: GNU Common Lisp (GCL) Lisp implementation version: GCL 2.6.8   >Comment By: Raymond Toy (rtoy) Date: 20100830 09:49 Message: Look at Dieter's comments. By using simplify_sum, he gets the answer of 1/4, as expected. Marking report as pending.  Comment By: Dženan Zukić (dzenanz) Date: 20100830 06:19 Message: Sorry, when copying the formula from my C++ code into Maxima for debugging purposes, I missed division by n within cosine functions. This is the correct formula: ratsimp(sum(0.5*cos((4*%pi*i)/n)+cos((2*%pi*i)/n)+0.25,i,0,n1)/n); However, this does not simplify in Maxima. In Derive 6.1, it gives the result I was trying to confirm (the result I suspected by tracing variable values in my code): this sum is equal to 0.25. So, this can be changed from bug to feature request.  Comment By: Dieter Kaiser (crategus) Date: 20100828 21:38 Message: I do not see a problem and I get the expected results: (%i2) sum((1/4+cos(2*i*%pi)+1/2*cos(4*i*%pi))/n,i,0,n1); (%o2) 7/4 This is the same as (%i26) 7/4*sum(1/n,i,0,n1); (%o26) 7/4 When a division by n is missing in the cos functions we have to use the function simplify_sum to get a simplified result: (%i20) simplify_sum(sum((1/4+cos(2*i*%pi/n)+1/2*cos(4*i*%pi/n))/n,i,0,n1)); (%o20) 1/4 This again is a correct result. The result does not depend on n. Setting the status to pending and the resolution to "works for me". Dieter Kaiser  Comment By: Dženan Zukić (dzenanz) Date: 20100827 15:08 Message: You missed division by n (at the end). And I missed division by n within cosines. I will have to check this again on Monday  I guess I have found a bug in my code now :D  Comment By: Raymond Toy (rtoy) Date: 20100827 13:55 Message: Why is the correct answer 0.25? 0.25+cos(2*i*%pi)+0.5*cos(4*i*%pi) = 0.25 + 1 + 0.5 = 1.75 for all integer i. So it looks like the sum should always be 1.75 to me. Did I miss something?  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3054399&group_id=4933 
From: SourceForge.net <noreply@so...>  20100830 10:19:29

Bugs item #3054399, was opened at 20100827 17:30 Message generated for change (Settings changed) made by dzenanz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3054399&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  Simplification Group: None >Status: Open Resolution: Works For Me Priority: 5 Private: No Submitted By: Dženan Zukić (dzenanz) Assigned to: Nobody/Anonymous (nobody) Summary: Sum incorrectly calculated Initial Comment: The commands below are steps to reproduce. The correct sum for n=5 is 0.25. (%i2) declare (n, constant); (%o2) done (%i6) sum((0.25+cos(2*i*%pi)+0.5*cos(4*i*%pi))/n,i,0,n1); (%o6) 1.75 GUI: wxMaxima on Win7 x64  Maxima version: 5.22.1 Maxima build date: 11:48 8/13/2010 Host type: i686pcmingw32 Lisp implementation type: GNU Common Lisp (GCL) Lisp implementation version: GCL 2.6.8   >Comment By: Dženan Zukić (dzenanz) Date: 20100830 12:19 Message: Sorry, when copying the formula from my C++ code into Maxima for debugging purposes, I missed division by n within cosine functions. This is the correct formula: ratsimp(sum(0.5*cos((4*%pi*i)/n)+cos((2*%pi*i)/n)+0.25,i,0,n1)/n); However, this does not simplify in Maxima. In Derive 6.1, it gives the result I was trying to confirm (the result I suspected by tracing variable values in my code): this sum is equal to 0.25. So, this can be changed from bug to feature request.  Comment By: Dieter Kaiser (crategus) Date: 20100829 03:38 Message: I do not see a problem and I get the expected results: (%i2) sum((1/4+cos(2*i*%pi)+1/2*cos(4*i*%pi))/n,i,0,n1); (%o2) 7/4 This is the same as (%i26) 7/4*sum(1/n,i,0,n1); (%o26) 7/4 When a division by n is missing in the cos functions we have to use the function simplify_sum to get a simplified result: (%i20) simplify_sum(sum((1/4+cos(2*i*%pi/n)+1/2*cos(4*i*%pi/n))/n,i,0,n1)); (%o20) 1/4 This again is a correct result. The result does not depend on n. Setting the status to pending and the resolution to "works for me". Dieter Kaiser  Comment By: Dženan Zukić (dzenanz) Date: 20100827 21:08 Message: You missed division by n (at the end). And I missed division by n within cosines. I will have to check this again on Monday  I guess I have found a bug in my code now :D  Comment By: Raymond Toy (rtoy) Date: 20100827 19:55 Message: Why is the correct answer 0.25? 0.25+cos(2*i*%pi)+0.5*cos(4*i*%pi) = 0.25 + 1 + 0.5 = 1.75 for all integer i. So it looks like the sum should always be 1.75 to me. Did I miss something?  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3054399&group_id=4933 