Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7966 > unrolled thread
| Started by | Clark Kogan <kogan.clark@gmail.com> |
|---|---|
| First post | 2012-01-18 11:00 +0000 |
| Last post | 2012-01-18 11:00 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Problems with tracedepth Clark Kogan <kogan.clark@gmail.com> - 2012-01-18 11:00 +0000
| From | Clark Kogan <kogan.clark@gmail.com> |
|---|---|
| Date | 2012-01-18 11:00 +0000 |
| Subject | Problems 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
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web