I was plotting sin(x)/x and also wanted a seperate plot of sin(x) and x so I could visualize those components as well. However I get an error when plotting x saying "free variable x -> x". If I add a coefficient to h(x) such as
This is the code I am using:
asked Nov 09 '10AaronLS
31 ● 2 ● 3
Given that x is predefined as a variable when you load Sage (that is, when Sage is started it immediately runs the code
It's curious, however, that there is no issue with appending "
Yeah, and the same thing happens with
The exception arises in
so that it assumes if a callable expression doesn't have the variable, it must be a constant. However, it before this asks for
So what we need to do is fix it so that if the operator is
This is now Ticket 10246 .
Edit: Patch at Trac 10246 is now ready for review.
Asked: Nov 09 '10
Seen: 411 times
Last updated: Mar 16 '11
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.