Strange plotting behaviour- Mathematica 8

Click For Summary
SUMMARY

The discussion centers on unexpected plotting behavior in Mathematica 8 when using LogLogPlot for interpolated functions that approach zero. Users observed that the plots appear to decay to one, suggesting that Mathematica may be interpreting the input as Log(f(x)) instead of Log[f(x)]. This issue arises due to numerical stability when f(x) is very close to zero, specifically around 10^(-10). To resolve this, adjusting the plotting range to ensure f(x) remains positive is recommended.

PREREQUISITES
  • Understanding of Mathematica 8 plotting functions
  • Familiarity with LogLogPlot and its applications
  • Knowledge of numerical stability in computational plotting
  • Basic concepts of function interpolation
NEXT STEPS
  • Explore Mathematica's documentation on LogLogPlot for advanced usage
  • Learn techniques for managing numerical stability in plotting
  • Investigate function interpolation methods in Mathematica
  • Study the behavior of functions approaching zero in graphical representations
USEFUL FOR

Mathematica users, data analysts, and researchers who require precise graphical representations of functions, particularly those dealing with small values and interpolation.

muppet
Messages
602
Reaction score
0
I'm confused by Mathematica's behaviour when plotting some functions I've constructed by interpolating functions. I have three graphs (attached). The first is a plot of the family of functions; they're negative, and decreasing to zero. I tried to do a LogLogPlot to look at their behaviour as they decay, and it looks as if the functions decay to one, as if I was actually plotting Log(f(x)) for small f.

I was looking to see if these functions behaved like 1/x^n for large x, and when comparing one function to x^(-4) it doesn't look as if I'm getting the straight line I expect on a LogLogPlot.

Can someone please explain why? I should point out that my functions are on the order of 10^(-10) over the region I'm plotting.

Thanks in advance.
 

Attachments

  • Screenshot from 2012-09-13 19:30:07.png
    Screenshot from 2012-09-13 19:30:07.png
    21.1 KB · Views: 555
  • loglogplot2.png
    loglogplot2.png
    5.8 KB · Views: 530
Physics news on Phys.org
It is possible that Mathematica is plotting Log(f(x)) instead of Log[f(x)]. This could be due to the fact that f(x) is very close to 0 for the range you are plotting. Mathematica may be interpreting your input as Log(f(x)) instead of Log[f(x)] because it is more numerically stable. If this is the case, then you will need to adjust your plotting range so that f(x) is greater than 0. This should reduce the numerical instability and allow Mathematica to interpret your input correctly.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K