Tell me more ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

The following has no solution:

FindRoot[x == 1, {x, 0.25, 0, 0.5}]

And Mathematica correctly warns us:

FindRoot::reged: The point {0.5} is at the edge of the search region {0.,0.5} in coordinate 1 and the computed search direction points outside the region.

If we use Quiet, we correctly suppress the message.

The following is exactly the same system, but here we ask for a specific numerical method

FindRoot[x == 1, {x, 0, 0.5}, Method -> "Brent"]

And we receive a similar warning:

FindRoot::bbrac: Method -> Brent is only applicable to univariate real functions and requires two real starting values that bracket the root.

But this time, if we add Quiet, we still receive the same warning.

Why isn't Quiet working (is it a bug)?

share|improve this question
I'd say it's a bug. It's possible to shut it up by using both Check and Quiet: Quiet@Check[FindRoot[x == 1, {x, 0.25, 0, 0.5}, Method -> "Brent"], foo] – Szabolcs Feb 24 at 13:56
@Szabolcs I'll use Check to solve my problem, and I'll wait some more comments/answers before posting it to support. Thank you. – P. Fonseca Feb 24 at 13:59
I remember another question about Quiet not suppressing certain messages. Does anyone recall which it is? EDIT: No, it was the converse syndrome: (14140) – Mr.Wizard Feb 24 at 14:05
Quiet and ; together stop the message too. Could also use Off[FindRoot::bbrac] – Sjoerd C. de Vries Feb 24 at 14:41
2  
I'd say it's a bug. TracePrint reveals two calls to Message[FindRoot::bbrac]. – Sjoerd C. de Vries Feb 24 at 14:49
show 4 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.