In the expression (5^x)^2-7*5^x+4, I want to substitute x^5 by t.

With sagemath 7.2 (or another old versions), I can do
((5^x)^2-7*5^x+4).subs(5^x==t)
and I get t^2 - 5*t + 4

But sagemath 9.4 does not change the first 5^x and he gives
5^(2*x) - 7*t + 4

Why?

(In both cases, var("t") has been previously used)

Yours,

Juan Luis Varona

-- 
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 sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/075e952e-68db-4373-b73a-c16c441bcee8n%40googlegroups.com.

Reply via email to