Calculating accuracy of decimal places and print out the values
Show older comments
How to find the accuracy of decimal places between the integral approximation and the MATLAB built-in integral function? Eg: if my approximation is 0.50000000 and the true value is 0.52359878, and error is 0. 0 2359878, there is one 0 in front of the error value, '0.0', so the Decimal place will be 1, and when approximation is 0.51666667, error will be 0. 00 693211, there is two 0 , so decimal place will be 2.
Also, how do i only print the approximation and the error values when the decimal place has increased by 1?
1 Comment
Walter Roberson
on 10 May 2018
Please do not close questions that have an Answer.
Accepted Answer
More Answers (1)
Jaidyn Lai
on 10 May 2018
0 votes
ENG1060 assignment I see
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!