Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- int main()
- {
- double a, b, res;
- scanf("%lf %lf", &a, &b);
- if ((sqrt(2.5*a+3*b+sqrt(2)) >= 0) && (b > 1) && (sqrt(2.5*a+3*b+sqrt(2))*log(b) != 0 )){
- res = (sin(pow(a, 3))+2*(pow(cos(b),2)))/(sqrt(2.5*a+3*b+sqrt(2))*log(b));
- printf("result = %lf", res);
- }
- else
- printf("Недопустимая область определения");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement