# Quadratic Formula

## Details

Given integer coefficients

a b c

of a quadratic equation

ax^2 + bx + c = 0,

output the corresponding root(s) in exact simplified form

[n1[/d1]] [±] [[i][√]n2[/d2]]

where each bracketed element must be omitted if possible.

If n1 is 0 but n2 is not, remove the space after the ± like so:

1 0 -5 => ±√5

If the solution comes to 0/0, output

indeterminate

If the solution comes to x/0, where x≠0, output

undefined

0 bytes, 0 chars

Restore solution
Compiled from
AT&T syntax to x86-64 Linux. Use
syscalls to write output.

ctrl + enter or