|
From: Barton W. <wi...@un...> - 2025-10-20 17:56:49
|
If you all are looking for a puzzle that is possibly more fun than Sudoko or Queens, figure out why infsimp is called over 2.4 million times to do the following modest calculation: (%i1) timer(?infsimp)$ (%i2) xxx : product(f(i),i,1,inf)$ (%i3) xxx : subst(f(i) = product(g(k),k,1,inf), xxx)$ (%i4) xxx : subst(g(k) = product(w(m),m,1,inf), xxx)$ (%i5) timer_info(); (%o5) matrix( [function, time\/call, calls, runtime, gctime], [infsimp, 6.329070747905959*10^-5*sec, 2400382, 151.921875*sec, 0], [total, 6.329070747905959*10^-5*sec, 2400382, 151.921875*sec, 0] ) I haven't tried to figure this out. --Barton |