Bug in print2 of Tutorial
Pearu Peterson
pearu at cens.ioc.ee
Tue Aug 21 10:15:48 CEST 2001
Hi,
Shouldn't the lines
n.find_bool(name, x);
n.find_unsigned(name, x);
n.find_string(name, x);
in static void my_print2(const archive_node & n); of the Tutorial be
replaced with the following ones:
n.find_bool(name, x, j);
n.find_unsigned(name, x, j);
n.find_string(name, x, j);
?
I noticed that when extracting info from fderivative instance. I was
expecting 'D[0,1](f)(x,y)' but I was getting 'D[0,0](f)(x,y)' from
'f(x,y).diff(x).diff(y)'. The change above fixed this.
As I understand, then all items in property p[i] should be of the same
type. Is this always true?
Regards,
Pearu
More information about the GiNaC-devel
mailing list