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


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

Problems with tracedepth

From Clark Kogan <kogan.clark@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Problems with tracedepth
Date 2012-01-18 11:00 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jf68oj$g7d$1@smc.vnet.net> (permalink)

Show all headers | View raw


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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web