On Fri, Aug 26, 2016 at 11:39 PM, Wei, Huayi <weihu...@xtu.edu.cn> wrote:
> Hi, Guys,
>
> I solve an ode and get an  implicit solution as following, and my question
> is how to plot `f` by `implicit_plot` command.
>
> ```
>
> var('t')
>
> y = function('y')(t)
>
> de = diff(y, t)/((2-y)*y) == 1
>
> f = desolve(de, y, [0, 10]) #  the solution is -1/2*log(y(t) - 2) +
> 1/2*log(y(t)) == t + 1/2*log(10) - 1/2*log(8)
> ```
>

sage: var("t,y")
(t, y)
sage: implicit_plot(-1/2*log(y - 2) + 1/2*log(y) == t + 1/2*log(10) -
1/2*log(8), (t, 0, 2), (y, 2.1,10), figsize=4, axes="true" )

worked for me.

For more info on the syntax, see here

http://doc.sagemath.org/html/en/reference/plotting/sage/plot/contour_plot.html#sage.plot.contour_plot.implicit_plot

and also here

http://sagemath.wikispaces.com/implicit_plot

> Thanks
>
> Huayi
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-edu" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-edu+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-edu.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to