added prolongation around 0 for pow and sqrt
I modified pow and sqrt so that they would not produce spurious nan when used on inputs with 0 derivative.
Similar modifications might be needed by other functions (I just changed the one I need).
I modified pow and sqrt so that they would not produce spurious nan when used on inputs with 0 derivative.
Similar modifications might be needed by other functions (I just changed the one I need).