Message Boards Message Boards

Find the average value of the unit pulse using NIntegrate and Unit Steps?

Posted 6 years ago

As shown in the attached notebook, I form a unit pulse function (pt[]) with two time displaced unit steps (UnitStep[]). Then I integrate (NIntegrate[]) to find the average value of the unit pulse. However NIntegrate doesn't seem to want to give me an answer. Any ideas why this might be so?

Thanks.

Attachments:
POSTED BY: Roger Backhus
2 Replies

Good Morning,

The function NIntegate was spelt incorrectly in your file. Note that you also set the limits of the integration the same. I'm pretty sure you intended {t, -tper/2.0, tper/2.0}. Also, I often find in these kinds of problems using the function HeavisideTheta works better than UnitStep.

Jesse Sheinwald

Attachments:
POSTED BY: Jesse Sheinwald
Posted 6 years ago

Thank you.

POSTED BY: Roger Backhus
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract