Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Insist to have a number in the lambda function, the two "omega variables" involved are not really two omega variables... Compare with:

sage: find_local_maximum( lambda u: up(omega=u) / abs(eMod(omega=u)), -1, 1)
(1.00331600582447, 0.23606797749978958)

which works.

Above, u takes some values in the given interval. Fix one of them. Then eMod(omega=u) is the value of eMod in this fixed u-value. One can apply the abs on it, getting a number. In contrast, in lambda u: up/abs(eMod) we have for each u as result a symbolic expression. And the abs is applied also symbolically.