Cody

# Problem 292. Infernal Recursion

Solution 98110

Submitted on 13 Jun 2012 by Aurelien Queffurust
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
%% assert(abs(get_recurse(exp(1),pi,5,7/9)-20.066097534719034)<100*eps)

f = 20.0661 f = 20.0661 f = 20.0661

2   Pass
%% assert(abs(get_recurse(1.01,1.02,5,pi)-4.1026063901404743)<100*eps)

f = 4.1026 f = 4.1026 f = 4.1026

3   Pass
%% assert(abs(get_recurse(3.3,1,5,1/2)-1.5647419554132411)<100*eps)

f = 1.5647 f = 1.5647 f = 1.5647

4   Pass
%% assert(abs(get_recurse(8,9,35,5/11)-1.3002291773509134)<1000*eps)

f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002 f = 1.3002

5   Pass
%% assert(abs(get_recurse(2,5,50,10/21)-1.3133198875358512)<1000*eps)

f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133 f = 1.3133

6   Pass
%% assert(abs(get_recurse(1.5,2,600,1/2)-1.8171205928321394)<1000*eps)

f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171 f = 1.8171