Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <cmath>
- int main() {
- printf("Avtor – Klipikov A.V., student gr. PIbd-11\n");
- printf("Variant N 23\n");
- printf("Programma vvodit znachenie argumenta x i vichislaet znachenie func Y\n");
- printf(" | 1 / ln(x * x * x) x > 4.5\n");
- printf("Y = | 2 * x + 0.1 0 <= x <= 4.5\n");
- printf(" | 3 x < 0\n");
- printf("vvedite x = ");
- double x = 0, y = 0;
- scanf("%lf", &x);
- y = x > 4.5 ? 1 / log(x * x * x) : x >= 0 ? 2 * x + 0.1 : 3;
- printf("Y = %lf", y);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement