Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expression differentiation with constants #15

Closed
tmamedzadeh opened this issue Jul 25, 2018 · 3 comments
Closed

Expression differentiation with constants #15

tmamedzadeh opened this issue Jul 25, 2018 · 3 comments
Labels

Comments

@tmamedzadeh
Copy link

Is it possible to differentiate and expression C*(x+y) by x, showing that C is a constant?

@chakravala
Copy link
Owner

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.

@tmamedzadeh
Copy link
Author

How did it recognize that c is constant but y is variable?

@chakravala
Copy link
Owner

It is treated as partial differentiation, i.e. x is declared as the variable and the others are treated constant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants