Facebook
From ja, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 284
  1. function [x] = prod01(n)
  2.  
  3. if(n==1)
  4.     x=1;
  5. else
  6.     x=1;
  7.     for i=2:n
  8.         x=x*(1+ (atan(n-1)/n));
  9.     end        
  10.  
  11. end
  12. end
  13.  
  14.