<s>[INST] Here's a program that calculates the roots of a quadratic equation. I want to calculate the roots in a different way than the traditional quadratic equation formula. Instead, I want to calculate the roots as if the equation is a quadratic expression in a different variable, such as `x = a*exp(i*t)`, where `i` is the imaginary unit, `a` is some constant, and `t` is the variable in the quadratic expression. Then, to get the roots, I want to solve for `t`. 

Here's my code:

```python
import cmath

def solve_quadratic(a, b, c):
    discriminant = b**2 - 4*a*c
    root1 = (-b-cmath.sqrt(discriminant))/(2*a)
    root2 = (-b+cmath.sqrt(discriminant))/(2*a)
    return root1, root2

def solve_as_exponential(a, b, c, a_val):
    t_val = solve_quadratic(1, b/a_val, c/a_val**2)
    return t_val

a_val = 1
a, b, c = 1, 2, 3
t1, t2 = solve_as_exponential(a, b, c, a_val)

# Convert t to x
x1 = a_val * cmath.exp(1j*t1)
x2 = a_val * cmath.exp(1j*t2)

# Print roots
print("Roots as exponential:", x1, x2)
```

My code seems to work, but I'm not sure if it's correct. Is there anything I can do to improve it?[/INST]