Do you want the result of subs to live in a different ring?
Then you should create a ring map and apply it.


On December 21, 2025 10:14:42 AM CST, Enrique Artal <[email protected]> 
wrote:
>Not really, but it may help. I do not see why it idoes not work.
>
>El domingo, 21 de diciembre de 2025 a las 14:53:44 UTC+1, [email protected] 
>escribió:
>
>> On Sun, Dec 21, 2025 at 5:48 AM Enrique Artal <[email protected]> wrote:
>>
>>> I think that this code has been successful once:
>>> R.<x, y> = QQ[]
>>> T.<t> = QQ[]
>>> sb = {x: t, y: t^2}
>>> X = vector(R.gens())
>>> X.subs(sb)
>>>
>>> This one works:
>>>
>>> R.<x, y, z> = QQ[]
>>> T.<t, t0, t1> = QQ[]
>>> F = (y * z - x^2)^2 - x^3 * z
>>> sb = {x:t^2, y:t^3 + t^4, z:1}
>>> X = vector(R.gens())
>>> X.subs(sb)
>>>
>>> But the result is (x^2, x^4 + x^3, 1)
>>>
>>> What am I doing wrong
>>>
>>
>> Do you need the ring T?
>>
>>
>> R.<x, y, z, t> = QQ[]
>>
>> sb = {x:t^2, y:t^3 + t^4, z:1}
>>
>> X = vector([x,y,z])
>> X.subs(x=t^2, y=t^3 + t^4, z=1)
>>
>> works for me.
>>  
>>
>>> -- 
>>> 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 view this discussion visit 
>>> https://groups.google.com/d/msgid/sage-support/3820340c-b09a-45bb-958b-f8403f094269n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/sage-support/3820340c-b09a-45bb-958b-f8403f094269n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>
>-- 
>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 view this discussion visit 
>https://groups.google.com/d/msgid/sage-support/16e72d04-b7c6-4ab3-9fbb-549018575067n%40googlegroups.com.

-- 
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 view this discussion visit 
https://groups.google.com/d/msgid/sage-support/137B5C4E-EA71-48F7-8FEA-5C8A55EC0B90%40gmail.com.

Reply via email to