Simple if/else function won't plot

March 10 2010 by 848380 228
false
Maple

0


f := x -> if(x<=0, 0, 1):
#plot(f(x),x=-10..10):
#plot(f,-10..10):
plot(sum(f,i=-infinity..infinity),-10..10);
plot(sum(f(i),i=-infinity..infinity),-10..10);

Why do the first two plots work, but the third and fourth doesn't? How do I plot the sum of this function in a specific range?

 
Loading Comments & Answers

You must be logged into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account