MathGroup Archive 1992

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

Search the Archive

ReplaceAll bug

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: ReplaceAll bug
  • From: bahder%tbb at yoda.physics.unc.edu (Thomas B. Bahder)
  • Date: Fri, 31 Jan 92 10:04:49 EST

I have a simple problem using the ReplaceAll operator.
I am using version Mma. v. 2.04 on the NeXT  (however the same  
happens on the MIPS Mma v.2.0) with the following results

Sqrt[240] /. Sqrt[x_] -> 2 Sqrt[x/4]
4 Sqrt[15]

Sqrt[480] /. Sqrt[x_] -> 2 Sqrt[x/4]
Sqrt[480]

Log[480] /. Log[x_] -> 2 Log[x/4]
2 Log[120]

This kind of thing really shakes me up.


Thomas B. Bahder

Applied Physics Branch
U.S.Army Laboratory Command
Harry Diamond Laboratories
Adelphi, Maryland 20783

email: bahder at adelphi-tbb.army.mil 


tel. 301-394-2042
fax: 301-394-2103





  • Prev by Date: About NonCommutativeMultiply
  • Next by Date: Re: ReplaceAll bug
  • Previous by thread: About NonCommutativeMultiply
  • Next by thread: Re: ReplaceAll bug