PageRenderTime 47ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
MATLAB | 19 lines | 13 code | 6 blank | 0 comment | 3 complexity | f92fd9481c7e2f1e41599b0336171921 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. complextest
  2. a = complex(-1,2);
  3. if (complextest.Conj(a) != a.conjugate())
  4. error("bad complex mapping")
  5. endif
  6. if (complextest.Conjf(a) != a.conjugate())
  7. error("bad complex mapping")
  8. endif
  9. v = (complex(1,2), complex(2,3), complex(4,3), 1);
  10. try
  11. complextest.Copy_h(v);
  12. catch
  13. end_try_catch