<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243624</link>
    <title>MATLAB Central Newsreader - Faster symbolic computations</title>
    <description>Feed for thread: Faster symbolic computations</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 03 Feb 2009 05:57:01 -0500</pubDate>
      <title>Faster symbolic computations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243624#625621</link>
      <author>Thiago </author>
      <description>Folks,&lt;br&gt;
&lt;br&gt;
I have a couple of general questions. I'm performing symbolic computations in MATLAB, and I noticed I can avoid memory errors by manually executing blocks of code at a time.&lt;br&gt;
&lt;br&gt;
1) Is there a way to orchestrate the execution of my code blocks so that I don't run into those memory errors, while keeping the operation in &quot;auto mode&quot;?&lt;br&gt;
&lt;br&gt;
2) Do you have a few other tips to speed up symbolical computations? Maybe the I should do this: digits( n ) with n = 6 at most.  &lt;br&gt;
&lt;br&gt;
Thanks!</description>
    </item>
    <item>
      <pubDate>Tue, 03 Feb 2009 13:38:32 -0500</pubDate>
      <title>Re: Faster symbolic computations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243624#625707</link>
      <author>Alan Weiss</author>
      <description>Hi, I am confused about what you are asking. If the value of &quot;digits&quot; &lt;br&gt;
affects your results, then I suppose you are actually doing numerical &lt;br&gt;
computations, not symbolic. In that case, I recommend you employ &lt;br&gt;
matlabFunction to turn your symbolic expressions into function handles &lt;br&gt;
or M-files that will evaluate quickly. For more information, see&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/symbolic/brt7nuv.html#brt7nyh&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/symbolic/brt7nuv.html#brt7nyh&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Alan Weiss&lt;br&gt;
MATLAB mathematical toolbox documentation&lt;br&gt;
&lt;br&gt;
Thiago wrote:&lt;br&gt;
&amp;gt; Folks,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have a couple of general questions. I'm performing symbolic computations in MATLAB, and I noticed I can avoid memory errors by manually executing blocks of code at a time.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 1) Is there a way to orchestrate the execution of my code blocks so that I don't run into those memory errors, while keeping the operation in &quot;auto mode&quot;?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 2) Do you have a few other tips to speed up symbolical computations? Maybe the I should do this: digits( n ) with n = 6 at most.  &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks!</description>
    </item>
    <item>
      <pubDate>Tue, 03 Feb 2009 16:43:02 -0500</pubDate>
      <title>Re: Faster symbolic computations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243624#625770</link>
      <author>Thiago </author>
      <description>Hi Alan,&lt;br&gt;
&lt;br&gt;
Thanks for your response. We'll I'm actually using a mix of numerical inputs with symbolic values. When those meet in my code, the output is symbolic. That's exactly what I wish, namely, a symbolic function having a few variables I specify. It would be easier if I knew the ultimate expression beforehand, because I would be able to simply numerically evaluate it. Because of the complexity and generality in my routine, that's not the case. An alternative would be to have absolutely everything as symbolic, and then evaluate only the variables I want in the very end. That sounds like a better idea; I'm going to try it.&lt;br&gt;
&lt;br&gt;
I did take a look at the link you suggested, but it seems that matlabFunction is only useful for the case of numerical evaluation of all variables. In my case, I want to keep a select few as symbolic.&lt;br&gt;
&lt;br&gt;
The reason why I suggested changing the value of digits is that I imagined my code would be processed faster if the huge fractional expressions, which crop up in symbolic mode, can be replaced by an approximate &quot;symbolic floating-point&quot; representation having less significant digits. That's all.&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
&lt;br&gt;
Thiago</description>
    </item>
    <item>
      <pubDate>Tue, 03 Feb 2009 16:53:01 -0500</pubDate>
      <title>Re: Faster symbolic computations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243624#625775</link>
      <author>Thiago </author>
      <description>By the way, I'm sorry for the typo. I meant to say Well, not We'll. You'll probably understand it anyway.&lt;br&gt;
&lt;br&gt;
-Thiago</description>
    </item>
  </channel>
</rss>

