[sympy] evaluating abs(x) --> x if x>0

2010-02-03 Thread archeryguru2000
Hello all, I have an issue with an integral I'm trying to evaluate. I have a matrix where each element is a function of (among other terms) an integrated Legendre polynomial. My opportunity is that certain returns are in the form of absolute values. For example, an output to one particular eleme

Re: [sympy] evaluating abs(x) --> x if x>0

2010-02-03 Thread Aaron S. Meurer
Just initiate r as r = Symbol('r', positive=True). Aaron Meurer On Feb 3, 2010, at 9:07 AM, archeryguru2000 wrote: > Hello all, > I have an issue with an integral I'm trying to evaluate. I have a > matrix where each element is a function of (among other terms) an > integrated Legendre polynomi

Re: [sympy] evaluating abs(x) --> x if x>0

2010-02-03 Thread Chad File
Wow! My head is lowered in shame. I have no clue why I didn't think of that. Thank you very much. Very embarrassed, ~~archery~~ Aaron S. Meurer wrote: Just initiate r as r = Symbol('r', positive=True). Aaron Meurer On Feb 3, 2010, at 9:07 AM, archeryguru2000 wrote: Hello all, I have