C++程序  |  3行  |  50 B

Vector3d v(1,2,4);
cout << v.cwiseSqrt() << endl;