Plot function with option Mesh->All shows how mathematica evaluates function to make it most optimal for plotting.
I'd like to evaluate some physical function in those points - in other words, I'd like to have more points where function behaves aggressively and only a few where it is constant. Is there any way to do it? Will it cost much computational time? (Plotting of functions is much slower than computing them, though I don't know the reason)
In the end instead of evaluating f[x] for x in Subdivide[0,1,n], I'm seeking to evaluate them in points selected by Mathematica algorithm



Plotis not particularly good at picking numerical points. – Michael E2 Jul 23 '20 at 02:24