Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Re: PatternMatching with Dt[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg37296] Re: PatternMatching with Dt[]
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 22 Oct 2002 04:47:21 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <ap0753$c3m$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

Dt[x] /. HoldPattern[Dt[arg_]] :> f[arg]

works fine.

Regards
  Jens

Johannes Ludsteck wrote:
> 
> I would like to replace Dt[x_] in a complex
> expression. For example consider
> 
> Dt[x]/.Dt[arg_]->f[arg]
> 
> where x is a pure Symbol (has no value).
> However, Mathematica refuses apply the rule.
> Various other attempts, for example
> Unevaluted[Dt[arg_]]:>f[arg]
> and HoldForm[...] were unsuccessful.
> 
> I managed to  circumvent the problem by
> Dt[x]/.Dt->fun
> However, I were more happy if I understood why the
> first attempt was not successful.
> Can someone explain?
> 
> Best regards,
>         Johannes Ludsteck
> <><><><><><><><><><><><>
> Johannes Ludsteck
> Economics Department
> University of Regensburg
> Universitaetsstrasse 31
> 93053 Regensburg
> Phone +49/0941/943-2741


  • Prev by Date: magnify Help Browser
  • Next by Date: Re: PatternMatching with Dt[]
  • Previous by thread: PatternMatching with Dt[]
  • Next by thread: Re: PatternMatching with Dt[]