<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155017</link>
    <title>MATLAB Central Newsreader - Code optimization</title>
    <description>Feed for thread: Code optimization</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 23 Aug 2007 10:15:38 -0400</pubDate>
      <title>Code optimization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155017#388958</link>
      <author>Martin</author>
      <description>Dear All,&lt;br&gt;
&lt;br&gt;
I am struggling with my algorithm to work fast enough. Is&lt;br&gt;
there any possibility to make this work faster?&lt;br&gt;
Thank you very much for any advice:&lt;br&gt;
&lt;br&gt;
function o = netoutput( vw, in, n )&lt;br&gt;
% n - number of hidden neurons&lt;br&gt;
% vw - weights string&lt;br&gt;
% in - input neurons values&lt;br&gt;
&lt;br&gt;
sIn = max( size( in, 2 ) ); % number of input neurons&lt;br&gt;
&lt;br&gt;
Y = in';&lt;br&gt;
k = 1;&lt;br&gt;
j = 1;&lt;br&gt;
&lt;br&gt;
for i = sIn : sIn + n - 1&lt;br&gt;
&lt;br&gt;
tmp = sum(vw( k : k + i -1 )'.*Y );&lt;br&gt;
k = k + i;&lt;br&gt;
&lt;br&gt;
tmp = exp( 2 * tmp );&lt;br&gt;
tmp = ( tmp - 1 )./ ( tmp + 1 );&lt;br&gt;
&lt;br&gt;
Y( i+1, 1 ) = tmp;&lt;br&gt;
j = j + 1;&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
o = Y( end, 1 );</description>
    </item>
    <item>
      <pubDate>Thu, 23 Aug 2007 13:24:57 -0400</pubDate>
      <title>Re: Code optimization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155017#388993</link>
      <author>Titus</author>
      <description>&lt;br&gt;
&quot;Martin &quot; &amp;lt;macin@o2.pl&amp;gt; schrieb im Newsbeitrag &lt;br&gt;
news:fajmoa$3nv$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Dear All,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I am struggling with my algorithm to work fast enough. Is&lt;br&gt;
&amp;gt; there any possibility to make this work faster?&lt;br&gt;
&amp;gt; Thank you very much for any advice:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; function o = netoutput( vw, in, n )&lt;br&gt;
&amp;gt; % n - number of hidden neurons&lt;br&gt;
&amp;gt; % vw - weights string&lt;br&gt;
&amp;gt; % in - input neurons values&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; sIn = max( size( in, 2 ) ); % number of input neurons&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Y = in';&lt;br&gt;
&amp;gt; k = 1;&lt;br&gt;
&amp;gt; j = 1;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; for i = sIn : sIn + n - 1&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; tmp = sum(vw( k : k + i -1 )'.*Y );&lt;br&gt;
&amp;gt; k = k + i;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; tmp = exp( 2 * tmp );&lt;br&gt;
&amp;gt; tmp = ( tmp - 1 )./ ( tmp + 1 );&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Y( i+1, 1 ) = tmp;&lt;br&gt;
&amp;gt; j = j + 1;&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; o = Y( end, 1 );&lt;br&gt;
&lt;br&gt;
Hi Martin,&lt;br&gt;
it would probably make the help somewhat easier to give, if you could give &lt;br&gt;
some sample call to your function...&lt;br&gt;
&lt;br&gt;
Titus</description>
    </item>
    <item>
      <pubDate>Thu, 23 Aug 2007 13:42:51 -0400</pubDate>
      <title>Re: Code optimization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155017#388999</link>
      <author>First Last</author>
      <description>I am also not entirely sure how the code is supposed to&lt;br&gt;
work. What's the goal of this function, and what are the&lt;br&gt;
types for the inputs, specifically -- i.e. is 'in' a vector&lt;br&gt;
and is 'vw' really a type 'string' or 'char', used as a&lt;br&gt;
function as indicated below, or is it something else?&lt;br&gt;
&lt;br&gt;
and then, what is the function vw ...&lt;br&gt;
&lt;br&gt;
etc.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Martin &quot; &amp;lt;macin@o2.pl&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fajmoa$3nv$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Dear All,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am struggling with my algorithm to work fast enough. Is&lt;br&gt;
&amp;gt; there any possibility to make this work faster?&lt;br&gt;
&amp;gt; Thank you very much for any advice:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; function o = netoutput( vw, in, n )&lt;br&gt;
&amp;gt; % n - number of hidden neurons&lt;br&gt;
&amp;gt; % vw - weights string&lt;br&gt;
&amp;gt; % in - input neurons values&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; sIn = max( size( in, 2 ) ); % number of input neurons&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Y = in';&lt;br&gt;
&amp;gt; k = 1;&lt;br&gt;
&amp;gt; j = 1;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; for i = sIn : sIn + n - 1&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; tmp = sum(vw( k : k + i -1 )'.*Y );&lt;br&gt;
&amp;gt; k = k + i;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; tmp = exp( 2 * tmp );&lt;br&gt;
&amp;gt; tmp = ( tmp - 1 )./ ( tmp + 1 );&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Y( i+1, 1 ) = tmp;&lt;br&gt;
&amp;gt; j = j + 1;&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; o = Y( end, 1 );</description>
    </item>
    <item>
      <pubDate>Thu, 23 Aug 2007 15:00:05 -0400</pubDate>
      <title>Re: Code optimization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155017#389019</link>
      <author>Gautam Vallabha</author>
      <description>In article &amp;lt;fajmoa$3nv$1@fred.mathworks.com&amp;gt;, macin@o2.pl says...&lt;br&gt;
&amp;gt; I am struggling with my algorithm to work fast enough. Is&lt;br&gt;
&amp;gt; there any possibility to make this work faster?&lt;br&gt;
&amp;gt; Thank you very much for any advice:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; function o = netoutput( vw, in, n )&lt;br&gt;
&amp;gt; % n - number of hidden neurons&lt;br&gt;
&amp;gt; % vw - weights string&lt;br&gt;
&amp;gt; % in - input neurons values&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; sIn = max( size( in, 2 ) ); % number of input neurons&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Y = in';&lt;br&gt;
&amp;gt; k = 1;&lt;br&gt;
&amp;gt; j = 1;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; for i = sIn : sIn + n - 1&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; tmp = sum(vw( k : k + i -1 )'.*Y );&lt;br&gt;
&amp;gt; k = k + i;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; tmp = exp( 2 * tmp );&lt;br&gt;
&amp;gt; tmp = ( tmp - 1 )./ ( tmp + 1 );&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Y( i+1, 1 ) = tmp;&lt;br&gt;
&amp;gt; j = j + 1;&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; o = Y( end, 1 );&lt;br&gt;
&lt;br&gt;
Your data structures are badly chosen. You have all your weights as one &lt;br&gt;
long vector, and all your units as another long vector, so you end up &lt;br&gt;
having to step along these vectors yourself. Better to explicitly have &lt;br&gt;
the weight vector be a matrix. Then your entire function is simply a &lt;br&gt;
couple of matrix multiplies, and also (this is a real time saver) you &lt;br&gt;
reduce your calls to EXP. Furthermore, the code is also more readable &lt;br&gt;
and works for multiple output units. &lt;br&gt;
&lt;br&gt;
---------------------------------------- &lt;br&gt;
function output = netoutput(Whi, Woh, in)&lt;br&gt;
%  Whi = m x n weight matrix, &lt;br&gt;
%     m = # of hidden units, n = # of input units &lt;br&gt;
%  Woh = k x m weight matrix&lt;br&gt;
%     k = # of output units, m = # of hidden units&lt;br&gt;
&lt;br&gt;
&amp;nbsp;% hidden unit outputs&lt;br&gt;
&amp;nbsp;hnetinput = sum(Whi * in(:), 2);&lt;br&gt;
&amp;nbsp;tmp = exp( 2 * hnetinput );&lt;br&gt;
&amp;nbsp;houtput = (tmp - 1) ./ (tmp + 1);&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;nbsp;% final network outputs&lt;br&gt;
&amp;nbsp;netinput = sum(Woh * houtput(:), 2);&lt;br&gt;
&amp;nbsp;tmp = exp( 2 * netinput );&lt;br&gt;
&amp;nbsp;output = (tmp - 1) ./ (tmp + 1);&lt;br&gt;
---------------------------------------- &lt;br&gt;
&lt;br&gt;
You can profile the above code to make it tighter. Also, google for &lt;br&gt;
&quot;Matlab exp faster&quot;, and see if you can get a faster implementation of &lt;br&gt;
EXP.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Gautam Vallabha&lt;br&gt;
The MathWorks&lt;br&gt;
Gautam.Vallabha@mathworks.com</description>
    </item>
    <item>
      <pubDate>Thu, 23 Aug 2007 15:05:56 -0400</pubDate>
      <title>Re: Code optimization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155017#389022</link>
      <author>Martin</author>
      <description>Ok, here are more details:&lt;br&gt;
&lt;br&gt;
The function is supposed to calculate an output of neural&lt;br&gt;
network. vw is a vector of weights which is produced by EP&lt;br&gt;
(Evolutionary Programming algorithm). &lt;br&gt;
Neural network I have designed is represented in a matrix&lt;br&gt;
form (figure 3.3 and 3.4 in pdf file here:&lt;br&gt;
&lt;a href=&quot;http://radlak.com/martin.pdf)&quot;&gt;http://radlak.com/martin.pdf)&lt;/a&gt;&lt;br&gt;
As it is only Feed-Forward NN, upper triangle is considered&lt;br&gt;
thus redundant zeros are omitted when converting this matrix&lt;br&gt;
into a string vw. Inputs are also ommited as they are not&lt;br&gt;
connected between each other (according to figure 3.3&lt;br&gt;
matrix[1:4,1:4]). The string is constructed in the following&lt;br&gt;
way: &lt;br&gt;
&lt;br&gt;
vw = [matrix[1:5,5] matrix[1:6,6] matrix[1:7,7] ... ] and so on.&lt;br&gt;
&lt;br&gt;
Going further, to calculate the output of this NN, value for&lt;br&gt;
each neuron has to be calculated, i.e. &lt;br&gt;
&lt;br&gt;
output of neuron 5, y5, from figure 3.3 is&lt;br&gt;
&lt;br&gt;
y5 = sum( matrix[1:4,5] * [y1 y2 y3 y4])&lt;br&gt;
&lt;br&gt;
where y1, y2, y3, y4 are outputs of neurons connected to&lt;br&gt;
neuron y5. &lt;br&gt;
&lt;br&gt;
Finally, by applying squashing function (tangent sigmoid in&lt;br&gt;
this example) output is produced.&lt;br&gt;
&lt;br&gt;
If this description is not fully clear I am very happy to&lt;br&gt;
make it brighter - just ask, please.&lt;br&gt;
&lt;br&gt;
Thank you for your time,&lt;br&gt;
Martin&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Martin &quot; &amp;lt;macin@o2.pl&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fajmoa$3nv$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Dear All,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am struggling with my algorithm to work fast enough. Is&lt;br&gt;
&amp;gt; there any possibility to make this work faster?&lt;br&gt;
&amp;gt; Thank you very much for any advice:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; function o = netoutput( vw, in, n )&lt;br&gt;
&amp;gt; % n - number of hidden neurons&lt;br&gt;
&amp;gt; % vw - weights string&lt;br&gt;
&amp;gt; % in - input neurons values&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; sIn = max( size( in, 2 ) ); % number of input neurons&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Y = in';&lt;br&gt;
&amp;gt; k = 1;&lt;br&gt;
&amp;gt; j = 1;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; for i = sIn : sIn + n - 1&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; tmp = sum(vw( k : k + i -1 )'.*Y );&lt;br&gt;
&amp;gt; k = k + i;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; tmp = exp( 2 * tmp );&lt;br&gt;
&amp;gt; tmp = ( tmp - 1 )./ ( tmp + 1 );&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Y( i+1, 1 ) = tmp;&lt;br&gt;
&amp;gt; j = j + 1;&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; o = Y( end, 1 );</description>
    </item>
    <item>
      <pubDate>Fri, 24 Aug 2007 03:59:11 -0400</pubDate>
      <title>Re: Code optimization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155017#389145</link>
      <author>Martin</author>
      <description>Thanks for replies to everyone. I have sorted the problem&lt;br&gt;
out. Prepared mex file in c to calculate above. Works at&lt;br&gt;
least 20 times faster than using matlab only. Here it is,&lt;br&gt;
just in case anyone will need it in future or if anyone can&lt;br&gt;
spot any bugs:&lt;br&gt;
&lt;br&gt;
#include &quot;mex.h&quot;&lt;br&gt;
#include &quot;math.h&quot;&lt;br&gt;
&lt;br&gt;
void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const&lt;br&gt;
mxArray *prhs[] )&lt;br&gt;
{&lt;br&gt;
	&lt;br&gt;
	double *vw, *in;&lt;br&gt;
	double *y;&lt;br&gt;
	double *out;&lt;br&gt;
	double *n;&lt;br&gt;
	double tmp;&lt;br&gt;
	&lt;br&gt;
	int sIn, sVw, i, m, z, sm;&lt;br&gt;
	int k = 0;&lt;br&gt;
	int j = 0;&lt;br&gt;
	&lt;br&gt;
	double yy[1000];&lt;br&gt;
	&lt;br&gt;
	vw = mxGetPr(prhs[0]);&lt;br&gt;
	in = mxGetPr(prhs[1]);&lt;br&gt;
	n =  mxGetPr(prhs[2]);&lt;br&gt;
	&lt;br&gt;
	sVw = mxGetN(prhs[0]);&lt;br&gt;
	sIn = mxGetN(prhs[1]);&lt;br&gt;
	&lt;br&gt;
	sm = sIn + (int)n;&lt;br&gt;
	&lt;br&gt;
	y = yy;&lt;br&gt;
	&lt;br&gt;
	for (z = 0; z &amp;lt; sIn; z++)&lt;br&gt;
	{&lt;br&gt;
		y[z] = in[z];&lt;br&gt;
	}&lt;br&gt;
	&lt;br&gt;
		 &lt;br&gt;
	plhs[0] = mxCreateDoubleMatrix(1,1,mxREAL);&lt;br&gt;
	out = mxGetPr(plhs[0]);&lt;br&gt;
	&lt;br&gt;
	&lt;br&gt;
&lt;br&gt;
	for (i = sIn; i &amp;lt; sIn + n[0]; i++ ){&lt;br&gt;
	tmp = 0;&lt;br&gt;
		for (m = 0; m &amp;lt; i; m++ ){&lt;br&gt;
			tmp = tmp + vw[ m + k ] * y[ m ];&lt;br&gt;
			&lt;br&gt;
		}&lt;br&gt;
		k = k+i;&lt;br&gt;
		&lt;br&gt;
		tmp = exp( 2 * tmp );&lt;br&gt;
		tmp = ( tmp - 1 )/( tmp + 1 );&lt;br&gt;
		&lt;br&gt;
		y[i] = tmp;&lt;br&gt;
		j = j + 1;&lt;br&gt;
	}&lt;br&gt;
	out[0] = y[i-1];&lt;br&gt;
	&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Martin &quot; &amp;lt;macin@o2.pl&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fak7ok$hij$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Ok, here are more details:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The function is supposed to calculate an output of neural&lt;br&gt;
&amp;gt; network. vw is a vector of weights which is produced by EP&lt;br&gt;
&amp;gt; (Evolutionary Programming algorithm). &lt;br&gt;
&amp;gt; Neural network I have designed is represented in a matrix&lt;br&gt;
&amp;gt; form (figure 3.3 and 3.4 in pdf file here:&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://radlak.com/martin.pdf)&quot;&gt;http://radlak.com/martin.pdf)&lt;/a&gt;&lt;br&gt;
&amp;gt; As it is only Feed-Forward NN, upper triangle is considered&lt;br&gt;
&amp;gt; thus redundant zeros are omitted when converting this matrix&lt;br&gt;
&amp;gt; into a string vw. Inputs are also ommited as they are not&lt;br&gt;
&amp;gt; connected between each other (according to figure 3.3&lt;br&gt;
&amp;gt; matrix[1:4,1:4]). The string is constructed in the following&lt;br&gt;
&amp;gt; way: &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; vw = [matrix[1:5,5] matrix[1:6,6] matrix[1:7,7] ... ] and&lt;br&gt;
so on.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Going further, to calculate the output of this NN, value for&lt;br&gt;
&amp;gt; each neuron has to be calculated, i.e. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; output of neuron 5, y5, from figure 3.3 is&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; y5 = sum( matrix[1:4,5] * [y1 y2 y3 y4])&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; where y1, y2, y3, y4 are outputs of neurons connected to&lt;br&gt;
&amp;gt; neuron y5. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Finally, by applying squashing function (tangent sigmoid in&lt;br&gt;
&amp;gt; this example) output is produced.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If this description is not fully clear I am very happy to&lt;br&gt;
&amp;gt; make it brighter - just ask, please.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thank you for your time,&lt;br&gt;
&amp;gt; Martin&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Martin &quot; &amp;lt;macin@o2.pl&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;fajmoa$3nv$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Dear All,&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I am struggling with my algorithm to work fast enough. Is&lt;br&gt;
&amp;gt; &amp;gt; there any possibility to make this work faster?&lt;br&gt;
&amp;gt; &amp;gt; Thank you very much for any advice:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; function o = netoutput( vw, in, n )&lt;br&gt;
&amp;gt; &amp;gt; % n - number of hidden neurons&lt;br&gt;
&amp;gt; &amp;gt; % vw - weights string&lt;br&gt;
&amp;gt; &amp;gt; % in - input neurons values&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; sIn = max( size( in, 2 ) ); % number of input neurons&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Y = in';&lt;br&gt;
&amp;gt; &amp;gt; k = 1;&lt;br&gt;
&amp;gt; &amp;gt; j = 1;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; for i = sIn : sIn + n - 1&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; tmp = sum(vw( k : k + i -1 )'.*Y );&lt;br&gt;
&amp;gt; &amp;gt; k = k + i;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; tmp = exp( 2 * tmp );&lt;br&gt;
&amp;gt; &amp;gt; tmp = ( tmp - 1 )./ ( tmp + 1 );&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Y( i+1, 1 ) = tmp;&lt;br&gt;
&amp;gt; &amp;gt; j = j + 1;&lt;br&gt;
&amp;gt; &amp;gt; end&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; o = Y( end, 1 );&lt;br&gt;
&amp;gt; </description>
    </item>
  </channel>
</rss>

