2
$\begingroup$

I am trying to plot some one-variable functions over a very large range, say for example:

Plot[3 t, {t, 0, 10^800}]

However I get an error saying:

Plot::plln: Limiting value 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000<<581>>00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 in {<<1>>} is not a machine-sized real number.

So, how can I get around this and obtain a proper plot while keeping the wide range?

$\endgroup$
2
  • 2
    $\begingroup$ Rescaling. The plot routines work internaly with machine precision. The largest number representable in machine precision is $MaxMachineNumber (about $10^{308}$). So you have to rescale. $\endgroup$ Nov 29, 2018 at 19:17
  • 1
    $\begingroup$ Use LogPlot or LogLogPlot. $\endgroup$ Nov 29, 2018 at 19:53

2 Answers 2

3
$\begingroup$
LogLogPlot[3 t, {t, 0, 10^800}]

enter image description here

$\endgroup$
1
$\begingroup$

You can also use the option ScalingFunctions -> {"Log", "Log"}:

Plot[3 t, {t, 0, 10^800}, ScalingFunctions -> {"Log", "Log"}]

enter image description here

$\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.