Post Reply 
sum command...
10-12-2017, 01:13 AM
Post: #10
RE: sum command...
I'm not a CAS expert, so you could look at the XCas source code if you really want to see how it does it, but I do know if you try the sum() function with arguments that are functions of different variables, it'll be a lot more complex than simply calling the same function over and over again. e.g. This SUM(1/y^2,y,x,1000x) results in Psi(x,1)-Psi(1000*x+1,1).

The sigma function is way way faster as it's just doing what that pseudocode does (calling the same function over and over again). e.g. Sum with an upper limit of 5000 takes about 20 seconds, but sigma returns an answer immediately.

FYI, the XCas source code is here...
https://www-fourier.ujf-grenoble.fr/~parisse/giac/src/
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
sum command... - webmasterpdx - 10-11-2017, 05:01 AM
RE: sum command... - parisse - 10-11-2017, 05:06 AM
RE: sum command... - AlexFekken - 10-11-2017, 05:14 AM
RE: sum command... - webmasterpdx - 10-11-2017, 09:07 AM
RE: sum command... - AlexFekken - 10-11-2017, 12:25 PM
RE: sum command... - Didier Lachieze - 10-11-2017, 09:26 AM
RE: sum command... - webmasterpdx - 10-11-2017, 10:19 AM
RE: sum command... - webmasterpdx - 10-11-2017, 01:41 PM
RE: sum command... - AlexFekken - 10-11-2017, 11:11 PM
RE: sum command... - webmasterpdx - 10-12-2017 01:13 AM
RE: sum command... - parisse - 10-12-2017, 06:23 AM
RE: sum command... - AlexFekken - 10-12-2017, 06:38 AM
RE: sum command... - AlexFekken - 10-12-2017, 05:04 AM
RE: sum command... - webmasterpdx - 10-12-2017, 07:18 AM
RE: sum command... - parisse - 10-12-2017, 12:10 PM
RE: sum command... - DrD - 10-12-2017, 09:29 AM
RE: sum command... - webmasterpdx - 10-12-2017, 01:02 PM



User(s) browsing this thread: 1 Guest(s)