Hey there i have defined this function: G[x_] := Log[x] and the nth derivative fnm[x_, n_] := Derivative[n][g][x]. When i try to print fnm[x, n], i just get the general answer g^(n)[x]. I am undable to get the answer as an explicit function in x. The furmulas are correct as i am able to get correct numeric results from them. What shall i do ?
Derivative returns derivative function, which you then pass it the variable. So I would do it like this (I am assuming you are trying to define fnm to use for different functions.
Thanks for the answer, but unfortunately it will not give the explicit answer for the general case of n - it returns
Log^(n)(x) in stead of the actual expression in just n and x..
In case of n=2, it works fine, but that was not my problem..
but unfortunately it will not give the explicit answer for the general
case of n - it returns Log^(n)(x) in stead of the actual expression in
just n and x..
Ok, found a way. Use Lichtblau’s method as shown here.