PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/octave/complextest_runme.m

#
Objective C | 19 lines | 13 code | 6 blank | 0 comment | 4 complexity | f92fd9481c7e2f1e41599b0336171921 MD5 | raw file
 1complextest
 2
 3a = complex(-1,2);
 4
 5if (complextest.Conj(a) != a.conjugate())
 6  error("bad complex mapping")
 7endif
 8
 9if (complextest.Conjf(a) != a.conjugate())
10  error("bad complex mapping")
11endif
12
13
14v = (complex(1,2), complex(2,3), complex(4,3), 1);
15
16try
17  complextest.Copy_h(v);
18catch
19end_try_catch