[sage-support] Re: [Newbie]: Why has function definition changed?

2025-02-26 Thread Emmanuel Charpentier
Le mercredi 26 février 2025 à 13:02:00 UTC+1, bernd.bre...@gmail.com a écrit : Dear Emmanuel, The results of your approach might not be pretty. Unfortunatly I think they seem to be wrong too. See: sage: r, t, alpha, delta, r = var('r, t, alpha, delta, r') sage: k, x, lambda_ = function("k,

[sage-support] Re: [Newbie]: Why has function definition changed?

2025-02-26 Thread Bernd Breitschaedel
Thank you Eric & Emmanuel for your solution proposals. Regards, Bernd Emmanuel Charpentier schrieb am Dienstag, 25. Februar 2025 um 18:08:15 UTC+1: > Complement : Sage’s notation for derivatives is somewhat baroque, and this > does not help in the present case. > > Here, both k and x are fun

[sage-support] Re: [Newbie]: Why has function definition changed?

2025-02-26 Thread Bernd Breitschaedel
Dear Emmanuel, The results of your approach might not be pretty. Unfortunatly I think they seem to be wrong too. See: sage: r, t, alpha, delta, r = var('r, t, alpha, delta, r') sage: k, x, lambda_ = function("k, x, lambda_") sage: h1(t) = x(t)*e^(-r*t) sage: D[0](h1)(x(t)) -r*e^(-r*x(t))*x(x(t