I need to define some function like f(x,y) = x * sin(y)/y if y != 0, x otherwise
, such that f
can be differentiated. Is there a way to do so? Thanks!
1 | initial version |
I need to define some function like f(x,y) = x * sin(y)/y if y != 0, x otherwise
, such that f
can be differentiated. Is there a way to do so? Thanks!