Hi all! I do not know - it is an bug, or my mistake. I am trying to plot sum of a few same functions:
This is my function: B=10*sqrt( pi)/7; b=pi/7; c(f)=B*exp(-(b*f)^2); plot(c(f),(f,-5,5)); in the output i see correct graphic. Then i have define a function to calculate sum: def specsum(x,Fdesc): result=0; for i in range(-2,3): xi=i*Fdesc; result+=c(x-xi); return result; then plotting... p1=plot(specsum(x,5),(x,-2.5,2.5)); show(p1) i see graphic, and i think its wrong, because then x -3..-1 it cross the X-Axis. then i thought that it is wrong axis, so trying to plot my own zero-line: p2=line([[-10,0],[10,0]]); show(p2) and then trying to plot both graphics: show(p1+p2) only now i see correct graphic. so... is it bug or my mistake (and what can i do to avoid it in future?) Sage worksheet: http://75.75.6.176/home/pub/2/ --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---