Ok, i got the point! It worked to me, thanks a lot Harald!
On 08/02/2010 10:39 AM, Harald Schilly wrote:
On Aug 2, 8:09 am, Jose Guzman<n...@neurohost.org> wrote:
I am doing something wrong here? Is the command Solve adequate to solve
this kind of task?
I think you are better off with a numerical solution.
There are two functions, find_minimum_on_interval (and
find_maximum_on_interval) and find_root ... You can use the first one
to find the maximum of your y(t) and the second one to solve fopt(t) =
y-maximum*0.2
sage: var('t')
sage: y(t)=-17.6666666666666* ...
sage: find_maximum_on_interval(y, 0, 5)
(1.34942587519059, 0.27864045000420612)
sage: fopt = y - 1.34942587519059 * 0.2
sage: find_root(fopt, 0, 5)
...
RuntimeError: f appears to have no zero on the interval
which is confirmed by
sage: plot(fopt, 0,5)
Or maybe I did something wrong, but I hope you got the point ;)
H
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org