| 1 | initial version |
The workaround here is to use a lambda expression.
This is a very general trick for any plotting problem where there are problems with the function or expression.
Using the following should get you the plot you want.
sage: plot(lambda x: f(x), (2, 6))
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.