Thanks. Aargh, total beginner's mistake. Okay, got that working fine. But is there any way I can get it to try to find lim h[n] n->oo without its giving an error message or crashing badly? For example, this command: In[1729]:= Limit[h[n], n -> Infinity] gets a segmentation fault, and kills the Mma program. --Dan
On Apr 27, 2015, at 12:53 PM, Michael Kleber <michael.kleber@gmail.com> wrote:
Need h[n_], not h[n].
--Michael
On Mon, Apr 27, 2015 at 3:44 PM, Dan Asimov <dasimov@earthlink.net> wrote:
In this session:
----- In[1]:= f[n_] := If[n==1, 1, LCM[n,f[n-1]] ]
In[2]:= f[11]
Out[3]= 27720
In[4]:= g[n_] := f[n]^(1/n)
In[5]:= g[11]
3/11 2/11 1/11 Out[5]= 2 3 385
In[6]:= h[n] := N[g[n], 10]
In[7]:= h[11]
Out[7]= h[11]
In[8]:= N[g[11], 10]
Out[8]= 2.534488315 -----
Why does In[7] fail to get the same output as In[8] ???
Is there no way to create a function that does the same thing as In[8] (for n in place of 11) ???
The idea was to show that
lim LCM[1,...,n]^(1/n) = e n->oo
None of my attempts to get g[n] to approach a numerical limit in Mma were successful.
In fact, it gets seriously confused when I ask for N[g[10000]]
Thanks,
Dan _______________________________________________ math-fun mailing list math-fun@mailman.xmission.com https://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun
-- Forewarned is worth an octopus in the bush. _______________________________________________ math-fun mailing list math-fun@mailman.xmission.com https://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun