wxMaxima 0.7.0a http://wxmaxima.sourceforge.net
   
   Maxima 5.10.0 http://maxima.sourceforge.net
   
   Using Lisp GNU Common Lisp (GCL) GCL 2.6.8 (aka GCL)
   
   Distributed under the GNU Public License. See the file COPYING.
   
   Dedicated to the memory of William Schelter.
   
   This is a development version of Maxima. The function bug_report()
   
   provides bug reporting information.
   
 
  
(%i1) 
  
  
   load("tensor.lisp");
   
  
  
  
 
  
(%i2) 
  
  
   a : [[1-x, x^2],[sin(x),cos(x)]];
   
  
  
  
 
  
(%i3) 
  
  
   tensortype(a);
   
  
  
  
 
  
(%i4) 
  
  
   b : [[x^2 + cos(x), -sin(x), sin(x)*cos(x)],[-x, x^3 + x, atan(x)]];
   
  
  
  
 
  
(%i5) 
  
  
   tensortype(b);
   
  
  
  
 
  
(%i6) 
  
  
   dab1 : diff(a ot b, x);
   
  
  
  
 
  
(%i7) 
  
  
   dab2 : diff(a, x) ot b + a ot diff(b, x);
   
  
  
  
 
  
(%i8) 
  
  
   dif12 : ratsimp(dab1 - dab2);
   
  
  
  
 
(%i9)