Linked Questions

Popular Questions

When plotting a function (as opposed to numerical data), how can we set the number of sample points (i.e. the number of distinct x coordinates where the function is computed)? Importantly, where can I find this information in the documentation?

Example:

plot(x -> sin(1/x), 0.001, 1)

Plot with insufficient sampling

For a useful plot in the 0–0.25 range we need many more points.

Related Questions