|
On Thu, 26 Nov 2009 13:55:07 +0000, Flora giannone wrote:
> thanks thomas for your answer...
> the problem is that i have more functions inline;
>
> M=menu('Scegliere una serie','z^k','z^k/k','z^k/k!',...
> 'z^n/2^2n','(z+1)^n/(n*2^n)','(z-2)^n/(n^2*2^2n)','(1+ni)z^n',...
> 'log(n)^2*z^n','5^n*z^3n/2n*(2n+2)'); %Definisco i coefficienti
> switch M
> case 1 %serie Geometrica
> a=inline(sym(1));
> %La serie geometrica ha coefficiente = 1 x=0;
> %Ci serve per calcolare la somma dei termini della serie an=z^n;
> %Termine generale della serie
> case 2 %Serie Armonica
> a=inline('(n+1)/n');
> x=1;
> an=(z^n)/n;
> case 3 %Serie Esponenziale
> a=inline('1/gamma(n+1)');
> x=0;
> an=(z^n)/gamma(n+1);
> case 4
> a=inline('1/4^n');
> x=0;
> an=(z^n)/(4^n);
>
> I do not want to do these calculations manually...there is no function
> that allows me to avoid these calculations?
That I don't know. I only considered your first quite simple example,
sorry.
Thomas Arildsen
--
All email to sender address is lost.
My real adress is at es dot aau dot dk for user tha.
|