| 1 | initial version |
Yup! That's because 2(a-1) does not make sense in Sage. If you had defined f(x)=2+x or something, f(a-1) would be legal.
However, since you were probably trying to do implicit multiplication (as opposed to explicit 2*(a-1)), there is another option. You can turn on implicit multiplication if you wish. But beware - it is fragile! Good luck.
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.