From 0d22e2623db4e046b27abed0de6d65dfabb9fb45 Mon Sep 17 00:00:00 2001 From: Arnav Sood Date: Fri, 14 Dec 2018 11:13:22 -0800 Subject: [PATCH] Tolerances for markov_asset --- rst_files/markov_asset.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rst_files/markov_asset.rst b/rst_files/markov_asset.rst index 640dee23..c7734382 100644 --- a/rst_files/markov_asset.rst +++ b/rst_files/markov_asset.rst @@ -297,7 +297,7 @@ Setup .. code-block:: julia - using LinearAlgebra, Statistics, Compat + using LinearAlgebra, Statistics, Compat using Parameters, Plots, QuantEcon gr(fmt = :png); @@ -423,8 +423,8 @@ Here's the code, including a test of the spectral radius condition :class: test @testset begin - @test v[2] == 3.4594684257743284 - @test v[1] == 3.2560393349907755 + @test v[2] ≈ 3.4594684257743284 atol = 1e-7 + @test v[1] ≈ 3.2560393349907755 @test v[5] ≈ 4.526909446326235 @test K[8] ≈ 8.887213530262768e-10 end