Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11246

Functions That Remember Values They Have Found

From Esteban González Morales <yo8231@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Functions That Remember Values They Have Found
Date 2012-08-06 08:53 +0000
Message-ID <jvo0mc$cgd$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


Hi, I was trying to create a recursive function and I read the help about it, and wrote this code

Hgeom[n_] := 
 H[n] = Sum[(1 - 0.5)^i/(1 - 0.5^i) Hgeom[n - i], {i, 1, n}]/n
Hgeom[0] = 1;

However, when I calculate Hgeom[10] it gives me the right value, and then I ask for the information about Hgeom and get that it has values calculated.

Have you any idea what could have gone wrong?

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Functions That Remember Values They Have Found Esteban González Morales <yo8231@gmail.com> - 2012-08-06 08:53 +0000

csiph-web