Cody

Solution 1713110

Submitted on 22 Jan 2019 by Valentin Noël-Youïnou
  • Size: 11
  • This is the leading solution.
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
NaOH=0; % mol sodium_acetate = 0.1; % mol acetic_acid = 0.1; % mol pH = round(buffer(NaOH, sodium_acetate, acetic_acid)*10)/10 pH_correct = 4.7; assert(isequal(pH,pH_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In buffer (line 2) In ScoringEngineTestPoint1 (line 4) In solutionTest (line 3)] pH = 1

2   Pass
NaOH=0.025; % mol sodium_acetate = 0.1; % mol acetic_acid = 0.1; % mol pH = round(buffer(NaOH, sodium_acetate, acetic_acid)*10)/10 pH_correct = 4.9; assert(isequal(pH,pH_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In buffer (line 2) In ScoringEngineTestPoint2 (line 4) In solutionTest (line 5)] pH = 1

3   Pass
NaOH=0.05; % mol sodium_acetate = 0.1; % mol acetic_acid = 0.1; % mol pH = round(buffer(NaOH, sodium_acetate, acetic_acid)*10)/10 pH_correct = 5.2; assert(isequal(pH,pH_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In buffer (line 2) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)] pH = 1