Cody

Solution 990772

Submitted on 3 Oct 2016 by Michael C.
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
v = 0.2; Is = 1*10^-8; Vt = 0.026; i_correct = Is*exp(v/Vt); assert(isequal(diode(v),i_correct))

2   Pass
v = 0.7; Is = 1*10^-8; Vt = 0.026; i_correct = Is*exp(v/Vt); assert(isequal(diode(v),i_correct))

3   Pass
v = 0.026; Is = 1*10^-8; Vt = 0.026; i_correct = -Is; assert(isequal(diode(v),i_correct))

4   Pass
v = -1; Is = 1*10^-8; Vt = 0.026; i_correct = -Is; assert(isequal(diode(v),i_correct))

Suggested Problems