You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the problem, presumably (lcm not being symbolic in this way):
sage: lcm(10,x)
10*x
We can all be Gauss with this.
sage: sum(lcm(1,x),x,1,100)
5050
The solution is to make sure that lcm(a,b) does something symbolic, or throws an error, when we feed it symbolic entries. Is there already a ticket for this, perhaps?
jdemeyer
changed the title
sum(lcm(10, i), i, 1, 10) gives incorrect answer
Make lcm() symbolic
Dec 10, 2013
From google spreadsheet which no one reads
X-(
CC: @kcrisman @sagetrac-kbaut @sagetrac-jakobkroeker
Component: symbolics
Stopgaps: todo
Issue created by migration from https://trac.sagemath.org/ticket/15497
The text was updated successfully, but these errors were encountered: