bally英国官网:cos(x)=0.6667

来源:百度文库 编辑:中科新闻网 时间:2024/04/30 15:45:55

#include <math.h>
double x = 0;

x = acos(0.6667);
printf ("%lf",x);

不知道你想要什么语言
你是想求0.6667的反余弦吧
C语言就是 C++是
#include<stdio.h> #include<iostream>
#include<math.h> #include<cmath>
int main() using namespace std ;
{ int main(){
double a = acos(0.6667) ; double a = acos(0.6667) ;
printf("%lf" , a ); cout << a << endl ;
} }

在 VB:
Print "Cos(x)=0.6667, x = " & Atn(Sqr(1 - 0.6667 ^ 2) / 0.6667)

48.1897