Re: Programming
- To: mathgroup at smc.vnet.net
- Subject: [mg56551] Re: Programming
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Fri, 29 Apr 2005 03:19:48 -0400 (EDT)
- Organization: Uni Leipzig
- References: <d4q12e$o9p$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
that is a new and strange behaviour, because
Plot[a*Sin[x], {x, 0, Pi}]
will copy the messages in your notbeook
Plot::plnr: a\Sin[x] is not a machine-size real
number at x = \
1.308996938995747`*^-7.
and what stand a the begin of the message ??
"Plot::plnr" does this eventual mean, that the
function Plot[] had generated the message ??
When you write you own function like
myFunction::bad = "This is bad"
myFunction[x_] := If[x > 1,
Message[myFunction::bad]; x, x]
the message is placed in your notbeook and it is
up to you, to find out that "myFunction::bad" is a
message from myFunction.
Regards
Jens
Hermann Schmitt" <schmitther at t-online.de> schrieb
im Newsbeitrag news:d4q12e$o9p$1 at smc.vnet.net...
> Hello,
> if a Mathemamtica program is executed,
> Mathematica separates in the output
> the text of the program from the error messages.
> The conseqence is, that sometimes it is
> difficult, to find the statement,
> which belongs to an error message.
> Is it possible to suppress this separation?
> Or is there any method, which helps to find the
> statement which belongs to
> an error message?
> Hermann Schmitt
>