Thanks for your info Eric,
Basically I want to do Hamilton optimization (Hamiltonian (control theory) - Wikipedia <https://en.wikipedia.org/wiki/Hamiltonian_(control_theory)>) using SageMath. This is what i tried, and where I have abserved this behaviour. So how should i define H in 'In [2]', so that 'In [4]' shows the expected result. Thank you, Bernd [image: sage2.png] egourg...@gmail.com schrieb am Montag, 24. Februar 2025 um 14:06:43 UTC+1: > Le lundi 24 février 2025 à 14:04:17 UTC+1, Eric Gourgoulhon a écrit : > > Previously, x and y were callable symbolic expressions x(t) and y(t). > > > Sorry I meant : x and y were symbolic expressions x(t) and y(t) > > -- 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 visit https://groups.google.com/d/msgid/sage-support/6f0315d9-1830-4542-b565-cdfaa8fffc3dn%40googlegroups.com.