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
PolarNik [594]
3 years ago
6

Write a C program that asks the user for an angle in degrees and a number of terms, and calculates the Taylor series expansion o

f the cosine of the angle using the number of terms specified. The program should print the result and it should also print the value of the cosine using the cos function from math.h
Computers and Technology
1 answer:
nordsb [41]3 years ago
7 0

Answer:

int main(){

   double degree;

   printf("Enter your angle value in degree:");

   scanf("%If",&degree);

   double radian = degree * (M_PI/180);

    printf("sin value is %IF\n",sin(radian));

      printf("cos value is %IF\n",cos(radian));

      printf("tan value is %IF\n",tan(radian));

         return 0;

Explanation:

to solve the problem, first you will need to import the math.h header function.

All of these methods take one double value as argument and returns the result as double.

The argument should be in radian, so is the user input is in degree, we need to convert it to radian by multipling the value PI/180. MI_PI is defined in math.h and it holds the value of PI.

After converting it to radian, we can calculate and print out sin, cos and tan values.

To make the conversion, just use sin(), cos(), and tan()

You might be interested in
having one password for all accounts is an easy way to remember passwords, but it will expose you to what risk?
VLD [36.1K]
If all accounts you have have the same password, then if someone gets the password to one account, then that person has access to all your accounts.
4 0
4 years ago
George wants to pursue a career in web technology as a web developer. Which certifications can help him as a web developer?
skelet666 [1.2K]

Answer:Google Analytics IQ.

he can use this

Explanation:

3 0
3 years ago
Return a formatted string with numbers The function below takes three numerical inputs: num1, num2, and num3. Implement it to re
alexira [117]

Answer:

In Python:

def ret_formatted(num1,num2,num3):

   result = str(num1)+"_"+str(num2)+" ! "+str(num3)

   return result

Explanation:

This defines the function

def ret_formatted(num1,num2,num3):

This generates the output string

   result = str(num1)+"_"+str(num2)+" ! "+str(num3)

This returns the result string

   return result

3 0
3 years ago
Hiw is Apple planning on returning to the music business​
inna [77]
By making more iPods
5 0
3 years ago
When an event occurs, the agent logs details regarding the event. what is this event called?
Nimfa-mama [501]

If an event occurs, the agent logs details regarding the event. what is this event called GET.

The information in the agent log file is known to be the beginning of the log file, which is stated to show the agent's launch and handling of the services and configuration settings.

Keep in mind that the agent log also contains a history of the activities performed by the agent during runtime, along with any errors, and that it is utilised to investigate deployment issues.

As a result, if an event happens, the agent logs information about it. What is this GET event, exactly?

The agent monitoring services' startup and configuration settings are displayed at the log file's beginning. The sequence of agent runtime activity and any observed exceptions are also included in the agent log.

Learn more about agent logs:

brainly.com/question/28557574

#SPJ4

8 0
1 year ago
Other questions:
  • Software that helps you navigate the web is called
    9·1 answer
  • What will be printed when the method printstuff is called?
    7·1 answer
  • Explain and Define the four types of maintenance in IT?
    11·1 answer
  • What would be a situation in which you could use an Excel chart to present your data?
    11·2 answers
  • Construct a regular expression that recognizes the following language of strings over the alphabet {0 1}:
    10·1 answer
  • This type of connector is the most common for connecting peripherals (printers, monitors, storage devices, etc.) to a windows co
    10·1 answer
  • Advancements in technology have made the global marketplace more accessible. True O False​
    11·2 answers
  • Periodic Table Question 2:
    9·1 answer
  • Why is it important to prevent financial loss
    7·1 answer
  • The software/system that helps make sure the retail firm doesn't have a stockout is?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!