Sorry if this is already on this forum somewhere, I had a look but couldn't find anything. Anyway, I am looking to define a function where the inputs are: a
and b-c
. Is there any way to do this?
MWE:
foo[x_Symbol,y_Symbol]:=z
foo[a_Symbol,(b_Symbol-c_Symbol)]:=foo[a,b]-foo[a,c]
The (b_Symbol-c_Symbol)
is the output of another function that I have.