BD^2=BC^2+CD^2=1,BC^2=1-CD^2
AC^2=AB^2-BC^2,AC=AD+CD
(AD+CD)^2=AB^2-BC^2
(5+CD)^2=34-1+CD^2
10CD=8
CD=0.8
AC=AD+CD=5+0.8=5.8