PROGRAMMING:Examples of mathematical functions
Please input and analyze the following code:
```
Case 02-02-06 example of mathematical function
Case code 03-07-01. C
#include "math.h"
#define PI 3.1415926
int main(){
double a,b;
scanf("%lf%lf",&a,&b); /* Enter two real numbers with the format specifier% lf for the double type*/
printf("sin(%lf)=%lf\n",a,sin(a*PI/180));/* A is the angle, then a * pi / 180 is the radian*/
printf("cos(%lf)=%lf\n",a,cos(a*PI/180));
printf("exp(%lf)=%lf\n",a,exp(a));
printf("log(%lf)=%lf\n",a,log(a));
printf("log10(%lf)=%lf\n",a,log10(a));
printf("pow(%lf,%lf)=%lf\n",a,b,pow(a,b));
}
```
Execute the program, input:
Output:
#####Input format:
#####Output format:
#####Input example:
```in
3 2
```
###Output example:
```out
sin(3.000000)=0.052336
cos(3.000000)=0.998630
exp(3.000000)=20.085537
log(3.000000)=1.098612
log10(3.000000)=0.477121
pow(3.000000,2.000000)=9.000000
```
answer:If there is no answer, please comment
```
Case 02-02-06 example of mathematical function
Case code 03-07-01. C
#include "math.h"
#define PI 3.1415926
int main(){
double a,b;
scanf("%lf%lf",&a,&b); /* Enter two real numbers with the format specifier% lf for the double type*/
printf("sin(%lf)=%lf\n",a,sin(a*PI/180));/* A is the angle, then a * pi / 180 is the radian*/
printf("cos(%lf)=%lf\n",a,cos(a*PI/180));
printf("exp(%lf)=%lf\n",a,exp(a));
printf("log(%lf)=%lf\n",a,log(a));
printf("log10(%lf)=%lf\n",a,log10(a));
printf("pow(%lf,%lf)=%lf\n",a,b,pow(a,b));
}
```
Execute the program, input:
Output:
#####Input format:
#####Output format:
#####Input example:
```in
3 2
```
###Output example:
```out
sin(3.000000)=0.052336
cos(3.000000)=0.998630
exp(3.000000)=20.085537
log(3.000000)=1.098612
log10(3.000000)=0.477121
pow(3.000000,2.000000)=9.000000
```
answer:If there is no answer, please comment