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,828 of 10,432   
   Nasser M. Abbasi to All   
   question on using ShowSteps in Rubi, aut   
   19 Jul 15 18:16:07   
   
   From: nma@12000.org   
      
   I'd like to capture all the steps made in solving an integral   
   using Rubi, even if Rubi can't solve it completely, but do   
   this in the code, i.e. without user intervention.   
      
   Currently, ShowSteps:=True works as documented like this:   
      
   "To see the steps required to integrate the following   
   expression, move the cursor to the line below and press   
   Shift-Enter or the numeric keypads Enter key to evaluate   
   the cell.  Then repeat this process on the intermediate   
   results until the expression is completely integrated."   
      
   This is hard to program as is, and obtain the steps in list,   
   which then can be documented. I was thinking of adding   
   the steps and rules used, next to Rubi solution as an option   
   showing how it reached the end result for each problem.   
      
   The first problem, is how to capture all the rule numbers used,   
   and intermediate results after applying each rule, in a list in   
   the code (script) with no user intervention to hit return.   
      
   The second problem, is how to know the expression has   
   "completely integrated", since there are few ones which do not   
   completely integrate. Otherwise the program will have no idea   
   when to stop applying each step to get the next one?   
      
   What would be really nice, if Rubi itself, can add an option,   
   somewhere to actually return all the rules used, and the   
   intermdiate results in a list of lists, (one list per one step)   
   and stop at the last step even if it can't finish the   
   integration. For example:   
      
   Int[x Sin[x], x] will return not only the result, but   
   also all the rules used and all the intermediate results   
   in lists like this:   
      
   {{3920,-x Cos[x] + Int[Cos[x], x]},   
     {1879,-x Cos[x] + Sin[x]}   
   }   
      
   Once the rule number is there, I can look it up and typeset   
   in latex the actual rule itself if needed. But the above will   
   be a good start.   
      
   --Nasser   
      
   --- 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