Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  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] *)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement