github.com/gopherd/gonum@v0.0.4/integrate/quad/internal/PrintGoSlice.m (about)

     1  % Copyright ©2016 The Gonum Authors. All rights reserved.
     2  % Use of this source code is governed by a BSD-style
     3  % license that can be found in the LICENSE file.
     4  
     5  function PrintGoSlice(a)
     6        fprintf('[]float64{')
     7        for i = 1:length(a)
     8              fprintf('%1.16e, ',a(i))
     9        end
    10        fprintf('}\n')
    11  end