Hi and thanks as always for Cdb.
I am trying to implement a function that does its work only on the "zoomed" part of an expression.
For example, please consider the algorithm posted for expand_nabla()
; a ref to that algorithm is below. I am using that algorithm and it works
But, when I zoom in on a specific term in an expression and call expand_nabla()
, the call will still expand all instances of nabla rather than just the zoomed instance.
I think that the key point is as follows. There is a loop in expand_nabla
that says
for nabla in ex[r'\nabla']:
The filter ex[r'\nabla']
returns all instances of \nabla
but I want only the instances that appear in the zoom.
Any advice on how to change expand_nabla()
so it would be zoom-sensitive?
Thanks
GPN