编程时圆周率的精确取值

来源:互联网 发布:华为云计算 编辑:程序博客网 时间:2024/05/16 09:37
圆周率用p表示

#include<math.h>
cos(180~)=-1;
p=acos((double)-1);

这样就可以求出圆周率的精确值。
原创粉丝点击