Download MuPAD from SciFace

MuPAD Pro Computing Essentials - Examples 

Example 5.3 To produce a sequence

Suppose that you need to declare the first 20 terms of a given sequence, you would use something similar to this declaration.  Here xn=(1+1/n)^n. 

  • (1+1/n)^n $ n=1..10;


  

If you wish to get your sequence in floating point notation you may use this command instead:

  • float(1+1/n)^n $ n=1..10
  
2.0, 2.25, 2.37037037, 2.44140625, 2.48832, 2.521626372, 
2.546499697, 2.565784514, 2.581174792, 2.59374246

 

TOP