1 | initial version |
Maybe by a change of variables:
sage: var('k,w,p')
sage: expr(k,w,p)=exp(4ik+3iw+ip)-exp(4ik+2iw+2ip)-exp(4ik+2iw)+exp(4ik+iw+ip)+2exp(2ik+4iw+ip)-
exp(2ik+3iw+2ip)-exp(2ik+3i*w)
sage: f(k,w,p)=expr(log(k),log(w),log(p))
sage: g(k,w,p)=f.canonicalize_radical()
sage: g(exp(k),exp(w),exp(p)).factor()
2 | No.2 Revision |
Maybe by a change of variables:
variables:
sage: var('k,w,p')
var('k,w,p')
sage: expr(k,w,p)=exp(4ik+3iw+ip)-exp(4ik+2iw+2ip)-exp(4ik+2iw)+exp(4ik+iw+ip)+2exp(2ik+4iw+ip)-
exp(2ik+3iw+2ip)-exp(2ik+3i*w)
i*w)
sage: f(k,w,p)=expr(log(k),log(w),log(p))
f(k,w,p)=expr(log(k),log(w),log(p))
sage: g(k,w,p)=f.canonicalize_radical()
g(k,w,p)=f.canonicalize_radical()
sage: g(exp(k),exp(w),exp(p)).factor()