TransWikia.com

Removing artifact in Plot[1-(1-x)^Floor[2/x],{x,0,1/20}]

Mathematica Asked by fgrieu on July 14, 2021

The input

Plot[1-(1-x)^Floor[2/x],{x,0,1/20}]

yields

plot with artifact

where the white space we see below the curve near $x=0.01$ is an artifact. How can we fix this simply? WorkingPrecision -> 999 does not help, the issue is the way $x$ is sampled.

One Answer

Roman gave the solution:

Plot[1-(1-x)^Floor[2/x],{x,0,1/20}, PlotPoints -> 10^4]

yields no artifact

Answered by fgrieu on July 14, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP