Txerrinko

funcion exponencial

Aug 29th, 2011
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.35 KB | None | 0 0
  1. PROGRAM funexp;
  2.  
  3. VAR
  4. x, sumaserie , exponencial : real;
  5.  
  6. BEGIN
  7.  
  8. Write('Introduzca un n£mero real: ');
  9. readln(x);
  10.  
  11. sumaserie:= 1 + (x/1) + ((sqr(x)/2) + ((sqr3(x)/6) + ((sqr4(x)/24);
  12. exponencial:= exp(sumaserie);
  13.  
  14. Writeln('Valor introducido= ',x);
  15. Writeln('Suma de la serie= ',sumaserie);
  16. Writeln('Exp(x)= ',exponencial);
  17.  
  18. Readln;
  19.  
  20. END.
Advertisement
Add Comment
Please, Sign In to add comment