Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.9K Views
|
4 Replies
|
1 Total Like
View groups...
Share
Share this post:

Erratic spikes in graph from Plot3D

Posted 1 year ago
POSTED BY: David Golber
4 Replies

Beyond the useful possibilities Michael notes, I will emphasize that we cannot readily address what we cannot run. A full example containing code for eFunc would address this shortcoming.

POSTED BY: Daniel Lichtblau
Posted 1 year ago

Here's a simple example.

Attachments:
POSTED BY: David Golber

Unfortunately I cannot replicate those spikes using version 13.2 or 14.0 on Ubuntu Linux. It might be platform dependent.

POSTED BY: Daniel Lichtblau

A point outside a domain can test inside at machine precision either (1) from round-off error or (2) because machine-precisions comparisons are done with tolerance.

The points Plot3D plugs into the function depend on the y range. Change it and I would expect different spikes, if the first paragraph explains the behavior.

I don't have a definitive fix. I base mine on the function being plotted. I might use WorkingPrecision, Internal`$EqualTolerance, SetPrecision, RegionFunction, Exclusions, "ExtrapolationHandler" in interpolating functions, and maybe other things. I probably can't add much more specificity without a specific function to address.

POSTED BY: Michael Rogers
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard