MATLAB: When I integrate a constant over Tp I should get the constant but I don’t

integrate

I'm attempting to find the average value but have come up against a error.
When I integrate a constant over Tp I should get the constant but I don't?
>> T= 2*pi
>> ao=(1/T)*int(100.0,t,0,T) %Integrate the constant 100 over Tp to find the average
ao =
(143354028480566475*pi)/4503599627370496

Best Answer

Hi,
int is a Symbolic Toolbox function. Use either double or integral for direct numeric computation.
a0 = double((1/T)*int(100.0,t,0,T))