Try with sqrt instead of pow