|
From: Daniel V. <dan...@us...> - 2025-12-01 07:40:29
|
--- **[bugs:#4640] Erroneos result of funcsolve** **Status:** open **Group:** None **Created:** Mon Dec 01, 2025 07:40 AM UTC by Daniel Volinski **Last Updated:** Mon Dec 01, 2025 07:40 AM UTC **Owner:** nobody With the following lines: eq:(n+1)*f(n)-(n-1)*f(n-1)=(n+1)/(n-1); funcsolve(eq,f(n)); I get the following result: (n+1)*f(n)-f(n-1)*(n-1) = (n+1)/(n-1) f(n) = (%0*n^2+%1*n+%2)/((n-1)*(n+1)) Which contain %0, %1, %2. This solution is bogus. Barton Willis suggested using trace(solve); before the command funcsolve to get: Barton Willis wrote: Here solve returns the empty list, but it goes ahead and returns a bogus solution: %i3) funcsolve((n+1)*f(n)-(n-1)*f(n-1)=(n+1)/(n-1),f(n)); 1" Enter "solve" "[[%1-%0-1,2*%2-2*%1+4*%0-1,-%2+3*%1-5*%0,4*%0-%1,-%0],[%2,%1,%0]] 1" Exit "solve" "[] (%o3) f(n)=(%0*n^2+%1*n+%2)/((n-1)*(n+1)) Daniel Volinski --- Sent from sourceforge.net because max...@li... is subscribed to https://sourceforge.net/p/maxima/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/maxima/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |