forked from Nastasia8/informatics_42_2021
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#include <iostream> | ||
#include <cmath> | ||
using namespace std; | ||
|
||
int main() | ||
{ | ||
double a=7.2; | ||
double b=4.2; | ||
double x=1.81; | ||
double y1=sqrt((abs(a-b*x))/(pow(log(x),3))); | ||
cout <<"y1= " <<y1 <<endl; | ||
x=5.31; | ||
double y2=sqrt((abs(a-b*x))/(pow(log(x),3))); | ||
cout <<"y2= " <<y2 <<endl; | ||
x=0.7; | ||
double y3=sqrt((abs(a-b*x))/(pow(log(x),3))); | ||
cout <<"y3= " <<y3 <<endl; | ||
x=2.4; | ||
double y4=sqrt((abs(a-b*x))/(pow(log(x),3))); | ||
cout <<"y4= " <<y4 <<endl; | ||
x=2.8; | ||
double y5=sqrt((abs(a-b*x))/(pow(log(x),3))); | ||
cout <<"y5= " <<y5 <<endl; | ||
x=3.9; | ||
double y6=sqrt((abs(a-b*x))/(pow(log(x),3))); | ||
cout <<"y6= " <<y6 <<endl; | ||
x=4.7; | ||
double y7=sqrt((abs(a-b*x))/(pow(log(x),3))); | ||
cout <<"y7= " <<y7 <<endl; | ||
x=1.16; | ||
double y8=sqrt((abs(a-b*x))/(pow(log(x),3))); | ||
cout <<"y8= " <<y8 <<endl; | ||
return 0; | ||
} |