Région de recherche :

Date :

https://www.programiz.com › c-programming › library-function › math.h › sqrt

C sqrt() - C Standard Library - Programiz

Learn how to use the sqrt () function in C programming to calculate the square root of a number. See the function prototype, header file, arguments, return type and examples.

https://www.geeksforgeeks.org › sqrt-function-in-c

sqrt () Function in C - GeeksforGeeks

Learn how to use the sqrt () function in C to calculate the square root of a given number. See syntax, parameters, return value, examples and time complexity of sqrt () function in C.

https://www.tutorialspoint.com › c_standard_library › c_function_sqrt

C library - sqrt() function - Online Tutorials Library

Learn how to use the C library sqrt () function to calculate the square root of a floating point number. See syntax, parameters, return value, examples and a table of square roots.

https://stackoverflow.com › questions › 4120592

C programming sqrt function - Stack Overflow

#include <math.h> #include <stdio.h> int main(void) { double x = 4.0, result; result = sqrt(x); printf("The square root of %lf is %lfn", x, result); return 0; } This code does not work because it is taking the square root of a variable. If you change the sqrt(x), to sqrt(20.0), the code works just fine, why? Please explain.

https://www.programmingsimplified.com › c › math.h › sqrt

sqrt in C - Programming Simplified

Learn how to use the sqrt function in C to calculate the square root of a number. See examples, syntax, declaration and output of the function.

sqrt in C - Programming Simplified

https://en.cppreference.com › w › c › numeric › math › sqrt

sqrt, sqrtf, sqrtl - cppreference.com

Learn how to use the sqrt, sqrtf, and sqrtl functions in C++ to calculate the square root of a floating-point number. See the syntax, parameters, return value, and compiler support for these functions.

https://koor.fr › C › cmath › sqrt.wp

Fonctions sqrt, sqrtf et sqrtl - Langage C - KooR.fr

Apprenez à utiliser les fonctions sqrt, sqrtf et sqrtl pour calculer la racine carrée d'un nombre positif en C. Découvrez les paramètres, les types de données, les valeurs de retour et les exemples de code de ces fonctions.

https://www.techonthenet.com › c_language › standard_library_functions › math_h › sqrt.php

C Language: sqrt function (Square Root) - TechOnTheNet

(Square Root) In the C Programming Language, the sqrt function returns the square root of x. Syntax. The syntax for the sqrt function in the C Language is: double sqrt(double x); Parameters or Arguments. x. A value used when calculating the square root of x. Returns. The sqrt function returns the square root of x.

https://codelessons.dev › en › sqrt-in-c-cplusplus

sqrt in C/C++: calculating square root - codelessons.dev

Learn how to use the built-in sqrt function in C/C++ to compute the square root of a number, and how to create your own version of the function. Also, compare the differences between sqrt, sqrtf, and sqrtl functions and their results.

https://codetofun.com › c › math-functions › sqrt

C sqrt() Function - CodeToFun

Learn how to use the sqrt() function in C to find the square root of a number. See syntax, example, return value, common use cases, and optimization tips.

C sqrt() Function - CodeToFun