1
$\begingroup$

I am trying to plot a figure by the following codes:

Plot[(27 2^((-2 + a)/(-1 + a)) 5^(a/(-1 + a)) 7^(1/(1 - a)) 
      a^2)/((-1 + a) (4 + 9 a)), {a, 1.001, 3}]

When running the above program, the warning appeared:

General::munfl: 1/7^960.765 is too small to represent as a normalized machine number; precision may be lost.

How can I fix this problem? I have tried to set a higher WorkingPrecision value, but it didn't work.

$\endgroup$
10
  • 1
    $\begingroup$ I'd just add Quiet@Plot[... it does not affect anything in terms of the plot. It is just saying it is too small of a number. $\endgroup$
    – Nasser
    Commented Nov 21, 2022 at 11:22
  • $\begingroup$ @Nasser Thanks. I knew this method, but I think this method only "escaped" the problem rather than really solved it. I would like to know if there is other ways to fix the problem. $\endgroup$
    – Ya He
    Commented Nov 21, 2022 at 11:28
  • 1
    $\begingroup$ Machine numbers have a gap between zero and the next larger number. For Plotting purposes this warning may be ignored and do as Nasser suggest. $\endgroup$ Commented Nov 21, 2022 at 11:29
  • $\begingroup$ {a, 1 + 1/100, 3} $\endgroup$
    – cvgmt
    Commented Nov 21, 2022 at 11:29
  • $\begingroup$ @cvgmt Pls note that the starting point is 1.001, not 1.01. $\endgroup$
    – Ya He
    Commented Nov 21, 2022 at 11:32

0