Cody

# Problem 1811. 05 - Vector Equations 3

Solution 309804

Submitted on 23 Aug 2013 by Paul Berglund
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
%% dVec = logspace(0,1,101); ref = log10(1./dVec); user = MyFunc(); assert(isequal(user,ref))

b = Columns 1 through 10 0 -0.0100 -0.0200 -0.0300 -0.0400 -0.0500 -0.0600 -0.0700 -0.0800 -0.0900 Columns 11 through 20 -0.1000 -0.1100 -0.1200 -0.1300 -0.1400 -0.1500 -0.1600 -0.1700 -0.1800 -0.1900 Columns 21 through 30 -0.2000 -0.2100 -0.2200 -0.2300 -0.2400 -0.2500 -0.2600 -0.2700 -0.2800 -0.2900 Columns 31 through 40 -0.3000 -0.3100 -0.3200 -0.3300 -0.3400 -0.3500 -0.3600 -0.3700 -0.3800 -0.3900 Columns 41 through 50 -0.4000 -0.4100 -0.4200 -0.4300 -0.4400 -0.4500 -0.4600 -0.4700 -0.4800 -0.4900 Columns 51 through 60 -0.5000 -0.5100 -0.5200 -0.5300 -0.5400 -0.5500 -0.5600 -0.5700 -0.5800 -0.5900 Columns 61 through 70 -0.6000 -0.6100 -0.6200 -0.6300 -0.6400 -0.6500 -0.6600 -0.6700 -0.6800 -0.6900 Columns 71 through 80 -0.7000 -0.7100 -0.7200 -0.7300 -0.7400 -0.7500 -0.7600 -0.7700 -0.7800 -0.7900 Columns 81 through 90 -0.8000 -0.8100 -0.8200 -0.8300 -0.8400 -0.8500 -0.8600 -0.8700 -0.8800 -0.8900 Columns 91 through 100 -0.9000 -0.9100 -0.9200 -0.9300 -0.9400 -0.9500 -0.9600 -0.9700 -0.9800 -0.9900 Column 101 -1.0000

2   Pass
%% dRef = logspace(0,1,101); [zVec dVec] = MyFunc(); assert(isequal(dRef,dVec))

b = Columns 1 through 10 0 -0.0100 -0.0200 -0.0300 -0.0400 -0.0500 -0.0600 -0.0700 -0.0800 -0.0900 Columns 11 through 20 -0.1000 -0.1100 -0.1200 -0.1300 -0.1400 -0.1500 -0.1600 -0.1700 -0.1800 -0.1900 Columns 21 through 30 -0.2000 -0.2100 -0.2200 -0.2300 -0.2400 -0.2500 -0.2600 -0.2700 -0.2800 -0.2900 Columns 31 through 40 -0.3000 -0.3100 -0.3200 -0.3300 -0.3400 -0.3500 -0.3600 -0.3700 -0.3800 -0.3900 Columns 41 through 50 -0.4000 -0.4100 -0.4200 -0.4300 -0.4400 -0.4500 -0.4600 -0.4700 -0.4800 -0.4900 Columns 51 through 60 -0.5000 -0.5100 -0.5200 -0.5300 -0.5400 -0.5500 -0.5600 -0.5700 -0.5800 -0.5900 Columns 61 through 70 -0.6000 -0.6100 -0.6200 -0.6300 -0.6400 -0.6500 -0.6600 -0.6700 -0.6800 -0.6900 Columns 71 through 80 -0.7000 -0.7100 -0.7200 -0.7300 -0.7400 -0.7500 -0.7600 -0.7700 -0.7800 -0.7900 Columns 81 through 90 -0.8000 -0.8100 -0.8200 -0.8300 -0.8400 -0.8500 -0.8600 -0.8700 -0.8800 -0.8900 Columns 91 through 100 -0.9000 -0.9100 -0.9200 -0.9300 -0.9400 -0.9500 -0.9600 -0.9700 -0.9800 -0.9900 Column 101 -1.0000