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


Groups > comp.soft-sys.math.mathematica > #7966 > unrolled thread

Problems with tracedepth

Started byClark Kogan <kogan.clark@gmail.com>
First post2012-01-18 11:00 +0000
Last post2012-01-18 11:00 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Problems with tracedepth Clark Kogan <kogan.clark@gmail.com> - 2012-01-18 11:00 +0000

#7966 — Problems with tracedepth

FromClark Kogan <kogan.clark@gmail.com>
Date2012-01-18 11:00 +0000
SubjectProblems with tracedepth
Message-ID<jf68oj$g7d$1@smc.vnet.net>
Using the definitions:
fun1[] := sub1[] + sub2[] + sub3[];
sub1[] = 1; sub2[] = 2; sub3[] = 3;

And running the statement
Trace[fun1[], TraceDepth -> 2]

I get...
{fun1[],sub1[]+sub2[]+sub3[],{sub2[],2},1+2+3,6}

But shouldn't I be getting
{fun1[],sub1[]+sub2[]+sub3[],{sub1[],1},{sub2[],2},{sub3[],3},1+2+3,6}

or

{fun1[],sub1[]+sub2[]+sub3[],1+2+3,6}

I don't understand why the {sub2[],2} is coming up, and not the
{sub1[],1} or the {sub3[],3}.

Thanks!
Clark

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web