From 5f8e6160bd602a2a724075cdb3f18da5a20c98ec Mon Sep 17 00:00:00 2001 From: Andreas Noack Date: Wed, 17 Oct 2018 18:04:29 +0200 Subject: [PATCH] Adjust doc test for \ to avoid rounding --- base/operators.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/base/operators.jl b/base/operators.jl index 364f3abcc2f75..c6f49230b210d 100644 --- a/base/operators.jl +++ b/base/operators.jl @@ -520,17 +520,17 @@ julia> 3 \\ 6 julia> inv(3) * 6 2.0 -julia> A = [1 2; 3 4]; x = [5, 6]; +julia> A = [4 3; 2 1]; x = [5, 6]; julia> A \\ x 2-element Array{Float64,1}: - -4.0 - 4.5 + 6.5 + -7.0 julia> inv(A) * x 2-element Array{Float64,1}: - -4.0 - 4.5 + 6.5 + -7.0 ``` """ \(x,y) = adjoint(adjoint(y)/adjoint(x))