[Top][All Lists]

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

Re: problem failure file

From: Francesco Potortì
Subject: Re: problem failure file
Date: Thu, 21 Feb 2019 10:39:00 +0100

>Here is that file with a problem I do not understand.
># dfac.m 21/2/2019  double factorial
>function r=dfac(n)
>if (n=0)
>  r=1;
>elseif (mod(n,2)=0)
>    for i=n:-2:2,f=f*i;,endfor
>for i=1:2:n,f=f*i;,endfor
>  endif
> r=f;

You should tell us what is the problem and what you do not understand.

If you run it and get an unexpected result or an error, you should copy
and paste what you see on the command window (text, no image) and tell
us what you expected instead.

Francesco Potortì (ricercatore)        Voice:  +39.050.621.3058
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Skype:  wnlabisti
(entrance 20, 1st floor, room C71)     Web:

reply via email to

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