Ask Your Question

meresar's profile - activity

2023-05-13 23:20:07 +0200 received badge  Popular Question (source)
2019-03-11 19:27:03 +0200 commented answer convert .solve output to function

Thank you! This is much better than what I was trying to do which involved translating to a string and back.

2019-03-11 19:25:17 +0200 received badge  Supporter (source)
2019-03-11 19:25:14 +0200 received badge  Scholar (source)
2019-03-07 00:47:06 +0200 received badge  Student (source)
2019-03-07 00:40:41 +0200 asked a question convert .solve output to function

I have a function of two variables and would like to solve for one of the variables and make that a function, eg

t=var('t',domain='real')
z,w=var('z,w')
p(z,w)=5*z^2*w + 3*z*w +2*z
solns=p(e^(I*t),w).solve(w)
solns

and then somehow have the output of that:

[w == -2/(5*e^(I*t) + 3)]

become a function

f(t)=-2/(5*e^(I*t)+3)

Does anyone know a good way to do this? The main issue I'm having is the w== part.