view test/bug-54490.tst @ 30942:84e7222b6b5c

lo-specfun.cc: Remove code duplication for airy and biry functions (bug #62321) Co-author: Zoïs Moitier <zois.moitier@kit.edu> lo-specfun.cc: The external Fortran library functions ZAIRY, CAIRY, ZBIRY, and CBIRY can already scale or unscale their respective results depending on whether an input parameter KODE is set to 1 or to 2. This changeset removes the duplication of that scaling functionality in lo-specfun.cc, and calls the library functions with the appropriate value of KODE.
author Arun Giridhar <arungiridhar@gmail.com>
date Mon, 18 Apr 2022 09:32:12 -0400
parents 9080316864bf
children
line wrap: on
line source

%!function out = bug54490 ()
%!  global k;
%!  k = 1;
%!  out = 3;
%!endfunction

%!test <*54490>
%! global k;
%! k = 2;
%! a = [5, 6];
%! a(k) = bug54490 ();
%! assert (a, [5, 3]);
%! k = 2;
%! a = [5, 6];
%! [a(k)] = bug54490 ();
%! assert (a, [5, 3]);
%! clear -global k;  # cleanup after test