This hole is experimental, no solutions will be saved. Please leave feedback on the GitHub issue.

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
All
Compiled from AT&T syntax to x86-64 Linux. Use syscalls to write output.
Fennel is an experimental language, no solutions will be saved. Please leave feedback on the GitHub issue.
Uiua is an experimental language, no solutions will be saved. Please leave feedback on the GitHub issue.
ctrl + enter or

Delete Solution

Are you sure you want to delete your solution(s) for Quadratic Formula?

If you have separate bytes and chars solutions then both will be deleted.

This is irreversible, please backup any code you care about.

Type I understand and press confirm to continue.