Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Motivation--- I have a glimmer of an idea that a convergent sum could be considered a self-referential number similar to a fractal. I would like to play with it for a while.

I have the following convergent sum:

NSum[((1/Pochhammer[m^2 + 1, m]) + (1/Pochhammer[m^2 + m + 1, 2 m])),
  {m, 1, Infinity}, WorkingPrecision -> 50]  

Is there a way to show the internals of about 4 or 5 steps?

share|improve this question
    
I had a big brain-cramp on this question, since I used trace in the title. Oops! – Fred Kline Nov 27 '12 at 19:50
up vote 5 down vote accepted

Please try //Trace option. Can be called as Trace[command] also.

Some functions also support an option called TraceInternals->True but this one does not.

Also TracePrint[command] is useful.

Edit

Actually, TraceInternals can be used here also. The trick is to apply this option to Trace itself and not to the command itself being traced! Like this

Trace[NSum[((1/Pochhammer[m^2 + 1, m]) + (1/Pochhammer[m^2 + m + 1, 2 m])), 
          {m, 1, Infinity},WorkingPrecision -> 50], 
      TraceInternal -> True
     ]
share|improve this answer
    
Is there a way to discover the list of functions that do support TraceInternals->True? – WalkingRandomly Nov 27 '12 at 19:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.