Antimon
Antimon

Reputation: 732

maxima: `let` not matching expression

I am defining recursive derivatives of a subscripted function using let:

depends(Q, x)$
let(diff(Q[n], x), x * Q[n-1])$

I understand that let does literal matching, so this rule doesn't get applied when the subscript changes even if the evaluation should be straightforward:

letsimp(diff(Q[n-1], x));
        'diff(Q[n-1],x,1)

Is there a way to make maxima apply the rule to this expression?

I've seen the manual talk about matchdeclare, but I found it very hard to understand what it does and whether it applies to my problem.

Upvotes: 0

Views: 7

Answers (0)

Related Questions