List of derivatives? - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: List of derivatives? (/thread-10905.html) |
List of derivatives? - DrD - 06-13-2018 10:28 AM The command, "diff(expr, var, [Order])," is designed to return derivatives of a specified order; but [Order] does not support a {list} as an argument for the Order option. Is there a convenient way to obtain a list, (or a range), of the derivatives of an expression? (This might be useful for identifying patterns in a series, etc.). [CAS] Example: f(x):=ln(x); // ==> {x^-1, -1* x^-2, 2*x^-3 }, With the first three derivatives as the desired "Order." f'(x); f''(x); f'''(x); -or- diff(f(x),x,1); diff(f(x),x,2); diff(f(x),x,3); Objective: Obtain a list of the derivatives of an expression from a single command. Thanks! -Dale- RE: List of derivatives? - Didier Lachieze - 06-13-2018 11:26 AM (06-13-2018 10:28 AM)DrD Wrote: Objective: Obtain a list of the derivatives of an expression from a single command. map([1,2,3],j->diff(f(x),x,j)) or apply(j->diff(f(x),x,j),[1,2,3]) RE: List of derivatives? - DrD - 06-13-2018 01:23 PM Very nice! Thanks, Didier! -Dale- |