title: How can I incorporate a square root function into this calculator I am trying to make?
body: <p>I am currently making a simple calculator, and I want to incorporate the square root function into it, currently my code looks like this, but it does not work:</p>
  <pre><code>if (&quot;√x&quot;.equals(operator))
  {
  double sqrt = Math.sqrt(num1);
  }    
  </code></pre>
  <p>Here Num 1 is the input number, but I am not able to find or come up with code that would √x.</p>