working for sqrt(2) example
add poly example