title: Math problem unsolved with Python - Cannot find the right answer
body: <p>I wrote this code with the purpose of solving this equation
  <img src="https://i.stack.imgur.com/1Ga9f.png" alt="K Attenuator T formula" />
  where I have the values of R3 (630) and Z (600). But I didn't managed it to solve the equation. I received lots of errors and some wrong answers while working on the code. The answer for k should be 2.33333...</p>
  <pre><code>import math
  from sympy import symbols, Eq, solve
  
  # ATENUADOR PI
  R3 = 630
  Z = 600
  k = symbols('k')
  AdB = symbols('AdB')
  k = solve((R3 * (k ** 2 - 1) / 2 * Z))
  k = max(k)
  </code></pre>
  <p>The errors received by each k = solve(...) i used
  <code>k = solve((R3 * (k ** 2 - 1) / 2 * Z))</code></p>
  <blockquote>
  <p>k = 1</p>
  </blockquote>
  <p><code>k = solve(R2 * (k ** 2 - 1) / (2 * Z))</code></p>
  <blockquote>
  <p>TypeError: unsupported operand type(s) for ** or pow(): 'list' and 'int'</p>
  </blockquote>
  <p><code>k = solve(R2=2 * Z * (k / k ** 2 - 1))</code></p>
  <blockquote>
  <p>TypeError: unsupported operand type(s) for ** or pow(): 'list' and 'int'</p>
  </blockquote>
  <p><code>k = solve((R2 * k ** 2) - R2 - (2 * k * 2))</code></p>
  <blockquote>
  <p>TypeError: unsupported operand type(s) for ** or pow(): 'list' and 'int'</p>
  </blockquote>
  <p>There was still a formula that gave me the value of 1 + sqrt(2), close to the answer, but still not it</p>
  <p>Consider R2 == R3</p>