Interval package: Difference between revisions

Jump to navigation Jump to search
507 bytes added ,  31 October 2014
Added example: solving linear systems
m (Fixed formatting)
(Added example: solving linear systems)
Line 257: Line 257:
     [0]  [1]  [Entire]
     [0]  [1]  [Entire]
     [0]  [0]  [0, Inf]
     [0]  [0]  [0, Inf]
octave:4> A = infsup (magic (3))
A = 3×3 interval matrix
    [8]  [1]  [6]
    [3]  [5]  [7]
    [4]  [9]  [2]
octave:5> c = A \ [3; 4; 5]
c ⊂ 3×1 interval vector
    [.18333333333333323, .18333333333333344]
    [.43333333333333318, .43333333333333352]
    [.18333333333333323, .18333333333333344]
octave:6> A * c
ans ⊂ 3×1 interval vector
    [2.9999999999999982, 3.0000000000000018]
    [3.9999999999999982, 4.0000000000000027]
    [4.9999999999999973, 5.0000000000000027]


=== Error handling ===
=== Error handling ===
240

edits

Navigation menu