Re: UnitStep
- To: mathgroup at smc.vnet.net
- Subject: [mg40049] Re: UnitStep
- From: Bill Rowe <listuser at earthlink.net>
- Date: Mon, 17 Mar 2003 03:35:13 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
On 3/16/03 at 2:20 AM, Knut.Schroder at chem.ntnu.no (Knut Henning Schroder) wrote: >In Mathematica 4.0 for windows I use >Plot[{UnitStep[Sin[x] - 6/10], Sin[x] - 6/10}, {x, 0, 60}] >but it seems that some of the pulses are missing, as for x=27 where >UnitStep[Sin[27] - 6/10] =1 >Please give me an explanation. This is caused by the sampling algorithm Mathematica uses. With the default settings, Mathematica simply isn't sampling the function Sin[x] at points where it is greater than 6/10 for the missing pulses. Consequently, no pulse is drawn. On my machine, adding PlotPoints->30 fixes the problem.