sqrt() function in R Language is used to calculate the mathematical square-root of the value passed to it as argument.
x: Any numerical value greater than 0
 4  4.242641
 2.888816  NaN Warning message: In sqrt(x2) : NaNs produced
Here, in the above code, NaN is produced because we passed a negative value in the sqrt() function.
- Calculate the Root of a Equation within an interval in R Programming - uniroot() Function
- Root-Mean-Square Error in R Programming
- Calculate exponential of a number in R Programming - exp() Function
- Finding Day and Month on a Specific Date in R Language - weekday() and month() function
- Playing a beep Sound in R Language - beep() Function
- Getting attributes of Objects in R Language - attributes() and attr() Function
- Find Location and Character Vector of an Object with partial name in R Language - apropos() and find() Function
- Case conversion of a String in R Language - toupper(), tolower(), casefold() and cartr() Function
- Modify values of a Data Frame in R Language - transform() Function
- Remove Leading whitespaces from a String in R Language - trimws() Function
- Changing row and column values of a Matrix in R Language - sweep() function
- Rounding off values in R Language - round() Function
- Converting a List to Vector in R Language - unlist() Function
- Convert elements of a Vector to Strings in R Language - toString() Function
- Combine Vectors, Matrix or Data Frames by Columns in R Language - cbind() Function
- Getting Multiplication of the Objects passed as Arguments in R Language - prod() Function
- Combine Vectors, Matrix or Data Frames by Rows in R Language - rbind() Function
- Get the natural logarithm of the beta value of Non-Negative numeric vectors in R Language - lbeta() Function
- Generate a Vector of specified length with each element as a unique color on RGB scale in R Language - topo.colors() Function
- Generate a Vector of specified length with each element as a unique color on RB scale in RGB spectrum in R Language - cm.colors() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.