Perhaps the derivative should raise an exception and is_constant should
ignore the derivative check if the derivative raises an exception.

Aaron Meurer

On Sun, Jan 29, 2017 at 7:12 AM Björn Dahlgren <[email protected]> wrote:

>
>
> On Thursday, 26 January 2017 20:40:10 UTC+1, Aaron Meurer wrote:
>
> I don't think it makes sense. The index is a discrete variable, but
> derivatives only make sense for continuous variables.
>
>
> I agree with Aaron, I think making the Expr.is_constant method aware of
> Indexed would be the preferred path.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/5fae1ac7-0524-43b8-88e2-2cb05139a24f%40googlegroups.com
> <https://groups.google.com/d/msgid/sympy/5fae1ac7-0524-43b8-88e2-2cb05139a24f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6KrZ_ErwdjyzSu7TOox_-VrQTdaPtyXOBQkWnAgTUMiiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to