Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- #include <math.h>
- main() {
- double A,B,H,X,Y;
- printf("Y=ln(sqrt(e^x-1)) tabuleerimine 1. meetodiga\n");
- printf("A=");
- scanf("%lf",&A);
- printf("B=");
- scanf("%lf",&B);
- do {
- printf("H (H > 0) = ");
- scanf("%lf",&H);
- } while (H <= 0);
- printf(" ARGUMENT | Funktsioon\n");
- printf("__________________________\n");
- X = A ;
- Y = log( sqrt( exp( X - 1 ) ) );
- while(X == B) {
- printf("%10.4lf | %10.4lf ",X,Y);
- if(X < B) {
- X = X + H;
- } else {
- X = X - H;
- }
- }
- }
Add Comment
Please, Sign In to add comment