[poincare/zoom] Detect explosions

Add a clause in InterestingRangesForDisplay to detect strong variations.
This improve the graph for x^x or x^2+x+1 for instance.

Change-Id: I74214c2382cfe4b0e2603556dd8c6cbd450effc0
This commit is contained in:
Gabriel Ozouf
2020-10-14 11:51:31 +02:00
committed by Émilie Feral
parent 8ce9f363ad
commit 1bfeeb5842
2 changed files with 12 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ private:
static constexpr float k_maximalDistance = 1e5f;
static constexpr float k_minimalDistance = 1e-2f;
static constexpr float k_asymptoteThreshold = 2e-1f;
static constexpr float k_explosionThreshold = 1e1f;
static constexpr float k_stepFactor = 1.1f;
static constexpr float k_breathingRoom = 0.3f;
static constexpr float k_forceXAxisThreshold = 0.2f;