1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Serggg [28]
3 years ago
12

The following program is suppose to use the sin() function in the math library and write out an input's absolute value over an i

nterval. So for example if sine(0.6) is 0.564 then its absolute value is the same (0.564). But if sine(2.4) is -0.675 then its absolute value is 0.675. #include #include /* has sin(), abs(), and fabs() */ int main(void) { double interval; int i; for(i = 0; i <30; i++) { interval = i/10.0; printf("sin( %lf ) = %lf \t", interval, abs(sin(interval))); } printf("\n+++++++\n"); return 0; }
Computers and Technology
1 answer:
Elza [17]3 years ago
3 0

Answer:

#include <stdio.h>

#include <math.h> /* has sin(), abs(), and fabs() */

int main(void) {

   double interval;

   int i;

   for(i = 0; i <30; i++) {

       interval = i/10.0;

       printf("sin( %.1lf ) = %.3lf \t", interval, abs(sin(interval)));

   }

   printf("\n+++++++\n");

   return 0;

}

Explanation:

The C source code defines a void main program that outputs the absolute value of the sine() function of numbers 0.1 to 3.0.

You might be interested in
How does using wind energy relate to our world today?
Drupady [299]

Answer:

Explanation:

Because the electricity from wind farms is sold at a fixed price over a long ... and wind is now the largest source of renewable power in the United States. ... by the heating of the atmosphere by the sun, the rotation of the Earth, and the ... Wind power must still compete with conventional generation sources on a cost basis.

8 0
3 years ago
Read 2 more answers
While many myths are harmless, why can myths themselves be dangerous?
blondinia [14]

Answer:b

Explanation:

7 0
4 years ago
Fill in the blanks Pasaline could ----- and ------- very easily.​
Artemon [7]

Answer:

<h2>Hot you too friend's house and be safe and have a great time to take care of the following is not a characteristic it was a circle whose equation o</h2>
6 0
3 years ago
Which of the following members of the creative department is responsible for any fixed movement in a video game?
hichkok12 [17]
Answer: animator

Explanation:
i just seems right
7 0
2 years ago
Read 2 more answers
Name two types of bridges and list examples of them.
Lyrx [107]
There is the Golden gate bridge and the Sydney Harbour bridge. (Sydney is my name lol)
7 0
3 years ago
Other questions:
  • Type of file can a user send a technician in order to get help remotely, when using remote assistance
    5·1 answer
  • Select the correct statement below about database services or database instances:
    5·1 answer
  • Which of the following statements is/are true by definition.
    5·1 answer
  • 4-One possible performance multiplication enhancement is to do a shift and add instead of an actual multiplication. Since 9 * 6,
    12·1 answer
  • What are the three types of mergers?
    8·1 answer
  • As designs incorporate new technologies, it can seem like an actor is walking through a projection or even become part of a proj
    10·1 answer
  • What do we call stores in a physical world?
    13·1 answer
  • Line 9 and 10
    15·1 answer
  • One rule in the Java programming language is that you have to place a semicolon at the end of each statement. What is this rule
    10·2 answers
  • You want to purchase a computer, and the salesperson refers to separate pricing for a system unit and for the software applicati
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!