Hi all, I need to put complex numbers in a grid control, but I get an error because the 8!:0 verb does not allow complex arguments:
cmplx=: 3 3 $ 0 j. i.9 load 'grid' grid cmplx |domain error: fmt | fmt y My workaround is to re-define the fmt verb in the jzgrid locale, in order to accept complexes: fmtj_jzgrid_=: 13 : '}:@:; each <"1 ,&''j'' each 8!:0 +. y' fmt_jzgrid_=: 8!:[EMAIL PROTECTED](16=3!:0) Other suggestion? (I think fmtj can be optimized) Lorenzo -- View this message in context: http://www.nabble.com/complex-numbers-in-a-grid-tp19852801s24193p19852801.html Sent from the J Programming mailing list archive at Nabble.com. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
