integrate Principal Value message



On Thu, Nov 3, 2011 at 12:33 PM, Edwin Woollett <woollett at charter.net>wrote:

> On Nov. 3, 2011, I wrote:
> ------------------------------**--
>
>> Thanks for the suggestion, but if I use this inside shared
>> packaged code, as in Ch. 8, I have the problem that the
>> specification of the dump file name appears to be system
>> dependent (at least unix vs. windows):
>>
>
> Again using my windows 5.25.1gcl system, just using the
> default working folder, as in
>
> (%i56) with_stdout("null.txt",
> integrate(sin(x)*(sin(x^2)*(sin(x^3)+1/x)+1/x),x,0,inf));
>
>
The "null" device in Lisp is created by make-broadcast-stream.   This works
for me:

with_stdout(?make\-broadcast\-stream,
  print("Hello, world"),
  t);

Perhaps there's already a way to create such a stream in maxima, but I
couldn't find it.

Ray