Expression differentiation with constants
tmamedzadeh opened this issue · comments
Tarlan Mammadzada commented
Is it possible to differentiate and expression C*(x+y)
by x
, showing that C
is a constant?
Dream Scatter commented
Do you mean like this?
julia> using Reduce
Reduce (Free CSL version, revision 4590), 11-May-18 ...
julia> Algebra.df( :(c*(x+y)), :x)
:c
note that REDUCE is not set to be case sensitive, so C
will be returned as c
.
Tarlan Mammadzada commented
How did it recognize that c
is constant but y
is variable?
Dream Scatter commented
It is treated as partial differentiation, i.e. x
is declared as the variable and the others are treated constant.