0
$\begingroup$

Is there a way to suppress this error message and beep?

$\endgroup$
2
  • 1
    $\begingroup$ Take a look atQuiet. $\endgroup$ Sep 11, 2021 at 21:59
  • $\begingroup$ Turn the message Off: Off[Integrate::idiv] $\endgroup$
    – Bob Hanlon
    Sep 12, 2021 at 4:00

1 Answer 1

1
$\begingroup$

It might be better to suppress the specific message, and let others pass.

enter image description here

code:

ClearAll[x, a]
CurrentValue[$FrontEnd, {"PrintAction"}] = {"PrintToNotebook"};
CurrentValue[$FrontEnd, {"MessageOptions","KernelMessageAction"}] = {"PrintToNotebook", "Beep"};

And now

Quiet[Integrate[(ArcTan[a*x] - ArcTan[b*x])/x, {x, 0,Infinity}], {Integrate::idiv}]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.