Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: UnitStep

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52343] Re: UnitStep
  • From: Peter Pein <petsie at arcor.de>
  • Date: Wed, 24 Nov 2004 02:32:14 -0500 (EST)
  • References: <cnuoh9$sql$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Blimbaum, Jerry AA R22 wrote:
> Why does the following give me 'indeterminate, infinite expression
> encountered', etc. instead of  zero....
> 
> 
> (1/p) UnitStep[p-1] /.p->0
> 
> 
> I defined a function using the UnitStep because p could  = 0  and I
> thought this would be the way around that problem.......but didnt work
> the way I expected.....
> 
> 
> jerry blimbaum
> 
> 
Jerry,

  what you get is 0/0, which is not (and must not be) defined.

Use If[p<1, 0, 1/p] instead.

-- 
Peter Pein
10245 Berlin


  • Prev by Date: Re: plot Point with several shapes ?
  • Next by Date: Principal Value integral
  • Previous by thread: Re: UnitStep
  • Next by thread: Re: UnitStep