Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*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 2001

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

Search the Archive

Re: UnitStep[] Problem.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27328] Re: UnitStep[] Problem.
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Wed, 21 Feb 2001 03:17:00 -0500 (EST)
  • References: <96t8i6$ppr@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Dustin,

It works as expected on 4.1:

Table[UnitStep[x],{x,-3,3}]

        {0,0,0,1,1,1,1}

The Book lists UnitStep as new in Version 4.

I don't have access to Version 3.0 now, so I'm afraid that I can't check if
there was a package for it in Version 3.

--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"Dustin Darcy" <ddarcy at digipen.edu> wrote in message
news:96t8i6$ppr at smc.vnet.net...
> When I type in:
> Table[UnitStep[x], {x, -3, 3}]
>
> it should yield:
> {0,0,0,1,1,1,1}
>
> Instead, though, I get:
> {UnitStep[-3],UnitStep[-2],UnitStep[-1],UnitStep[0],UnitStep[1],UnitStep
> [2],UnitStep[3]}
>
> Is this due to not loading a certain package? I've tried loading
> everything I could possibly imagine, and I've read over every bit of
> documentation I could scrounge up.  However, I've yet to have any luck
> getting it to work.
>
> Oh, it's probably important to mention that I'm dealing with a
> considerably older copy of Mathematica: Mathematica Version 3.0.
> However, it does appear that the UnitStep function should exist.
>
> Thanks for any help.
>
> -----------------------------------------------------------------
> Dustin J. D.
> mr.grinch at gte.net, ddarcy at digipen.edu, emoe at users.sourceforge.net
> 4727 148th Ave NE. Apt #CC203, Bellevue, WA, 98007 USA
> T: 1-425-881-7126, ICQ: 81236750, AIM: DustinDarcy
> IRC: EFNET #chaosengine
> http://www.razingthe.net, http://chaosengine.sourceforge.net
>




  • Prev by Date: A bug of Integrate[] in Mathematica 4.1
  • Next by Date: Re: Hypocycloid Area
  • Previous by thread: Re: UnitStep[] Problem.
  • Next by thread: Hypocycloid Area