eps

ans =

   2.2204e-16

pi

ans =

    3.1416

i

ans =

        0 + 1.0000i

realmin

ans =

  2.2251e-308

realmin/2

ans =

  1.1125e-308

realmin/10

ans =

  2.2251e-309

realmin/2^4

ans =

  1.3907e-309

realmin/2^10

ans =

  2.1729e-311

realmin/2^50

ans =

  1.9763e-323

realmin/2^51

ans =

  9.8813e-324

realmin/2^52

ans =

  4.9407e-324

realmin/2^54

ans =

     0

realmin/2^53

ans =

     0

realmin/2^52

ans =

  4.9407e-324

realmin/2^53

ans =

     0

realmax

ans =

  1.7977e+308

realmin

ans =

  2.2251e-308

realmax*2

ans =

   Inf

-realmax*2

ans =

  -Inf

1/0

ans =

   Inf

0/0

ans =

   NaN

x1=1/0

x1 =

   Inf

x1-x1

ans =

   NaN

c=x1-x1

c =

   NaN

c*2

ans =

   NaN

isfinite(c)

ans =

     0

isfinite(x1)

ans =

     0

isfinite(1)

ans =

     1

isnan(c)

ans =

     1

isnan(x1)

ans =

     0

isnan(1)

ans =

     0

isfinite(realmin/10)

ans =

     1

warning on
1/0

ans =

   Inf

help warning
 <strong>warning</strong> Display warning message; disable or enable warning messages.
    <strong>warning</strong>('MESSAGE') displays the warning message MESSAGE, unless it has been
    disabled (see the special identifier 'all' in "Controlling Warning Message
    Display" below). When MESSAGE is the only input to <strong>warning</strong>, <strong>warning</strong> displays
    it literally, without performing any substitutions (see below) on the
    characters in MESSAGE.
 
    <strong>warning</strong>('MESSAGE', A, B, ...) displays the formatted warning message
    MESSAGE. The string MESSAGE may contain escape sequences (such as \t or \n)
    as well as the C language conversion specifiers (e.g., %s or %d) that are
    supported by the SPRINTF function. <strong>warning</strong> makes substitutions for the
    escape sequences and conversion specifiers in the same way that SPRINTF
    does. Additional arguments A, B, ... provide the values that correspond to
    the format specifiers and are only required if conversion specifiers appear
    in MESSAGE. Type HELP SPRINTF for more information on escape sequences and
    format specifiers. <strong>warning</strong> performs these substitutions on MESSAGE in all
    cases where more than one input is passed to <strong>warning</strong>.
 
    <strong>warning</strong>('MSGID', 'MESSAGE', A, B, ...) displays the formatted warning
    message MESSAGE as in the paragraph above, and tags the warning with the
    message identifier MSGID. The identifier can be used to enable or disable
    display of the identified warning (See "Controlling Warning Message Display"
    below). A message identifier is a string of the form
    <component>[:<component>]:<mnemonic>, where <component> and <mnemonic> are
    alphanumeric strings (for example, 'MATLAB:singularMatrix').
 
    Controlling Warning Message Display
    -----------------------------------
    <strong>warning</strong>('OFF', 'MSGID') and <strong>warning</strong>('ON', 'MSGID') disable and enable the
    display of any warning tagged with message identifier MSGID. (Use LASTWARN
    to determine the identifier of a warning, or use the <strong>warning</strong> VERBOSE feature
    described below.) <strong>warning</strong> is not case sensitive when matching message
    identifiers.
 
    S = <strong>warning</strong>('OFF', 'MSGID') and S = <strong>warning</strong>('ON', 'MSGID') additionally
    return the previous warning state of any warning tagged with message 
    identifier MSGID. This state information is returned in a structure S with 
    fields 'identifier' and 'state'.
 
    <strong>warning</strong>('QUERY', 'MSGID') displays the state ('on' or 'off') for warnings
    with message identifier MSGID. S = <strong>warning</strong>('QUERY', 'MSGID') returns the
    state in a structure S with fields 'identifier' and 'state'.
 
    In the three cases above, MSGID can also be 'all', in which case all
    warnings (including untagged ones) are disabled, enabled, or queried, as
    well as 'last', in which case the last displayed warning is disabled,
    enabled, or queried.
 
    <strong>warning</strong> ON BACKTRACE and <strong>warning</strong> OFF BACKTRACE control the display of the
    file and line number that produced a warning when the warning is displayed.
 
    <strong>warning</strong> ON VERBOSE and <strong>warning</strong> OFF VERBOSE control the displaying of an
    extra line of helpful text containing the warning identifier when a warning
    is displayed.
  
    S = <strong>warning</strong>('QUERY', ARG) where ARG is either 'BACKTRACE' or 'VERBOSE'
    returns a structure S with fields 'identifier' containing ARG and 'state'
    containing the current state of ARG.
 
    <strong>warning</strong>(S) where S is a structure with fields 'identifier' and 'state' is
    equivalent to
 
        for k = 1:length(S), warning(S(k).state, S(k).identifier); end
        
    In other words, <strong>warning</strong> accepts as an input the same structure it returns as
    an output. This restores the states of warnings to their previous values.
 
    See also <a href="matlab:help sprintf">sprintf</a>, <a href="matlab:help lastwarn">lastwarn</a>, <a href="matlab:help disp">disp</a>, <a href="matlab:help error">error</a>, <a href="matlab:help errordlg">errordlg</a>, <a href="matlab:help warndlg">warndlg</a>.

    Reference page in Help browser
       <a href="matlab:doc warning">doc warning</a>


warning('on')
1/0

ans =

   Inf

lastwarn

ans =

     ''


eps

ans =

   2.2204e-16

a = 1

a =

     1

b=2

b =

     2

a == b

ans =

     0

a < b

ans =

     1

a <= b

ans =

     1

a > b

ans =

     0

a >= b

ans =

     0

a ~= b

ans =

     1

 (a ~= b)

ans =

     1

~(a ~= b)

ans =

     0

!(a ~= b)
/bin/bash: a: command not found
~(a ~= b)

ans =

     0

~(a ~= b) | (a~=b)

ans =

     1

~(a ~= b) & (a~=b)

ans =

     0

~(a ~= b) && (a~=b)

ans =

     0

~(a ~= b) || (a~=b)

ans =

     1

me = precm

me =

   2.2204e-16

[me] = precm

me =

   2.2204e-16

[me] = precm()

me =

   2.2204e-16

eps

ans =

   2.2204e-16

me-eps

ans =

     0

help precm
 precm calcolo della precisione di macchina
    output: mioeps  precisione di macchina

help precm
 precm calcolo della precisione di macchina
    output: mioeps  precisione di macchina
  utilizzo
      mioeps  = precm

al = base2interi(4)

al =

     0     0     1

flipud(al)

ans =

     0     0     1

fliplr(al)

ans =

     1     0     0

al = base2interi(44)

al =

     0     0     1     1     0     1

al = base2interi(445)

al =

     1     0     1     1     1     1     0     1     1

al = base2interi(4459678934568)

al =

  Columns 1 through 9

     0     0     0     1     0     1     0     0     0

  Columns 10 through 18

     1     1     0     0     1     0     0     0     0

  Columns 19 through 27

     1     0     1     0     0     1     1     0     0

  Columns 28 through 36

     1     1     0     1     0     0     1     1     1

  Columns 37 through 43

     0     0     0     0     0     0     1

al = base2interi(445967893456899999999999999999999999)
{Error using <a href="matlab:helpUtils.errorDocCallback('base2interi', '/home/docenti/mazzia/laboratorio2013/gruppoA/base2interi.m', 13)" style="font-weight:bold">base2interi</a> (<a href="matlab: opentoline('/home/docenti/mazzia/laboratorio2013/gruppoA/base2interi.m',13,0)">line 13</a>)
Rappresentazione troppo lunga
} 
al = base2interi(445967893456899999999999999999)

al =

  Columns 1 through 9

     0     0     0     0     0     0     0     0     0

  Columns 10 through 18

     0     0     0     0     0     0     0     0     0

  Columns 19 through 27

     0     0     0     0     0     0     0     0     0

  Columns 28 through 36

     0     0     0     0     0     0     0     0     0

  Columns 37 through 45

     0     0     0     0     0     0     0     0     0

  Columns 46 through 54

     0     0     0     1     0     1     1     1     0

  Columns 55 through 63

     1     1     0     0     1     1     1     1     0

  Columns 64 through 72

     0     1     1     0     1     0     0     1     1

  Columns 73 through 81

     0     1     1     1     1     1     1     1     1

  Columns 82 through 90

     1     1     1     1     1     1     1     0     0

  Columns 91 through 99

     0     0     0     1     0     1     1     0     1

tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000211 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000143 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000142 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000144 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000193 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000190 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000154 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000192 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000181 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000183 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000193 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000191 seconds.
al = base2interi(4)

al =

     1     0     0

tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.001090 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000127 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000214 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000153 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000131 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000193 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000141 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000159 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000222 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.002467 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000183 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000183 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000184 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000185 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000182 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000186 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000187 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000196 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000185 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000261 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000211 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000213 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000183 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.002927 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000140 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000129 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000127 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000127 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000204 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000145 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000160 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000150 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000168 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000208 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000143 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000220 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000210 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000208 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000183 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000128 seconds.
tic,al = base2interi(445967893456899999999999999999);toc
Elapsed time is 0.000127 seconds.
al = base2interi(4)

al =

     1     0     0

al(1)

ans =

     1

al(1:2)

ans =

     1     0

al(1:3)

ans =

     1     0     0

1:3

ans =

     1     2     3

1:10

ans =

  Columns 1 through 9

     1     2     3     4     5     6     7     8     9

  Column 10

    10

al(1:2:3)

ans =

     1     0

