QUESTION 1 (12 MARKS) Write a complete CH+ program based on the following pseudocodes. The functions f(x)= 3x - cosx-1 a
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
QUESTION 1 (12 MARKS) Write a complete CH+ program based on the following pseudocodes. The functions f(x)= 3x - cosx-1 a
QUESTION 1 (12 MARKS) Write a complete CH+ program based on the following pseudocodes. The functions f(x)= 3x - cosx-1 and g(x)= 3 +sin x need to be initialized at the pre-processing area as user defined mathematical functions. Set s = 1, error=0.00001, x1 = 2; do fl= f(xl); gl = g(xl); x2 = x1 - 1 Display s, x2, f(x2); x1 = x2: ses+1; 12 = f(x2): while/2>error
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!