Guide: Fix use of sqrt() in example

Adapted the use of `sqrt()` to fix a compilation error.