Inf norm help problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Inf norm help problem

vicnorton
An experiment with GNU Octave, version 4.2.1:
octave> help norm
'norm' is a built-in function from the file libinterp/corefcn/data.cc
 -- norm (A)
   If A is a vector or a scalar:
     If A is a vector or a scalar:
    P = `Inf' or "inf"
          `max (abs (A))’.

octave> norm([1;2;3],'Inf')
error: norm: unrecognized option: Inf
octave> norm([1;2;3],"Inf")
error: norm: unrecognized option: Inf
octave> norm([1;2;3],'inf')
ans =  3
octave> norm([1;2;3],"inf")
ans =  3

With MATLAB R2017b (9.3.0.713579)
64-bit (maci64)
September 14, 2017
All four options work the way they are supposed to.



-----------------------------------------
Join us March 12-15 at CERN near Geneva
Switzerland for OctConf 2018.  More info:
https://wiki.octave.org/OctConf_2018
-----------------------------------------