Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11246 > unrolled thread
| Started by | Esteban González Morales <yo8231@gmail.com> |
|---|---|
| First post | 2012-08-06 08:53 +0000 |
| Last post | 2012-08-06 08:53 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Functions That Remember Values They Have Found Esteban González Morales <yo8231@gmail.com> - 2012-08-06 08:53 +0000
| From | Esteban González Morales <yo8231@gmail.com> |
|---|---|
| Date | 2012-08-06 08:53 +0000 |
| Subject | Functions That Remember Values They Have Found |
| Message-ID | <jvo0mc$cgd$1@smc.vnet.net> |
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 top | Article view | comp.soft-sys.math.mathematica
csiph-web