An example:
(%i3) diff(beta(m,x),x);
d
(%o3) ── (beta(m, x))
dx
But if we convert the beta
function to gamma
functions, we get a derivative:
(%i7) makegamma(beta(m,x));
gamma(m) gamma(x)
(%o7) ─────────────────
gamma(x + m)
(%i8) diff(%,x);
gamma(m) psi (x) gamma(x) gamma(m) gamma(x) psi (x + m)
0 0
(%o8) ───────────────────────── - ─────────────────────────────
gamma(x + m) gamma(x + m)
This could be rewritten in terms of beta
and psi[0]
. There doesn't seem to be a function to convert gamma
to beta
functions.
The following works. I am not familiar with MQAPPLY and would welcome guidance on style.
I think this is fine. Something similar is used in derivative of
bessel_j
. It seems thatmqapply
is how things likepsi[0](x)
are represented.Fixed with commit [1be377]
Related
Commit: [1be377]
Last edit: David Billinghurst 2024-08-08