1

I want to have a half circle function from $x=0$ to $x=0.056$ with $f(0)=0$ and $f(0.056)=0$, and the highest point at $f(0.056/2) = 0.001$

I tried: $$ f(x) = \sqrt{0.001^2 - ( ( [0.001\times0.056]-x ) / 0.056)^2 } $$ but it will give me an error, because the number in the sqrt gets negative.

Martin Argerami
  • 217,281
thale00
  • 21
  • 3

1 Answers1

1

Hint: Suppose the center is at $(a,b)$ and the radius is $r$, so that the equation of the circle is of the form $$(x-a)^2 + (y-b)^2 = r^2.$$ Since you know three points on the circle, you can write a system of three equations in three unknowns. Solve that system for the unknown parameters $a$, $b$, and $r$. Your function will be $$f(x)=b + \sqrt{r^2 - (x-a)^2}$$ This function has domain $[a-r, a+r]$, the projection of the horizontal diameter onto the $x$-axis.

MPW
  • 44,860
  • 2
  • 36
  • 83