------
## 最终结论
```python
import math

def minimum_square_side(n):
    angle = math.pi / (2 * n)
    return 1 / math.sin(angle)

def main():
    T = int(input().strip())
    results = []
    
    for _ in range(T):
        n = int(input().strip())
        side_length = minimum_square_side(n)
        results.append(f"{side_length:.9f}")
    
    for result in results:
        print(result)

main()
```