Implement a function calculate_treasure_location that determines the coordinates of a treasure based on the number of lines in an ancient document. The function should perform the following:
Functionality:
The function takes an integer input n, which represents the number of lines in the ancient document.
It calculates the treasure's location using a mathematical approach involving polar coordinates.
The function will utilize two arrays to calculate radial distance r and angle d for n lines.
Finally, it will return the coordinates (x, y) of the treasure as a tuple.
Input/Output Requirements:
Input:
An integer n where 1 ≤ n < 1005.
Output:
A tuple (x, y) where:
x is the x-coordinate of the treasure.
y is the y-coordinate of the treasure.
Implementation:
The function must be implemented in a file named /app/solution.py.
Example:
python
# Example input
n = 5
# Example output
calculate_treasure_location(n) # Should return a tuple like (x, y)
Ensure the function handles valid inputs as per the specified range and performs calculations accurately to derive the treasure's coordinates.