On Fri, 26 Jun 2009, deltaquattro at gmail.com wrote:
< Leo,
<
< thank you very much, now it works perfectly.
You're welcome.
> < E(a,b):=integrate((f(x)-(a*g(x)+b))^2,x,0,1);
< > <
< > < e1(a,b):=diff(E(a,b),a,1);
< > <
< > < e2(a,b):=diff(E(a,b),b,1);
Note that this is liable to lead to tears if you try to evaluate e1 at a
non-symbolic argument. It would be safer to use expressions.
A similar comment applies for E. These issues have been discussed a few
times on the list this month, so I'll direct you there rather than
repeat.
Leo
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.