depends and diff with ver 5.22.1 batch file



I should have included the batch file
to simplify others who wish to play
with this bug.

---------------------------------
/* file depends.mac */

  display2d:false$

"spherical polar coordinates (r,theta,phi ) = (r,t,p)  "$

 assume(r > 0, sin(t) > 0 )$
 
 " define drdz and dtdz replacements "$
 
  gradef(r,z,cos(t))$
  gradef(t,z,-sin(t)/r)$  
  
  " p = phi does not depend on z "$

  depends([r,t],[x,y,z])$
  
  depends(p,[x,y])$

  " let bp(r,t,p) be a field component"$
  " depending on r,t,and p "$
 
  depends (bp,[r,t,p])$
  
  " look at some derivatives w.r.t. z "$
  
  diff (cos(p),z);
  
  diff (bp,z);
  
  diff (cos(p)*bp,z);
  
  diff (bp*cos(p),z);
  ------------------------------------

Ted Woollett