Maxima: replace conjugate product by squared absolute value -


i have expression several products like: a*conjugate(a). how ask maxima replace them cabs(a)^2 ?

thanks in advance

one way switch polarform. adjust p(e)

declare([a, b, c], complex); e: a*conjugate(a) + b^2*conjugate(b)^2 + c; /* apply `polarform' if `p(e)' true */ p(e):=member(e, ['a, 'b]); polarform0(e):=if p(e) polarform(e) else e; scanmap(polarform0, e); 

ouputs:

c+abs(b)^4+abs(a)^2$ 

Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -