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 9,330 of 10,432   
   acer to Nasser M. Abbasi   
   Re: leaf count for sympy?   
   31 Mar 17 09:53:30   
   
   From: maple@rogers.com   
      
   On Friday, March 31, 2017 at 3:14:54 AM UTC-4, Nasser M. Abbasi wrote:   
   [deleted]   
   >    
   > In Maple, I am used to calling its own LeafCount() function,   
   > not length() to get measure for size of expression. For example   
   >    
   > length(x+2*y)   
   >       9   
   >    
   > but   
   >    
   > MmaTranslator[Mma][LeafCount](x+2*y);   
   >        5   
      
   Yes, it is appropriate that you are using MmaTranslator:-Mma]:-LeafCount   
   instead of the `length` command on Maple.   
      
   Here's another reason why that is so:   
      
   length( aaaaaaaaaaaaaa + b );   
                                    22   
      
   length( a + b );                
                                     9   
      
   But it is important that your grading scheme measures the size of the   
   "optimal" anti-derivative using the same system as for the measurement of the   
   result.   
      
   For example, if you use Maple's own `LeafCount` to measure the size of an   
   integration result, then you should very much also be formulating the optimal   
   result in Maple as well, and then comparing by computing the size of that   
   optimal result it Maple. You    
   must never compare against the optimal size as measured by any other system.   
      
   I suspect that Albert's has made the same point. I'd like to stress it. If   
   that is already your approach then apologies for mentioning it.   
      
   --- 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