bug76 410 B

123456789101112131415161718192021
  1. % Date: Mon, 06 May 1996 16:55:36
  2. % From: "POPOWICZ Ziemowit" <ZIEMEK@proton.ift.uni.wroc.pl>
  3. % Why is the result zero when the noncom2 package is loaded?
  4. load_package noncom2;
  5. operator d,fun;
  6. noncom d,fun;
  7. % implementation of Leibnitz rule
  8. % d(1) denotes the differentations and fun the object
  9. let { d(1)*fun(~f,~n) => fun(f,n+1) + fun(f,n)*d(1)};
  10. result:=d(1)^2*fun(f,0)-d(1)*fun(f,0)^2;
  11. end;