Pow

Pow is a function that exists in various programming languages that usually takes two numbers as input and returns the first number to the power of the second number

Sqrt

The `sqrt` function returns the positive square root of a number in several programming languages.

Fast implementation accurate

Example |
---|

"My question is is fast sqrt x"from question Is fast implementation of pow(x, 0.5f) faster than fast sqrt(x)? |

"First of all sqrt x should be faster and from question Different results on using sqrt() and pow() functions |

Others

Example |
---|

It works even better when the power is higher but might not be good with powers smaller than 1 indeed pow is a really slow function even slower than sqrt which make sense since any sqrt operation could be done with pow from question Fast image gamma correction |

And as tom karzes mentioned sqrt is from question Programming in C, Using pow function |

Sqrt on the other hand is guaranteed to be correctly rounded by the ieee specification and that s why your code works with sqrt from question Different results on using sqrt() and pow() functions |