![]() | 1 | initial version |
When you do g(v_m=v)
or g.subs(v_m=v)
I think you get the correct answer:
θD0(B)(v,v)θ+B(v,v)−θB(v,v)D0(B)(v,v)(θ+B(v,v))2
D0(B) is the partial derivative of B with respect to the first argument (vm in your case), and this partial derivative is then evaluated at (v,v).
If all you want to do is change the appearance of the partial derivative, you can do it by substituting another variable, for which you specify the latex representation:
D = sage.symbolic.operators.FDerivativeOperator
dB = var('dB', latex_name=r'{\frac{\partial B(v_m, v)}{\partial v_m}}_{|v_m=v}')
g(v_m=v).subs({D(B, [0])(v, v): dB})
Result:
∂∂vmB(vm,v)|vm=vθθ+B(v,v)−∂∂vmB(vm,v)|vm=vθB(v,v)(θ+B(v,v))2