Guest User

Untitled

a guest
Jun 25th, 2019
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. exp=p[x]+p'[x]+p''[x]...Derivative[n][p][x]
  2.  
  3. rule=Derivative[_][p][x]:>1
  4.  
  5. p'[x]/.rule
  6. (* output: 1 *)
  7.  
  8. p''[x]/.rule
  9. (* output: 1 *)
  10.  
  11. p[x]/.rule
  12. (* output: p[x] *)
RAW Paste Data