<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167091</link>
    <title>MATLAB Central Newsreader - Extended Symbolic Toolbox, code not working under new versions</title>
    <description>Feed for thread: Extended Symbolic Toolbox, code not working under new versions</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>Mon, 07 Apr 2008 10:17:01 -0400</pubDate>
      <title>Extended Symbolic Toolbox, code not working under new versions</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167091#425136</link>
      <author>Dingyu Xue</author>
      <description>The following codes used to run in earlier versions, but now&lt;br&gt;
it is not working under 2007b, 2008a&lt;br&gt;
&lt;br&gt;
maple('with(numtheory):'); f=maple(['cfe:=cfrac(pi,20)'])&lt;br&gt;
n=maple('nthnumer','cfe',4); d=maple('nthdenom','cfe',4)</description>
    </item>
    <item>
      <pubDate>Mon, 07 Apr 2008 16:44:10 -0400</pubDate>
      <title>Re: Extended Symbolic Toolbox, code not working under new versions</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167091#425209</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Dingyu Xue&quot; &amp;lt;xuedingyu@mail.neu.edu.cn&amp;gt; wrote in message &lt;br&gt;
news:ftcsat$gtm$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; The following codes used to run in earlier versions, but now&lt;br&gt;
&amp;gt; it is not working under 2007b, 2008a&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; maple('with(numtheory):'); f=maple(['cfe:=cfrac(pi,20)'])&lt;br&gt;
&amp;gt; n=maple('nthnumer','cfe',4); d=maple('nthdenom','cfe',4)&lt;br&gt;
&lt;br&gt;
I haven't investigated to determine what changed, but if you're trying to &lt;br&gt;
work with the continued fraction for the constant pi, and not the number &lt;br&gt;
theory function pi(n), try replacing 'pi' in your MAPLE call that creates f &lt;br&gt;
with 'Pi'.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Mon, 07 Apr 2008 17:22:30 -0400</pubDate>
      <title>Re: Extended Symbolic Toolbox, code not working under new versions</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167091#425220</link>
      <author>Ben Hinkle</author>
      <description>&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &lt;br&gt;
news:ftdj0r$4p5$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &quot;Dingyu Xue&quot; &amp;lt;xuedingyu@mail.neu.edu.cn&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:ftcsat$gtm$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;&amp;gt; The following codes used to run in earlier versions, but now&lt;br&gt;
&amp;gt;&amp;gt; it is not working under 2007b, 2008a&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; maple('with(numtheory):'); f=maple(['cfe:=cfrac(pi,20)'])&lt;br&gt;
&amp;gt;&amp;gt; n=maple('nthnumer','cfe',4); d=maple('nthdenom','cfe',4)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I haven't investigated to determine what changed, but if you're trying to &lt;br&gt;
&amp;gt; work with the continued fraction for the constant pi, and not the number &lt;br&gt;
&amp;gt; theory function pi(n), try replacing 'pi' in your MAPLE call that creates &lt;br&gt;
&amp;gt; f with 'Pi'.&lt;br&gt;
&lt;br&gt;
Maple changes the way in which aliases are used between Maple 8 (which was &lt;br&gt;
the Maple version used prior to R2007b) and Maple 10. After executing &lt;br&gt;
'with(numtheory)' the name 'pi' no longer is aliased to Pi as is usually the &lt;br&gt;
case with the Symbolic Math Toolbox. Instead pi means numtheory:-pi. An &lt;br&gt;
alternative to Steve's solution is to not import numtheory and instead write &lt;br&gt;
out numtheory:-cfrac, numtheory:-nthnumer and numtheory:-nthdenom.&lt;br&gt;
&lt;br&gt;
Hope that help,&lt;br&gt;
-Ben</description>
    </item>
    <item>
      <pubDate>Mon, 07 Apr 2008 23:23:03 -0400</pubDate>
      <title>Re: Extended Symbolic Toolbox, code not working under new versions</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167091#425280</link>
      <author>Dingyu Xue</author>
      <description>&quot;Ben Hinkle&quot; &amp;lt;bhinkle@mathworks.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;ftdl8l$htc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:ftdj0r$4p5$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &quot;Dingyu Xue&quot; &amp;lt;xuedingyu@mail.neu.edu.cn&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;gt; news:ftcsat$gtm$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; The following codes used to run in earlier versions,&lt;br&gt;
but now&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; it is not working under 2007b, 2008a&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; maple('with(numtheory):'); f=maple(['cfe:=cfrac(pi,20)'])&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; n=maple('nthnumer','cfe',4); d=maple('nthdenom','cfe',4)&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I haven't investigated to determine what changed, but if&lt;br&gt;
you're trying to &lt;br&gt;
&amp;gt; &amp;gt; work with the continued fraction for the constant pi,&lt;br&gt;
and not the number &lt;br&gt;
&amp;gt; &amp;gt; theory function pi(n), try replacing 'pi' in your MAPLE&lt;br&gt;
call that creates &lt;br&gt;
&amp;gt; &amp;gt; f with 'Pi'.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Maple changes the way in which aliases are used between&lt;br&gt;
Maple 8 (which was &lt;br&gt;
&amp;gt; the Maple version used prior to R2007b) and Maple 10.&lt;br&gt;
After executing &lt;br&gt;
&amp;gt; 'with(numtheory)' the name 'pi' no longer is aliased to Pi&lt;br&gt;
as is usually the &lt;br&gt;
&amp;gt; case with the Symbolic Math Toolbox. Instead pi means&lt;br&gt;
numtheory:-pi. An &lt;br&gt;
&amp;gt; alternative to Steve's solution is to not import numtheory&lt;br&gt;
and instead write &lt;br&gt;
&amp;gt; out numtheory:-cfrac, numtheory:-nthnumer and&lt;br&gt;
numtheory:-nthdenom.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hope that help,&lt;br&gt;
&amp;gt; -Ben&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
Thanks Ben, I found this by accident last night.  So why the&lt;br&gt;
change?  It may confuse many Matlab users</description>
    </item>
  </channel>
</rss>

