How to transform fxy.solve(y) into function I can plot?
hello world,
I am running SageMath 8.9 on Ubuntu.
I wrote a simple script:
var('x y')
fxy = y -1/x + 1
fexplicit = fxy.solve(y)
print(fexplicit)
I ran it and saw this:
[
y == -(x - 1)/x
]
Next, I tried to plot the solution:
plotme = fexplicit[0]
plot(plotme, (x, -0.5, 2))
SageMath gave me an error:
ValueError: Variable 'y' not found
Question: How to transform fxy.solve(y) into function I can plot?