Question: Calculation of Summation over 0^i

Hello, I have the following problem in Matlab. I was hoping someone could tell me what I am doing wrong or why my expectations are wrong: I try to calculate a basic summation of sum(0^i, i = 0 .. 4). When calculated using Matlab 13, I get an output of 0. I was expecting this to be one, moreover because 0^0+0+0^2+0^3+0^4 equals 1. Besides, sum(p^i, i=0 .. 4), calculated by Maple gives me an outcome of 1+p+p^2+p^3+p^4. Substituting p for 1 gives an outcome of 1. So, can somebody tell me why Maple calculates sum(0^i, i = 0 .. 4) as 0 instead of 1? Thanks you!
Please Wait...