求值 -arccos(-1)

来源:百度知道 编辑:UC知道 时间:2024/06/30 04:25:45
求值 过陈

这个不是有函数的吗?

例子:

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>

void main( void )
{
double x, y;

printf( "Enter a real number between -1 and 1: " );
scanf( "%lf", &x );
y = asin( x );
printf( "Arcsine of %f = %f\n", x, y );
y = acos( x );
printf( "Arccosine of %f = %f\n", x, y );
}