Cody

Solution 466251

Submitted on 4 Jul 2014 by Niels
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
%% [C,E] = scientific_notation(1); assert(abs(C-1)<10^(-10) & isequal(E,0))

ans = 1

2   Pass
%% [C,E] = scientific_notation(100); assert(abs(C-1)<10^(-10) & isequal(E,2))

ans = 1

3   Pass
%% [C,E] = scientific_notation(.0055); assert(abs(C-5.5)<10^(-10) & isequal(E,-3))

ans = 5.5000

4   Pass
%% [C,E] = scientific_notation(3^20); assert(abs(C-3.486784401)<10^(-10) & isequal(E,9))

ans = 3.4868

More from this Author1