Cody

# Problem 2806. Radiation Heat Transfer — View Factors (2)

Solution 2500736

Submitted on 8 Jun 2020
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
a = 1; b = 1; c = 2; y_correct = 0.6847; F = view_factor2(a,b,c); assert(F < (y_correct + 1e-4))

B = 1 C = 2 F = 0.6847

2   Pass
a = 4; b = 1; c = [2 4 8]; y_correct = [0.2409 0.4450 0.7057]; F = view_factor2(a,b,c); for i = 1:numel(y_correct) assert(F(i) < (y_correct(i) + 1e-4)) assert(F(i) > (y_correct(i) - 1e-4)) end

B = 0.2500 C = 0.5000 1.0000 2.0000 F = 0.2409 0.4450 0.7057

3   Fail
a = [1 2 5 10]; b = [2 5 2 5]; c = [6 6 10 10]; y_correct = [0.9435 0.7582 0.7036 0.4384]; F = view_factor2(a,b,c); for i = 1:numel(y_correct) assert(F(i) < (y_correct(i) + 1e-4)) assert(F(i) > (y_correct(i) - 1e-4)) end

B = 2 C = 6 F = 0.9435 B = 2.5000 C = 3 F = 0.7582 B = 0.4000 C = 2 F = 0.7036 B = 0.5000 C = 1 F = 0.4384

Assertion failed.