MathGroup Archive 1998

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

Search the Archive

Re: What to return on symbolic evaluation of own heads ?


  • To: mathgroup@smc.vnet.net
  • Subject: [mg12572] Re: What to return on symbolic evaluation of own heads ?
  • From: Le Van Tri <lvtri@miller.cs.uwm.edu>
  • Date: Mon, 25 May 1998 14:24:44 -0400
  • Organization: University of Wisconsin - Milwaukee
  • References: <6k7dfb$1la@smc.vnet.net>

You can use HoldForm like this: HoldForm[F[x]] to return the value. Tri.

Andreas Keese wrote:

> Hi,
> ...
> Of course, this doesn't work - while I can write F[0.5] and get a
> correct result, I can't write F[x] as this results in an infinite
> recursion --- but If I want to manipulate my data-object, I somehow
> need to return the original object. E.G. I want to be able to write
>    F[x] /. x-> 3
> and have this evaluated as F[3]...
>
> What should I return in my evaluation-rule when the parameter is
> symbolic ?
>
> Bye,
> Andreas





  • Prev by Date: Re: Newbe: Wave equation
  • Next by Date: Re: NFactorial[n_], fast for large (n).
  • Prev by thread: Re: What to return on symbolic evaluation of own heads ?
  • Next by thread: Solution for a System of ODEs and equations