home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   sci.math.symbolic      Symbolic algebra discussion      10,432 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 8,806 of 10,432   
   Christopher Creutzig to Nasser M. Abbasi   
   Re: fyi, Mupad CAS result being added to   
   16 Jun 15 09:03:44   
   
   From: Christopher.Creutzig@mathworks.com   
      
   On 6/14/15 4:54 PM, Nasser M. Abbasi wrote:   
      
   > CPU time used is real time using mupad rtime(). Leafcount was   
   > obtained by writing the result of each problem to file and then   
   > using Maple's LeafCount to do the measurements on the output. This is   
   > since mupad does not have leafCount function.  (It seems to me   
      
   Counting leaves is probably just as arbitrary as any other measure one   
   could cook up - nothing wrong with it for sure, but unless I'm missing   
   something, it is not a clear win over other complexity measures like   
   length or bytes, either.   
      
   Anyway, here's a MuPAD implementation, which includes functions in its   
   count (I don't know if that is what you want, it's a matter of taste   
   whether to call them leaves):   
      
   leaf := Type::Predicate(x -> bool(x = op(x))):   
   leafCount := x -> nops([prog::find(x, leaf, Type)]):   
      
   leafCount(sin(x^2+3))   
      
     6   
      
      
   Looking forward to seeing your results,   
      
   Christopher   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca