maxima: use function as function argument
<p>Like the title says, I want to use a function as a function argument.
Intuitive I tried something like:</p>

<pre><code>a(t,c) := t+c;
b(R_11, R_12, R_13, d_1x, d_1y, d_1z) := R_11*d_1x + R_12*d_1y + R_13*d_1z;

f( a(t,c), b(R_11, R_12, R_13, d_1x, d_1y, d_1z), %lambda ) := a(t,c) + 
     %lambda * b(R_11, R_12, R_13, d_1x, d_1y, d_1z);
</code></pre>

<p>But Maxima stated "define: in definition of f, found bad argument"</p>

<p>My goal is to simplify my equations to get a better overview. When I differentiate like </p>

<pre><code>diff( f(...), R_11 )
</code></pre>

<p>the result for this example should be the partial derivative of b with respect to R_11.</p>

<pre><code>f' = b_R11(...)
</code></pre>

<p>Is there a way to do such thinks or is this an odd attempt and there is maybe a better way?</p>