Message Boards Message Boards

GROUPS:

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

Posted 10 months ago
1005 Views
|
2 Replies
|
0 Total Likes
|

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:
2 Replies
Posted 10 months ago

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 10 months ago

Thank you.

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