m000basic4

812 days ago by jozefl

Recall that when factorials larger than 170! and powers of e larger than e^709 are input into Matlab, matlab returns Inf, its abbreviation for infinity. Try changing the factorial below, but be careful: calculation times for factorials increase very quickly.

factorial(200) 
       

Interestingly, it is difficult to break the exponential function.

exp(1000)*1.0 
       
exp(1000)*1.01 
       
exp(log(exp(1000),10)) 
       

We have to resort to our RielField function to obtain a numerical aproximation.

R=RealField(100) R(exp(1000)) 
       

Finally,

1/factorial(200)