/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
- complextest
- a = complex(-1,2);
- if (complextest.Conj(a) != a.conjugate())
- error("bad complex mapping")
- endif
- if (complextest.Conjf(a) != a.conjugate())
- error("bad complex mapping")
- endif
- v = (complex(1,2), complex(2,3), complex(4,3), 1);
- try
- complextest.Copy_h(v);
- catch
- end_try_catch