Hey guys, so I wondered if anyone could try explaining this to me. I am trying to do some (for me) more advanced stuff than I am used to, and I want to define my own math rules in Julia by some kind of operator. Imagine that I have the case that I want:
using SymEngine
x,a,∂ = symbols(:x),symbols(:a),symbols(:∂) #\partial
# I want to have that:
∂*(a*x) = derivative of a*x
# And that if I change the order:
(a*x)*∂ = (a*x) * (derivative not yet taken)
Such that depending on the order of multiplication I get two different results - a simple example would be to compare it with matrices, where a different ordering can give different results as well. Could anyone guide me to some ressources to learn how to do something like this or provide a simple example defining some random math rule? I’ve been trying to read the mathematical operations part of the wiki, but I can’t really see how it is implemented in Julia.
I have knowledge of how to make the differential operator, my question is basically just about how to make a rule which acknowledges the order of multiplication.
Kind regards