help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem failure file


From: Robert Setif
Subject: problem failure file
Date: Thu, 21 Feb 2019 10:16:03 +0100

   Good morning.
Here is that file with a problem I do not understand.

# dfac.m 21/2/2019  double factorial
function r=dfac(n)
f=1;
if (n=0)
  r=1;
elseif (mod(n,2)=0)
    for i=n:-2:2,f=f*i;,endfor
else
for i=1:2:n,f=f*i;,endfor
  endif
 r=f;
endfunction

Thank you very much.
Best regards
 address@hidden
FRANCE

reply via email to

[Prev in Thread] Current Thread [Next in Thread]