Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Use of the UnitStep function' topicStudent Support Forum > General > Archives > "Use of the UnitStep function"

Next Comment >Help | Reply To Topic
Author Comment/Response
Reza Tajali
03/19/01 09:33am

I am using Version 3. The program does not return a numerical value for computations of UnitStep function. Prcisely speaking:
When I type: Plot[UnitStep[Sin[x]],{x,0,3}]
Mathematica returns an error indicating '' UnitStep[Sin[x]] is not a machine-size real number at x=1.25X10^-6''. the entire text of the error message is attached. Is there a certain parameter I have to set to avoid this machien-size real number issue?


:\!\(\*FormBox[
RowBox[{
\(Plot::''plnr''\), \( : \ \),
''\<''\!\(TraditionalForm\`\(UnitStep(\(sin(x)\))\)\) is not a machine-size \
real number at \!\(TraditionalForm\`x\) = \
\!\(TraditionalForm\`1.24999999999999977`*^-6\).''\>''}], TraditionalForm]\)
Plot::''plnr'':
''\!\(TraditionalForm\`\(UnitStep(\(sin(x)\))\)\) is not a machine-size \
real number at \!\(TraditionalForm\`x\) = \
\!\(TraditionalForm\`1.21700974718747367`\).''
Plot::''plnr'':
''\!\(TraditionalForm\`\(UnitStep(\(sin(x)\))\)\) is not a machine-size \
real number at \!\(TraditionalForm\`x\) = \
\!\(TraditionalForm\`2.54426399578121031`\).''
General::''stop'':
''Further output of \!\(TraditionalForm\`\(Plot :: \''plnr\''\)\) will be \
suppressed during this calculation.''

URL: ,

Subject (listing for 'Use of the UnitStep function')
Author Date Posted
Use of the UnitStep function Reza Tajali 03/19/01 09:33am
Re: Use of the UnitStep function Aaron Honecker 03/22/01 08:07am
Next Comment >Help | Reply To Topic