Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Re: Testing Mathematica Expressions?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg106645] Re: [mg106622] Re: Testing Mathematica Expressions?
  • From: Andrzej Kozlowski <akozlowski at gmail.com>
  • Date: Wed, 20 Jan 2010 06:46:56 -0500 (EST)
  • References: <hiuusd$92o$1@smc.vnet.net> <hj131r$be8$1@smc.vnet.net> <201001191012.FAA28974@smc.vnet.net>

On 19 Jan 2010, at 11:12, AES wrote:

> In article <hj131r$be8$1 at smc.vnet.net>, Noqsi <jpd at noqsi.com> wrote:
> 
>> On Jan 17, 5:13 am, AES <sieg... at stanford.edu> wrote:
>> 
>>> 5)  Is  ToExpression["exprx"] /. ruleOne  really exactly the same thing
>>> (or, will it produce exactly the same results) as    exprx /. ruleOne?
>> 
>> That you even ask this question shows that you simply haven't done
>> your homework. Please study the tutorials listed at:
> 
> "An example is worth a thousand words."
> 
> I'd be glad to spend some time perusing and attempting to understand an 
> example (the simple the better, of course) for which
> 
>     ToExpression["soks"] /. ruleOne  
> 
> and
> 
>     soks /. ruleOne
> 
> typed into separate Input cells under identical starting conditions, 
> where 'soks' is a sequence of key strokes, yield differing results when 
> evaluated.
> 
Unevaluated[x] /. x -> 3

3

while


ToExpression["Unevaluated[x]"] /. x -> 3

Unevaluated[3]

Andrzej Kozlowski




  • Prev by Date: Sorting paired columns of dates and values
  • Next by Date: Re: Convert string list to number list
  • Previous by thread: Re: Testing Mathematica Expressions?
  • Next by thread: Re: Testing Mathematica Expressions?