Commit 3fd479cd by makuks

Update Homework1.c

parent e37e7c4b
Showing with 3 additions and 3 deletions
...@@ -32,14 +32,14 @@ double denominator; ...@@ -32,14 +32,14 @@ double denominator;
nominator = (2 * x) + 1; nominator = (2 * x) + 1;
denominator = (pow ( 2 * pow( x, 2) + 3 * x +4, 3)); denominator = (pow ( 2 * pow( x, 2) + 3 * x +4, 3) - 7);
if( denominator < 0){ if( denominator < 0){
printf("Function value is a complex number"); printf("Function value is a complex number");
}else{ }else{
if(denominator == 0 || denominator == 49){ if(denominator == 0){
printf("Function value is not available"); printf("Function value is not available");
}else{ }else{
denominator = sqrt( denominator) - 7; denominator = sqrt( denominator);
y = nominator / denominator; y = nominator / denominator;
printf("y value: %lf", y); printf("y value: %lf", y);
printf("\n"); printf("\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment