Re: record intermediate steps
- To: mathgroup at smc.vnet.net
- Subject: [mg73493] Re: record intermediate steps
- From: "dimitris" <dimmechan at yahoo.com>
- Date: Tue, 20 Feb 2007 06:16:19 -0500 (EST)
- References: <200702161021.FAA09937@smc.vnet.net><erc1u0$mhp$1@smc.vnet.net>
Hi Chris.
Thanks a lot for not giving up your attempts to answer in my original post.
I really appreciate your assistance!
Kind Regards
Dimitris
=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]
>
>
> --
> http://chris.chiasson.name/
- References:
- Re: Re: record intermediate steps
- From: "Chris Chiasson" <chris@chiasson.name>
- Re: Re: record intermediate steps