Problem 2556. Create Vector containing following elements

Solution 1617029

Submitted on 26 Aug 2018 by HH
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
y_correct = [pi eps NaN inf -inf flintmax];; isnan(sum(abs(vec_cons()-y_correct)));

ans = 1.0e+15 * 0.0000 0.0000 NaN Inf -Inf 9.0072