(I've did a little search on this but couldn't found the solution.)
How to use SR.wild(0) when "abs" is present in an expression ?
Thanks.
Pedro
EXAMPLE 1 (with abs)
t=var('t')
w0 = SR.wild(0)
e1 = abs(cos(t))^2; print e1
print e1.subs( abs(w0)^2 == w0 )
abs(cos(t))^2
abs(cos(t)) #abs shouldn't be here.
EXAMPLE 2 (with tan)
t=var('t')
w0 = SR.wild(0)
e2 = tan(cos(t))^2; print e2
print e2.subs( tan(w0)^2 == w0 )
tan(cos(t))^2
cos(t) #tan and square removed.
--
You received this message because you are subscribed to the Google Groups
"sage-support" 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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.