Problem 43968. Concatenated roots

Solution 3303423

Submitted on 21 Oct 2020 by Erind Veruari
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = 1; y = 1; assert(abs(infinteroots(x)-y)<1e-11)

2   Pass
x = 10; y = 52.2735299670437; assert(abs(infinteroots(x)-y)<1e-11)

3   Pass
x=5; y=15.8864718332426; assert(abs(infinteroots(x)-y)<1e-11)

4   Pass
x=6; y=21.7311722059576; assert(abs(infinteroots(x)-y)<1e-11)

5   Pass
x=4; y=10.827015106694; assert(abs(infinteroots(x)-y)<1e-11)

6   Pass
x=3.2; y=7.37887287693964; assert(abs(infinteroots(x)-y)<1e-11)

Suggested Problems

More from this Author8

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!