a problem with outative for some functions
- Subject: a problem with outative for some functions
- From: Sergey Litvinov
- Date: Wed, 31 Jul 2013 11:01:54 +0200
Please consider examples below. The last two cases do not give what I
expect.
display2d: false$
sum(-2*x(i), i, 1, N); /* OK */
declare(foo, outative)$
foo(-2*x(i), i); /* OK */
load("vect")$
grad(-2*f(x)); /* OK */
declare(lsum, outative)$
lsum(-2*x(i), i, L); /* wrong */
declare(ilt, outative)$
ilt(-2*x(s), s, t); /* wrong */
Here is my output
(%i1) display2d: false$
(%i2) sum(-2*x(i), i, 1, N);
(%o2) -2*'sum(x(i),i,1,N)
(%i3) declare(foo, outative)$
(%i4) foo(-2*x(i), i);
(%o4) -2*foo(x(i),i)
(%i5) load("vect")$
(%i6) grad(-2*f(x));
(%o6) -2*grad f(x)
(%i7) declare(lsum, outative)$
(%i8) lsum(-2*x(i), i, L);
(%o8) 'lsum(-2*x(i),i,L)
(%i9) declare(ilt, outative)$
(%i10) ilt(-2*x(s), s, t);
(%o10) 'ilt(-2*x(s),s,t)
(%o12) ?%build_info("branch_5_30_base_118_g9292e26_dirty",
"2013-07-28 18:41:19","x86_64-unknown-linux-gnu","CLISP",
"2.49 (2010-07-07) (built 3575122160) (memory 3584018484)")