| 1 | initial version |
It seems that there are not the same function in sagemath but we can use " ratsubst " function of maxima
sage : maxima('p:x^18')
sage : maxima('ratsubst(a+1,x^2,p)')
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.