This command plot(k%1,k,0,5) produce an error. That % python operator does differently from "simple" modulo:
>>1.9%1 -0.1 >> 1.5%1 -0.5 >> 2.5 %1 0.5 It was strange that with "k/1" plot works fine but not with "k%1". Pedro On 9 Out, 15:19, Don Krug <dandd.k...@gmail.com> wrote: > On Oct 4, 7:03 pm, jpc <pedrocruzave...@gmail.com> wrote: > > > Why does the plot > > plot(k%1,k,0,5) > > is not produced but the following works: > > k=var('k') > > plot( k/1, k,0,5).show() > > print 1.9%1 > > > What can be used instead ? > > I can't explain the behavior. but wouldn't plot(x-floor(x),0,5) > produce the same output? -- 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