Ask Your Question

Revision history [back]

Like this (for instance setting the integration constant to 2):

sage: sol2 = sol.subs({SR.var('_C'): 2})
sage: print("sol = {}".format(sol2))
sol = 2