how to subs t.i with i*t.i

Yong Xiao yxiao at zimp.zju.edu.cn
Thu Jul 10 11:11:01 CEST 2003


Hi, it seems that the following lines
ex e1 = indexed(t,i); 
e1.subs(indexed(t,idx(i_,3))==idx(i_,3).get_value()*indexed(t,idx(i_,3)));
,where i and i_ are idx and wildcard objects respectively, doesn't 
substitute t.i with i*t.i. t.i still remains it's original form. Is 
there any way I can do such subs: t.i-->i*t.i? Thank you.

Yong




More information about the GiNaC-list mailing list