On 04/04/16 17:05, Daniel Lehman wrote: > Try2: handle y == 0 You should probably also check if x and y is finite (I haven't tested it myself). Thanks, Piotr