SHARE
TWEET

Untitled

a guest Jun 25th, 2019 50 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top