Cody

Problem 46003. Compute Khinchin's constant

Solution 2664086

Submitted on 7 Jul 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   Fail
assert(abs(KhinchinsConstant-2.68545200106530644)<1e-12)

K0 = 2.685451312659852

Assertion failed.

2   Pass
filetext = fileread('KhinchinsConstant.m'); x = ~isempty(strfind(filetext, 'A002210')) || ~isempty(strfind(filetext, '2.68545200106')) ||... ~isempty(strfind(filetext, 'char')) || ~isempty(strfind(filetext,'str2num')) ||... ~isempty(strfind(filetext, 'urlread')); assert(~x, 'Illegal approach. Try one of the formulas on the Wolfram MathWorld page.')

Suggested Problems

More from this Author48

Community Treasure Hunt

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

Start Hunting!