MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: record intermediate steps

  • To: mathgroup at
  • Subject: [mg73493] Re: record intermediate steps
  • From: "dimitris" <dimmechan at>
  • Date: Tue, 20 Feb 2007 06:16:19 -0500 (EST)
  • References: <><erc1u0$mhp$>

Hi Chris.

Thanks a lot for not giving up your attempts to answer in my original post.
I really appreciate your assistance!

Kind Regards

=CF/=C7 Chris Chiasson =DD=E3=F1=E1=F8=E5:
> If the list of expressions returned by TracePrint TraceInteral->True
> is relatively complete, here is a method that will return a list of
> symbols called from the System` context during the simplification.
> This code could easily be modified to assign the list of expressions
> encountered during the evaluation to a variable, from which the
> aforementioned list of symbols could be cross referenced (to see how
> they were called)
> Block[{$Output=List@OpenWrite["C:\\msgStream.m"]},
> TracePrint[FullSimplify[Cos[2*Pi/7]*Cos[4*Pi/7]*Cos[8*Pi/7]],TraceInternal->True];
> Close/@$Output];
> Thread[Union@Cases[ReadList["C:\\msgStream.m",
> HoldComplete[Expression]],symb_Symbol/;AtomQ@Unevaluated@symb&&
> Context@Unevaluated@symb==="System`":>HoldComplete@symb,{0,Infinity},Heads->True],
> HoldComplete]
> --

  • Prev by Date: Find index of maximal element in multi-dimensional array
  • Next by Date: Re: explanation need!
  • Previous by thread: Re: Re: Re: record intermediate steps
  • Next by thread: Re: record intermediate steps