Cody

# Problem 1811. 05 - Vector Equations 3

Solution 1200409

Submitted on 30 May 2017
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
dVec = logspace(0,1,101); ref = log10(1./dVec); user = MyFunc(); assert(isequal(user,ref))

dVec = Columns 1 through 17 1.0000 1.0233 1.0471 1.0715 1.0965 1.1220 1.1482 1.1749 1.2023 1.2303 1.2589 1.2882 1.3183 1.3490 1.3804 1.4125 1.4454 Columns 18 through 34 1.4791 1.5136 1.5488 1.5849 1.6218 1.6596 1.6982 1.7378 1.7783 1.8197 1.8621 1.9055 1.9498 1.9953 2.0417 2.0893 2.1380 Columns 35 through 51 2.1878 2.2387 2.2909 2.3442 2.3988 2.4547 2.5119 2.5704 2.6303 2.6915 2.7542 2.8184 2.8840 2.9512 3.0200 3.0903 3.1623 Columns 52 through 68 3.2359 3.3113 3.3884 3.4674 3.5481 3.6308 3.7154 3.8019 3.8905 3.9811 4.0738 4.1687 4.2658 4.3652 4.4668 4.5709 4.6774 Columns 69 through 85 4.7863 4.8978 5.0119 5.1286 5.2481 5.3703 5.4954 5.6234 5.7544 5.8884 6.0256 6.1660 6.3096 6.4565 6.6069 6.7608 6.9183 Columns 86 through 101 7.0795 7.2444 7.4131 7.5858 7.7625 7.9433 8.1283 8.3176 8.5114 8.7096 8.9125 9.1201 9.3325 9.5499 9.7724 10.0000 zVec = Columns 1 through 17 0 -0.0100 -0.0200 -0.0300 -0.0400 -0.0500 -0.0600 -0.0700 -0.0800 -0.0900 -0.1000 -0.1100 -0.1200 -0.1300 -0.1400 -0.1500 -0.1600 Columns 18 through 34 -0.1700 -0.1800 -0.1900 -0.2000 -0.2100 -0.2200 -0.2300 -0.2400 -0.2500 -0.2600 -0.2700 -0.2800 -0.2900 -0.3000 -0.3100 -0.3200 -0.3300 Columns 35 through 51 -0.3400 -0.3500 -0.3600 -0.3700 -0.3800 -0.3900 -0.4000 -0.4100 -0.4200 -0.4300 -0.4400 -0.4500 -0.4600 -0.4700 -0.4800 -0.4900 -0.5000 Columns 52 through 68 -0.5100 -0.5200 -0.5300 -0.5400 -0.5500 -0.5600 -0.5700 -0.5800 -0.5900 -0.6000 -0.6100 -0.6200 -0.6300 -0.6400 -0.6500 -0.6600 -0.6700 Columns 69 through 85 -0.6800 -0.6900 -0.7000 -0.7100 -0.7200 -0.7300 -0.7400 -0.7500 -0.7600 -0.7700 -0.7800 -0.7900 -0.8000 -0.8100 -0.8200 -0.8300 -0.8400 Columns 86 through 101 -0.8500 -0.8600 -0.8700 -0.8800 -0.8900 -0.9000 -0.9100 -0.9200 -0.9300 -0.9400 -0.9500 -0.9600 -0.9700 -0.9800 -0.9900 -1.0000

Assertion failed.

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

dVec = Columns 1 through 17 1.0000 1.0233 1.0471 1.0715 1.0965 1.1220 1.1482 1.1749 1.2023 1.2303 1.2589 1.2882 1.3183 1.3490 1.3804 1.4125 1.4454 Columns 18 through 34 1.4791 1.5136 1.5488 1.5849 1.6218 1.6596 1.6982 1.7378 1.7783 1.8197 1.8621 1.9055 1.9498 1.9953 2.0417 2.0893 2.1380 Columns 35 through 51 2.1878 2.2387 2.2909 2.3442 2.3988 2.4547 2.5119 2.5704 2.6303 2.6915 2.7542 2.8184 2.8840 2.9512 3.0200 3.0903 3.1623 Columns 52 through 68 3.2359 3.3113 3.3884 3.4674 3.5481 3.6308 3.7154 3.8019 3.8905 3.9811 4.0738 4.1687 4.2658 4.3652 4.4668 4.5709 4.6774 Columns 69 through 85 4.7863 4.8978 5.0119 5.1286 5.2481 5.3703 5.4954 5.6234 5.7544 5.8884 6.0256 6.1660 6.3096 6.4565 6.6069 6.7608 6.9183 Columns 86 through 101 7.0795 7.2444 7.4131 7.5858 7.7625 7.9433 8.1283 8.3176 8.5114 8.7096 8.9125 9.1201 9.3325 9.5499 9.7724 10.0000 zVec = Columns 1 through 17 0 -0.0100 -0.0200 -0.0300 -0.0400 -0.0500 -0.0600 -0.0700 -0.0800 -0.0900 -0.1000 -0.1100 -0.1200 -0.1300 -0.1400 -0.1500 -0.1600 Columns 18 through 34 -0.1700 -0.1800 -0.1900 -0.2000 -0.2100 -0.2200 -0.2300 -0.2400 -0.2500 -0.2600 -0.2700 -0.2800 -0.2900 -0.3000 -0.3100 -0.3200 -0.3300 Columns 35 through 51 -0.3400 -0.3500 -0.3600 -0.3700 -0.3800 -0.3900 -0.4000 -0.4100 -0.4200 -0.4300 -0.4400 -0.4500 -0.4600 -0.4700 -0.4800 -0.4900 -0.5000 Columns 52 through 68 -0.5100 -0.5200 -0.5300 -0.5400 -0.5500 -0.5600 -0.5700 -0.5800 -0.5900 -0.6000 -0.6100 -0.6200 -0.6300 -0.6400 -0.6500 -0.6600 -0.6700 Columns 69 through 85 -0.6800 -0.6900 -0.7000 -0.7100 -0.7200 -0.7300 -0.7400 -0.7500 -0.7600 -0.7700 -0.7800 -0.7900 -0.8000 -0.8100 -0.8200 -0.8300 -0.8400 Columns 86 through 101 -0.8500 -0.8600 -0.8700 -0.8800 -0.8900 -0.9000 -0.9100 -0.9200 -0.9300 -0.9400 -0.9500 -0.9600 -0.9700 -0.9800 -0.9900 -1.0000

Assertion failed.