Hello, I'm a beginner with SymPy and I need to use an indicator function which returns 1 when a condition holds and 0 otherwise.
I have this kind of stuff : mu*(0<a<1)+(1-mu)*(a>1) when I subsitute "mu" with a value, there is no problem, but when I substitute "a" there is a problem with the multiplication between an integer and a boolean What is the good way to do ? Is there an indicator function ? Thanks, Regards K.
signature.asc
Description: OpenPGP digital signature
