jaypantone

25 Reputation

One Badge

4 years, 46 days

MaplePrimes Activity


These are replies submitted by jaypantone

@acer Thanks for the tips. The userinfo appears undelayed. Unfortunately it appears with the function name in front of it, like "foo: [message]" and I can't do more than one print on the same line. `print`ing a single character string also de-buffers the printf statements but then you get a lot of " " lines in your code.

For now I'll use the userinfo option.

 

 

If I change every printf([foo]) to print(sprintf([foo])) then all print statements come out as called, though the formatting is poor. This leads me to believe that it is specifically an issue with the buffering of printf.

@acer I'm using Maple 18 on OSX 10.10.4. I'm not very familiar with the GUI, but I believe I'm using a Worksheet.

As the function goes through its steps, it has short printf statements to print current progress. Each printf is a single line of text. In the command line interface, it works fine, and whenever the printf statement is reached the output appears in the terminal. In the GUI, (as Carl Love stated) the output doesn't appear either execution is finished (or sometimes, a block of 100 or so lines will appear all at once in the middle of execution). What I would like is for each line to appear as each printf is called.

I don't want to use a component because I'd like the same version to work in both CLI and GUI interfaces. I can't come up with a simple example that exhibits this issue, but I've experienced this issue with completely unrelated programs, so it's not specific to this implementation.

@Kitonum If you increase Digits, the HFloat(undefined) resolves correctly. This also seems to me like a bug. 

@Carl Love Thanks Carl, this is what I'll use for now, though I worry about propogating error with the high-degree polynomials. Is there some mechanism by which I can report this bug.

Page 1 of 1