Here is a simple bug:
If I define a function f via
>f:=x->solve(-x*(x+1)+y^(2/x),y);
I can plot(f(x), x=0.2..5) and evaluate f(3) but plot(f,0.2..5) yields an error message ( wrong argument (f) in plot) and f(1.5) crashes Maple 12–connection to kernel lost.
If I define the function using fsolve or using unapply as in
> g:=unapply(exp((1/2)*ln(x^2+x)*x),x);
I can plot(g,0.2..5) or plot(g(x),x=0.2..5) or evaluate g(1.5) without problems.
Any idea whee the bug is?
You can duplicate this in Maple 11 or Maple 12:
restart; L:=Array(1..10, j->rand(0..1)());
L := [0, 0, 0, 1, 0, 1, 1, 1, 0, 1]
restart; L:=Array(1..10, j->rand(0..1)());
L := [0, 0, 0, 1, 0, 1, 1, 1, 0, 1]
restart; L:=Array(1..10, j->rand(0..1)());
L := [0, 0, 0, 1, 0, 1, 1, 1, 0, 1]
restart; L:=Array(1..10, j->rand(0..1)());
L := [0, 0, 0, 1, 0, 1, 1, 1, 0, 1]
restart; L:=Array(1..10, j->rand(0..1)());
L := [0, 0, 0, 1, 0, 1, 1, 1, 0, 1]