Opened 6 years ago

#20900 new defect

Plot fails for solution of ordinary diff equation

Reported by: fccoelho Owned by:
Priority: major Milestone: sage-7.3
Component: PLEASE CHANGE Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


On sage 7.1 plot is failing for this simple function:

var('t r K')
N = function('N')(t)
diffeq2 = diff(N, t) == r*N*(1-N/K)
sol = desolve(diffeq2,dvar=N, ivar=t)#, ics=(0,10))
plot(sol(r=0.3,K=60, _C=10),(t,0,40))

The error message is this:

verbose 0 (3517:, generate_plot_points) WARNING: When plotting,
failed to evaluate function at 200 points.
verbose 0 (3517:, generate_plot_points) Last error message:
'unable to simplify to float approximation'

Change History (0)

Note: See TracTickets for help on using tickets.