find_root and variable capture?



Stavros Macrakis wrote:
> I suspect this is the usual quoting issue that has been explained many
> times on this list.  I am not sure why it is hard to understand the
> problem -- perhaps because Maxima tolerates shortcuts like
> find_root(sin(x),x,-1,1) in many cases....

Thanks Stavros. I think the problem is not understanding when I need to 
quote due to maxima being very tolerant of shortcuts, and the shortcuts 
almost always being used in the documentation examples.

I agree that quotation shouldn't be the default. in fact, I think the 
opposite, we should never default-quote. However, the documentation 
should show examples that show and carefully explain the use of quotation.

I went through my entire script, and converted things like

find_root(foo(bar,baz,quux),[bar,0,1]) into

find_root(funmake('foo,['bar,baz,quux]),['bar,0,1])

which seems to have solved some problems, and now my script can plot2d 
my function. It also seems to have solved some wrong-answer-producing 
code as well...

I would like to contribute some examples to the manual that explain this 
issue for find_root, quad_qag, and plot2d. How should I go about it?