Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Flow charts for the following C Program Please write the program in C language were the and corner. Antar results from and The prognathew Anghe

Flow charts for the following C Program
image text in transcribed
image text in transcribed
image text in transcribed
Please write the program in C language were the and corner. Antar results from and The prognathew Anghe must be in The precision of the result should be at least Calcup when the To se The funcions, tanmath NOT Marliested to determine ponorat to be N100 er ange rate. GEO Gr 12 Enter angle 00:25 CODE: // this useion takes anders erot Posts Flott. float si Lat RI for CB0) L-1) /*** ines een the function take angle tudi zarastot float of Fot. 1. cines LAR Lex Mai Ist wheel // set to enter the ce printf("Choose Sanction 11 i 1) can'a'choice W show the printing site of it the Primiter anglende cantit. - 2 primist.211 - 1.6. , _ 1 chose the printing one of Printer in die counter". towe Halline primic... 1 We chose things 1t schade Enter agenda W calling and codine te lexing Float can con 1 ver Write a program that uses the Maclaurin series to determine the trigonometric functions sin() and cos() result of an angle x. Additionally, tan() must also be determined using past results from sin() and cos(). The program must fulfil these requirements: Angle x must be in radians. The precision of the result should be at least 4 decimal places. Calculation must stop when the result is within 1e 7 of the actual value. The functions sin(), cos(), tan() in math.h ARE NOT allowed to be used! . Maclaurin series is used to determine trigonometric results. Let the maximum number of Iterations be N = 100. $ ( Sinx = (-1)*yakaz (2k + 1)! N COS Y = (-1)*x2 (2k)! sinx tn = COS X Examples: Choose function (1) sine(x) or [2] cosine(x) or (3] tangent(x): 1 Enter angle x in radians: 6.8 sine(0.80) = 0.717356 Choose function (1) sine(x) or (2) cos ine(x) or (3] tangent(x): 2 Enter angle x in radians: 1.3 cosine(1.30) = 0.267499 Choose function (1) sine(x) or (2) cosineix] or [3] tangent(x): 3 Enter angle x in radians: 0.64 tangent(0.64) = 0.744544 Please write the program in C language were the and corner. Antar results from and The prognathew Anghe must be in The precision of the result should be at least Calcup when the To se The funcions, tanmath NOT Marliested to determine ponorat to be N100 er ange rate. GEO Gr 12 Enter angle 00:25 CODE: // this useion takes anders erot Posts Flott. float si Lat RI for CB0) L-1) /*** ines een the function take angle tudi zarastot float of Fot. 1. cines LAR Lex Mai Ist wheel // set to enter the ce printf("Choose Sanction 11 i 1) can'a'choice W show the printing site of it the Primiter anglende cantit. - 2 primist.211 - 1.6. , _ 1 chose the printing one of Printer in die counter". towe Halline primic... 1 We chose things 1t schade Enter agenda W calling and codine te lexing Float can con 1 ver Write a program that uses the Maclaurin series to determine the trigonometric functions sin() and cos() result of an angle x. Additionally, tan() must also be determined using past results from sin() and cos(). The program must fulfil these requirements: Angle x must be in radians. The precision of the result should be at least 4 decimal places. Calculation must stop when the result is within 1e 7 of the actual value. The functions sin(), cos(), tan() in math.h ARE NOT allowed to be used! . Maclaurin series is used to determine trigonometric results. Let the maximum number of Iterations be N = 100. $ ( Sinx = (-1)*yakaz (2k + 1)! N COS Y = (-1)*x2 (2k)! sinx tn = COS X Examples: Choose function (1) sine(x) or [2] cosine(x) or (3] tangent(x): 1 Enter angle x in radians: 6.8 sine(0.80) = 0.717356 Choose function (1) sine(x) or (2) cos ine(x) or (3] tangent(x): 2 Enter angle x in radians: 1.3 cosine(1.30) = 0.267499 Choose function (1) sine(x) or (2) cosineix] or [3] tangent(x): 3 Enter angle x in radians: 0.64 tangent(0.64) = 0.744544

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions