Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • $\begingroup$ der[i_, x_] := D[tf1[i, x], x] worked for me? $\endgroup$ Commented Apr 6, 2017 at 16:35
  • $\begingroup$ If tf1 has a first variable, you should define it as: tf1[myname_?String, x_] and define the specific functions for myname = "a" and "b". $\endgroup$ Commented Apr 6, 2017 at 16:36
  • $\begingroup$ @Pillsy perfect, this seems like the only combination I didn't try... (I was mostly trying pure functions as the argument). Thanks! $\endgroup$ Commented Apr 6, 2017 at 16:39
  • $\begingroup$ @DavidG.Stork this is unrelated to the derivative, but a short example would help me a lot. And maybe a hint why this is better than my way. Thank you very much! $\endgroup$ Commented Apr 6, 2017 at 16:40
  • $\begingroup$ @Pillsy however, your solution doesn't work for der["a",3], for example. There's an error "General::ivar" $\endgroup$ Commented Apr 6, 2017 at 16:50