Update log and sqrt.cpp