Ask Your Question

dan101's profile - activity

2019-12-12 16:04:53 +0200 received badge  Student (source)
2019-12-12 09:38:30 +0200 asked a question 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?