数学函数例子大全(国外英语资料).docVIP

  • 14
  • 0
  • 约1.05万字
  • 约 24页
  • 2017-06-23 发布于河南
  • 举报
数学函数例子大全(国外英语资料)

数学函数例子大全(国外英语资料) take a square root Header file: #include math.h Define function: Double sqrt (double x); Function Description: sqrt () is used to calculate the square root of the parameter x, and then returns the result. The argument x must be positive Return value: returns the square root value of the parameter x Error code: EDOM parameter x is negative Additional instructions: use GCC when compiling. Please join -lm. Example Should calculate the square root value of 200. #include math.h (main) { Double root; Root = sqrt (200); Printf (answer is%f\n, root); } implement Answer is 14.142136 Ta

文档评论(0)

1亿VIP精品文档

相关文档