Question: Programming language is C++. Show code and an example of the output on PuTTY when done. Use g++ -std=c++17 -Wall -Wextra -pedantic -fsanitize=address,undefined to compile
Programming language is C++. Show code and an example of the output on PuTTY when done. Use g++ -std=c++17 -Wall -Wextra -pedantic -fsanitize=address,undefined to compile the code on PuTTY.

2. (20 pointsO Write your own cube root function named double my cbrt i(double n using the following Pad, approximant: 101,639 n2+207.953 n+29.7541. -n3+42.945 n2+215,165 n+gg, 1357 and then write a main which prints n cbrton), and my cbrt l(n) for n Tt times 10 to the kth power for k 100, -10, -1, 0, 1, 10, and 100. Use this code for (auto k 100, 10, -1, 0,1, 10, 100) n M PI pow(10.0, k); //cout goes here Name your program hw2pr2.cpp. Note: The formula above is an approximation and so for some values of n it will not be very accurate! Note: On Visual Studio or Xcode you may need to add a line like #define USE MATH DEFINES at the top of your code to activate M PI
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
