<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-1895</id>
	<title>Nabble - Octave</title>
	<updated>2008-07-24T13:05:28Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Octave-f1895.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Octave-f1895.html" />
	<subtitle type="html">GNU Octave is a high-level language, primarily intended for numerical computations. It provides a convenient command line interface for solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with Matlab. It may also be used as a batch-oriented language. Octave home is &lt;a href=&quot;http://www.octave.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-18639008</id>
	<title>Re: gnuplot zoom</title>
	<published>2008-07-24T13:05:28Z</published>
	<updated>2008-07-24T13:05:28Z</updated>
	<author>
		<name>gOS</name>
	</author>
	<content type="html">&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Michael Goffioul-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;I might be wrong, but I thought that mous zooming in gnuplot
&lt;br&gt;was only available in (not yet released) 4.3 version.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
I was looking through the mailing list and may have been mislead.
&lt;br&gt;&lt;br&gt;It says &lt;a href=&quot;http://www.nabble.com/zoom-to9221809.html#a9221809&quot; target=&quot;_top&quot;&gt;here&lt;/a&gt;&amp;nbsp;that as early as 2004 there were zoom capabilities.
&lt;br&gt;&lt;br&gt;Then there was mention of using set mouse, which I think no longer works from another page.
&lt;br&gt;&lt;br&gt;Then &lt;a href=&quot;http://www.nabble.com/Mouse-zoom-and-keyborad-shortcuts-not-working-with-Octave-3.0-on-windows-XP-to15699262.html#a15709554&quot; target=&quot;_top&quot;&gt;this&lt;/a&gt;&amp;nbsp;suggested 4.3 which got me looking.
&lt;br&gt;&lt;br&gt;Next I found the bit about being able to use cygwin's gnuplot &lt;a href=&quot;http://www.nabble.com/cygwin-gnuplot-(CVS)-can-be-used-from-mingw-octave-3.0.0-(mouse-zoomin-active!!)-to15322278.html#a15322278&quot; target=&quot;_top&quot;&gt;...&lt;/a&gt;&amp;nbsp;but I didn't feel like installing cygwin again, especially since octave wouldn't even run properly or plot last time I tried it (About 2 weeks ago).
&lt;br&gt;&lt;br&gt;Finally I saw this &lt;a href=&quot;http://www.nabble.com/gnuplot-4.3.0-2008-03-24---mouse-zooming-works-to16814618.html#a16814618&quot; target=&quot;_top&quot;&gt;gnuplot 4.3 works.&lt;/a&gt;&amp;nbsp;So I downloaded the binaries and it didn't work for me, and I don't have a gcc compiler or the desire to install one atm, so I didn't try recompiling from source either.
&lt;br&gt;&lt;br&gt;So I figured I'd through out a line and see if anyone had any information. It seems though that I have to wait till 4.3 comes out...
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Michael Goffioul-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;&amp;gt; Anyhow, I'm using the 3.0.1 (vs 2005) version of Octave for windows located
&lt;br&gt;&amp;gt; here:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://sourceforge.net/project/showfiles.php?group_id=2888&amp;package_id=40078&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/project/showfiles.php?group_id=2888&amp;package_id=40078&lt;/a&gt;&lt;br&gt;[snip]
&lt;br&gt;&amp;gt; Anyway, as I said, I'd like to use the latest version of gnuplot with Octave
&lt;br&gt;&amp;gt; on Windows. Where do I go from here?
&lt;br&gt;&lt;br&gt;The problem with the stock precompiled gnuplot package is that
&lt;br&gt;it does not integrate a patch that I use to generate the version
&lt;br&gt;distributed with octave binary package. This patch allows a real
&lt;br&gt;console mode to gnuplot, which makes it act like on Linux. It
&lt;br&gt;is likely that the stock gnuplot package does not work with octave.
&lt;br&gt;&lt;br&gt;The patch is available on octave-forge SVN repository
&lt;br&gt;(admin/Windows/msvc/libs/).
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/gnuplot-zoom-tp18634994p18639008.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18639136</id>
	<title>Re: Octave C++ performance benchmarks?</title>
	<published>2008-07-24T12:12:48Z</published>
	<updated>2008-07-24T12:12:48Z</updated>
	<author>
		<name>Kyusik Chung</name>
	</author>
	<content type="html">Thats a good question. &amp;nbsp;Is this help forum for people who are trying &amp;nbsp;
&lt;br&gt;to use Octave and who have not shared all of their code with you &amp;nbsp;
&lt;br&gt;(whether in C++ or octave), or is it just for people who are &amp;nbsp;
&lt;br&gt;developing additions to the Octave code base? &amp;nbsp;You might want to &amp;nbsp;
&lt;br&gt;update the statement on the help page if youd like to keep potential &amp;nbsp;
&lt;br&gt;users like myself from emailing the list.
&lt;br&gt;&amp;gt; The help mailing list exists for the discussion of matters related &amp;nbsp;
&lt;br&gt;&amp;gt; to using and installing Octave.
&lt;br&gt;&lt;br&gt;Im of the belief that helping someone out in the forums when they try &amp;nbsp;
&lt;br&gt;to use your software does help the community by creating another great &amp;nbsp;
&lt;br&gt;source of pseudo documentation.
&lt;br&gt;&lt;br&gt;In any case, I suppose its a moot point since I am no longer going to &amp;nbsp;
&lt;br&gt;be a user of Octave.
&lt;br&gt;&lt;br&gt;Kyusik
&lt;br&gt;&lt;br&gt;On Jul 24, 2008, at 11:55 AM, John W. Eaton wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I'm not saying that you can't do what you want to do (assuming that it
&lt;br&gt;&amp;gt; in fact does not violate the terms of the GPL). &amp;nbsp;What I'm asking is
&lt;br&gt;&amp;gt; why our community should bother to help you when what you are doing is
&lt;br&gt;&amp;gt; not helping our community. &amp;nbsp;As I see it, free software is about
&lt;br&gt;&amp;gt; cooperation, not about about us giving and you taking.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; jwe
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18639136&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Octave-C%2B%2B-performance-benchmarks--tp18581180p18639136.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18638697</id>
	<title>Re: gnuplot zoom</title>
	<published>2008-07-24T12:03:38Z</published>
	<updated>2008-07-24T12:03:38Z</updated>
	<author>
		<name>Michael Goffioul-2</name>
	</author>
	<content type="html">On Thu, Jul 24, 2008 at 5:59 PM, gOS &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18638697&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bkirklin@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'd like to use a version of gnuplot for which the zoom functionality is
&lt;br&gt;&amp;gt; present. I see that it may be possible after looking through the threads on
&lt;br&gt;&amp;gt; this site, though there appeared to be some compiling involved with gcc.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I attempted this but plotting revealed the gnuplot terminal instead of a
&lt;br&gt;&amp;gt; plot. I probably made a mistake somewhere.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I tried this version of gnuplot, extracted: gp423win32.zip
&lt;br&gt;&amp;gt; And I used gnuplot_binary to set the path the pgnuplot.exe
&lt;/div&gt;&lt;br&gt;I might be wrong, but I thought that mous zooming in gnuplot
&lt;br&gt;was only available in (not yet released) 4.3 version.
&lt;br&gt;&lt;br&gt;&amp;gt; Anyhow, I'm using the 3.0.1 (vs 2005) version of Octave for windows located
&lt;br&gt;&amp;gt; here:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://sourceforge.net/project/showfiles.php?group_id=2888&amp;package_id=40078&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/project/showfiles.php?group_id=2888&amp;package_id=40078&lt;/a&gt;&lt;br&gt;[snip]
&lt;br&gt;&amp;gt; Anyway, as I said, I'd like to use the latest version of gnuplot with Octave
&lt;br&gt;&amp;gt; on Windows. Where do I go from here?
&lt;br&gt;&lt;br&gt;The problem with the stock precompiled gnuplot package is that
&lt;br&gt;it does not integrate a patch that I use to generate the version
&lt;br&gt;distributed with octave binary package. This patch allows a real
&lt;br&gt;console mode to gnuplot, which makes it act like on Linux. It
&lt;br&gt;is likely that the stock gnuplot package does not work with octave.
&lt;br&gt;&lt;br&gt;The patch is available on octave-forge SVN repository
&lt;br&gt;(admin/Windows/msvc/libs/).
&lt;br&gt;&lt;br&gt;Michael.
&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18638697&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/gnuplot-zoom-tp18634994p18638697.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18638512</id>
	<title>Re: Octave C++ performance benchmarks?</title>
	<published>2008-07-24T11:55:33Z</published>
	<updated>2008-07-24T11:55:33Z</updated>
	<author>
		<name>John W. Eaton</name>
	</author>
	<content type="html">I'm not saying that you can't do what you want to do (assuming that it
&lt;br&gt;in fact does not violate the terms of the GPL). &amp;nbsp;What I'm asking is
&lt;br&gt;why our community should bother to help you when what you are doing is
&lt;br&gt;not helping our community. &amp;nbsp;As I see it, free software is about
&lt;br&gt;cooperation, not about about us giving and you taking.
&lt;br&gt;&lt;br&gt;jwe
&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18638512&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Octave-C%2B%2B-performance-benchmarks--tp18581180p18638512.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18638341</id>
	<title>Re: Bug: det() gives false zero</title>
	<published>2008-07-24T11:46:38Z</published>
	<updated>2008-07-24T11:46:38Z</updated>
	<author>
		<name>John W. Eaton</name>
	</author>
	<content type="html">On 24-Jul-2008, Jaroslav Hajek wrote:
&lt;br&gt;&lt;br&gt;| Looking at src/DLD-FUNCTIONS/det.cc, it seems that this is a feature -
&lt;br&gt;| if a numerically singular matrix is detected, zero is returned.
&lt;br&gt;| Perhaps John can comment on why he made this choice.
&lt;br&gt;&lt;br&gt;If I was the one who did that, then I no longer remember. &amp;nbsp;If it is
&lt;br&gt;the wrong thing to do, then please submit a patch. &amp;nbsp;It should not be
&lt;br&gt;hard to do, as it appears that the Matrix::determinant method already
&lt;br&gt;returns the value you expect in this case.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;jwe
&lt;br&gt;_______________________________________________
&lt;br&gt;Bug-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18638341&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bug-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/bug-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/bug-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---Bugs-f1896.html&quot; embed=&quot;fixTarget[1896]&quot; target=&quot;_top&quot; &gt;Octave - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Bug%3A-det%28%29-gives-false-zero-tp18633001p18638341.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18638506</id>
	<title>Re: Octave C++ performance benchmarks?</title>
	<published>2008-07-24T11:43:44Z</published>
	<updated>2008-07-24T11:43:44Z</updated>
	<author>
		<name>Kyusik Chung</name>
	</author>
	<content type="html">According to the GPL FAQ:
&lt;br&gt;&lt;br&gt;&amp;gt; A company is running a modified version of a GPL'ed program on a web &amp;nbsp;
&lt;br&gt;&amp;gt; site. Does the GPL say they must release their modified sources?
&lt;br&gt;&amp;gt; The GPL permits anyone to make a modified version and use it without &amp;nbsp;
&lt;br&gt;&amp;gt; ever distributing it to others. What this company is doing is a &amp;nbsp;
&lt;br&gt;&amp;gt; special case of that. Therefore, the company does not have to &amp;nbsp;
&lt;br&gt;&amp;gt; release the modified sources.
&lt;br&gt;&lt;br&gt;&lt;br&gt;So what I am talking about is allowed under GPL. &amp;nbsp;If it werent, a lot &amp;nbsp;
&lt;br&gt;of websites out there wouldnt exist (or GPL'd libraries wouldnt be as &amp;nbsp;
&lt;br&gt;widely used). &amp;nbsp;If you disagree with the GPL, you could go with a &amp;nbsp;
&lt;br&gt;different licensing scheme. &amp;nbsp;If you want to stick with GPL, why be &amp;nbsp;
&lt;br&gt;hostile to people who want to use it according to the rules of GPL?
&lt;br&gt;&lt;br&gt;In any case, Ive decided that Octave is not a good option for anyone &amp;nbsp;
&lt;br&gt;who is trying to use matrix/vector/lin algebra functionality in their &amp;nbsp;
&lt;br&gt;own C++ code (my original question). &amp;nbsp;As you pointed out, Octave is &amp;nbsp;
&lt;br&gt;for end users to use in the interpreted environment, and using the &amp;nbsp;
&lt;br&gt;libraries in your own code is just a bonus, if it works. &amp;nbsp;Plus, no one &amp;nbsp;
&lt;br&gt;has contributed the time to put together any documentation, nor is &amp;nbsp;
&lt;br&gt;that on any priority list.
&lt;br&gt;&lt;br&gt;Boost, FLENS, and O2scl seem like good options for using that kind of &amp;nbsp;
&lt;br&gt;functionality.
&lt;br&gt;&lt;br&gt;Kyusik
&lt;br&gt;&lt;br&gt;On Jul 24, 2008, at 6:46 AM, John W. Eaton wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 22-Jul-2008, Kyusik Chung wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; | Sorry for not being more precise. &amp;nbsp;Its not code we are going to
&lt;br&gt;&amp;gt; | distribute. &amp;nbsp;Its back end code that will crunch some data we will &amp;nbsp;
&lt;br&gt;&amp;gt; put
&lt;br&gt;&amp;gt; | on our website, which will be free for consumers to use. &amp;nbsp;I was &amp;nbsp;
&lt;br&gt;&amp;gt; using
&lt;br&gt;&amp;gt; | the term &amp;quot;application&amp;quot; in a very broad sense. &amp;nbsp;Does that qualify?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Qualify in what sense? &amp;nbsp;It does not make the software free for others
&lt;br&gt;&amp;gt; to use. &amp;nbsp;We are sharing Octave with you but you are not sharing your
&lt;br&gt;&amp;gt; work with our community. &amp;nbsp;Why should we go out of our way to help you?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; jwe
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18638506&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Octave-C%2B%2B-performance-benchmarks--tp18581180p18638506.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18638310</id>
	<title>correct behavior of bar(1,1)</title>
	<published>2008-07-24T11:42:16Z</published>
	<updated>2008-07-24T11:42:16Z</updated>
	<author>
		<name>de Almeida, Valmor F.</name>
	</author>
	<content type="html">&lt;br&gt;Hello,
&lt;br&gt;&lt;br&gt;Just wondering whether this is what I should get:
&lt;br&gt;&lt;br&gt;octave:1&amp;gt; bar(1,1)
&lt;br&gt;error: invalid row index = 1
&lt;br&gt;error: assignment failed, or no method for `matrix += matrix'
&lt;br&gt;error: evaluating assignment expression near line 126, column 22
&lt;br&gt;error: evaluating if command near line 123, column 3
&lt;br&gt;error: called from `__bar__' in file
&lt;br&gt;`/usr/share/octave/3.0.0/m/plot/__bar__.m'
&lt;br&gt;error: called from `bar' in file `/usr/share/octave/3.0.0/m/plot/bar.m'
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Valmor
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18638310&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/correct-behavior-of-bar%281%2C1%29-tp18638310p18638310.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18638328</id>
	<title>Re: Errors compiling a C++ class that includes Octave</title>
	<published>2008-07-24T11:37:33Z</published>
	<updated>2008-07-24T11:37:33Z</updated>
	<author>
		<name>Kyusik Chung</name>
	</author>
	<content type="html">Jon and Jord, thanks for the tips. &amp;nbsp;Im using a server install of &amp;nbsp;
&lt;br&gt;ubuntu, so apt-cache search octave compile is a good thing to know. &amp;nbsp; 
&lt;br&gt;Its too bad that apt-cache search doesnt pick up octave3.0-headers &amp;nbsp;
&lt;br&gt;when you do a search for octave.
&lt;br&gt;&lt;br&gt;Kyusik
&lt;br&gt;&lt;br&gt;On Jul 22, 2008, at 5:34 PM, Jordi Gutiérrez Hermoso wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 2008/7/22 Jon Davis &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18638328&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;susan.and.jon@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt; Kyusik Chung wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Riza,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I initially did that, but I don't believe you get the header files &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; be able to compile your own C++ code that includes Octave &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; libraries. I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; was not able to find an &amp;quot;octave-dev&amp;quot; package to install via apt-get
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; install.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; What you need is called octave3.0-headers. Using synaptic provides &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; more
&lt;br&gt;&amp;gt;&amp;gt; information than searching with apt-cache, for example.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; apt-cache search octave compile
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; HTH,
&lt;br&gt;&amp;gt; - Jord
&lt;/div&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18638328&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Errors-compiling-a-C%2B%2B-class-that-includes-Octave-tp18600723p18638328.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18637388</id>
	<title>Re: Bug: det() gives false zero</title>
	<published>2008-07-24T10:59:38Z</published>
	<updated>2008-07-24T10:59:38Z</updated>
	<author>
		<name>Jaroslav Hajek-2</name>
	</author>
	<content type="html">On Thu, Jul 24, 2008 at 4:15 PM, Charlie Dyson &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18637388&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;charlie@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I've been using octave to try to find zeros of the determinants of
&lt;br&gt;&amp;gt; various matrices depending upon some parameter, but have found that
&lt;br&gt;&amp;gt; when the entries in such matrices have wildly different magnitudes
&lt;br&gt;&amp;gt; det() may claim that the matrix is singular when it is not. Using
&lt;br&gt;&amp;gt; Octave 3.0.1 running on XP.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Unfortunately I'll be going on holiday in a few hours so probably
&lt;br&gt;&amp;gt; won't be able to get back to you for a week or so.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here's some code that reproduces the problem, along with a workaround
&lt;br&gt;&amp;gt; I've been using to cope with it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Incidentally, I couldn't see any email address at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.gnu.org/software/octave/bugs.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gnu.org/software/octave/bugs.html&lt;/a&gt;, though I was able to
&lt;br&gt;&amp;gt; find one in the pdf manual.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Many thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Charlie Dyson
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- CUT --
&lt;br&gt;&amp;gt; D = [ -1.001254707117086 0.00125470711708553 1 0 0 0
&lt;br&gt;&amp;gt; &amp;nbsp;0.00125470711708553 -1.001254707117086 0 1 0 0
&lt;br&gt;&amp;gt; &amp;nbsp;0 0 -1.050021149616144 -280214911531872 1 0
&lt;br&gt;&amp;gt; &amp;nbsp;0 0 -5.590061183230268e-021 -0.9499793732213449 0 1
&lt;br&gt;&amp;gt; &amp;nbsp;1 0 0 0 0 0
&lt;br&gt;&amp;gt; &amp;nbsp;0 0 0 0 0 1 ];
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; disp(&amp;quot;Compute determinant with det function:&amp;quot;)
&lt;br&gt;&amp;gt; disp( det(D) );
&lt;br&gt;&amp;gt; disp(&amp;quot;Should not have been zero!&amp;quot;);
&lt;br&gt;&amp;gt; disp( &amp;quot;&amp;quot; );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; disp(&amp;quot;Now try LU decomposition&amp;quot;);
&lt;br&gt;&amp;gt; [l,u,p] = lu( D );
&lt;br&gt;&amp;gt; disp(&amp;quot;Should all be non-zero:&amp;quot;);
&lt;br&gt;&amp;gt; disp( det(l) );
&lt;br&gt;&amp;gt; disp( det(u) );
&lt;br&gt;&amp;gt; disp( det(p) );
&lt;br&gt;&amp;gt; disp(&amp;quot;Again we have a false zero&amp;quot;);
&lt;br&gt;&amp;gt; disp(&amp;quot;&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; disp(&amp;quot;Now compute det of L, U by product of diagonal&amp;quot;);
&lt;br&gt;&amp;gt; detL = 1;
&lt;br&gt;&amp;gt; for n = 1:rows(D)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;detL = detL*l(n,n);
&lt;br&gt;&amp;gt; endfor
&lt;br&gt;&amp;gt; detU = 1;
&lt;br&gt;&amp;gt; for n = 1:rows(D)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;detU = detU*u(n,n);
&lt;br&gt;&amp;gt; endfor
&lt;br&gt;&amp;gt; disp(&amp;quot;Det of l,u,p given by:&amp;quot;);
&lt;br&gt;&amp;gt; disp( detL );
&lt;br&gt;&amp;gt; disp( detU );
&lt;br&gt;&amp;gt; disp( det(p) );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; disp(&amp;quot;Correct value of determinant is:&amp;quot;);
&lt;br&gt;&amp;gt; disp( detL*detU*det(p) )
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Bug-octave mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18637388&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bug-octave@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/bug-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/bug-octave&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Looking at src/DLD-FUNCTIONS/det.cc, it seems that this is a feature -
&lt;br&gt;if a numerically singular matrix is detected, zero is returned.
&lt;br&gt;Perhaps John can comment on why he made this choice.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;RNDr. Jaroslav Hajek
&lt;br&gt;computing expert
&lt;br&gt;Aeronautical Research and Test Institute (VZLU)
&lt;br&gt;Prague, Czech Republic
&lt;br&gt;url: www.highegg.matfyz.cz
&lt;br&gt;_______________________________________________
&lt;br&gt;Bug-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18637388&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bug-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/bug-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/bug-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---Bugs-f1896.html&quot; embed=&quot;fixTarget[1896]&quot; target=&quot;_top&quot; &gt;Octave - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Bug%3A-det%28%29-gives-false-zero-tp18633001p18637388.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18636515</id>
	<title>Re: Behavior of 'mkdir'</title>
	<published>2008-07-24T10:08:38Z</published>
	<updated>2008-07-24T10:08:38Z</updated>
	<author>
		<name>John W. Eaton</name>
	</author>
	<content type="html">On 24-Jul-2008, WMennerich wrote:
&lt;br&gt;&lt;br&gt;| But another thing which could increase the Octave/Matlab compatiblility:
&lt;br&gt;| 
&lt;br&gt;| The message string of the mkdir-function differs in the discussed case:
&lt;br&gt;| 
&lt;br&gt;| Matlab wrotes: 'Directory already exists.' (also with the point at the end)
&lt;br&gt;| 
&lt;br&gt;| Octave wrotes: 'File exists'
&lt;br&gt;| 
&lt;br&gt;| I would suggest to fit the message string given back by the octave mkdir to
&lt;br&gt;| the output which comes from matlab to make strcmp-constructs more compatible
&lt;br&gt;| between Matlab and Octave. Also because 'File exists' may be
&lt;br&gt;| misleading: Sure, in UnixU/Linux everything is a 'file', also directories.
&lt;br&gt;| But since
&lt;br&gt;| the name of this function is 'mkdir' and not 'mkfile' or something else, the
&lt;br&gt;| message should have a relation to 'directory'.
&lt;br&gt;&lt;br&gt;I have no desire to change error messages so that they match exactly
&lt;br&gt;the Matlab error messages (you would do that, but not change the
&lt;br&gt;behavior of the mkdir function?).
&lt;br&gt;&lt;br&gt;In Octave, this message comes from the C-level strerror function.
&lt;br&gt;The text is system dependent. &amp;nbsp;If Octave is modified to support
&lt;br&gt;different locale settings, then the message will change if you change
&lt;br&gt;your locale setting to another language. &amp;nbsp;So I think checking the
&lt;br&gt;text to decide what to do is probably not a good programming strategy.
&lt;br&gt;&lt;br&gt;I think it might be best to simply change the behavior to match
&lt;br&gt;Matlab's in this case. &amp;nbsp;However, I don't think that we need to
&lt;br&gt;duplicate the behavior exactly. &amp;nbsp;I see that Matlab also returns
&lt;br&gt;status=1 and msg=&amp;quot;Directory already exists.&amp;quot; when the &amp;quot;directory&amp;quot; is
&lt;br&gt;just a regular file. &amp;nbsp;That is probably not a good thing to do. &amp;nbsp;How
&lt;br&gt;about the attached patch?
&lt;br&gt;&lt;br&gt;jwe
&lt;br&gt;&lt;br&gt;&lt;br /&gt;# HG changeset patch
&lt;br&gt;# User John W. Eaton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18636515&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jwe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;# Date 1216919016 14400
&lt;br&gt;# Node ID b6d4c644b4b61ada8f5f7ede36072a9b64005389
&lt;br&gt;# Parent &amp;nbsp;4f9e8eeb2059cf6d20e821958233d4e773ef4cff
&lt;br&gt;Fmkdir: improve compatibility
&lt;br&gt;&lt;br&gt;diff --git a/src/ChangeLog b/src/ChangeLog
&lt;br&gt;--- a/src/ChangeLog
&lt;br&gt;+++ b/src/ChangeLog
&lt;br&gt;@@ -1,3 +1,8 @@
&lt;br&gt;+2008-07-24 &amp;nbsp;John W. Eaton &amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18636515&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jwe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;+
&lt;br&gt;+	* dirfns.cc (Fmkdir): If directory already exists, return status =
&lt;br&gt;+	true, but also set error message.
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;2008-07-23 &amp;nbsp;John W. Eaton &amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18636515&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jwe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	* ov-usr_fcn.cc (octave_user_function::do_multi_index_op):
&lt;br&gt;diff --git a/src/dirfns.cc b/src/dirfns.cc
&lt;br&gt;--- a/src/dirfns.cc
&lt;br&gt;+++ b/src/dirfns.cc
&lt;br&gt;@@ -257,16 +257,31 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string msg;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;int status = file_ops::mkdir (file_ops::tilde_expand (dirname),
&lt;br&gt;-				 &amp;nbsp; &amp;nbsp;0777, msg);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;dirname = file_ops::tilde_expand (dirname);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;if (status &amp;lt; 0)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;file_stat fs (dirname);
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;if (fs &amp;&amp; fs.is_dir ())
&lt;br&gt;&amp;nbsp;	{
&lt;br&gt;+	 &amp;nbsp;// For compatibility with Matlab, we return true when the
&lt;br&gt;+	 &amp;nbsp;// directory already exists.
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;	 &amp;nbsp;retval(2) = &amp;quot;mkdir&amp;quot;;
&lt;br&gt;-	 &amp;nbsp;retval(1) = msg;
&lt;br&gt;+	 &amp;nbsp;retval(1) = &amp;quot;directory exists&amp;quot;;
&lt;br&gt;+	 &amp;nbsp;retval(0) = true;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;-	retval(0) = true;
&lt;br&gt;+	{
&lt;br&gt;+	 &amp;nbsp;int status = file_ops::mkdir (dirname, 0777, msg);
&lt;br&gt;+
&lt;br&gt;+	 &amp;nbsp;if (status &amp;lt; 0)
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp;retval(2) = &amp;quot;mkdir&amp;quot;;
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp;retval(1) = msg;
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+	 &amp;nbsp;else
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;retval(0) = true;
&lt;br&gt;+	}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;print_usage ();
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---Maintainers-f1900.html&quot; embed=&quot;fixTarget[1900]&quot; target=&quot;_top&quot; &gt;Octave - Maintainers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Behavior-of-%27mkdir%27-tp18587943p18636515.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18636295</id>
	<title>Re: Behavior of 'mkdir'</title>
	<published>2008-07-24T09:57:11Z</published>
	<updated>2008-07-24T09:57:11Z</updated>
	<author>
		<name>Shai Ayal-2</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Jul 24, 2008 at 7:31 PM, WMennerich &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18636295&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;W.Mennerich@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
First:&lt;br&gt;
&lt;br&gt;
This (simple) solution should work in both environments:&lt;br&gt;
&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;[ack msg]=mkdir(&amp;#39;testDirectory&amp;#39;)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;if ~ack&lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp;if strcmp(msg,&amp;#39;File exists&amp;#39;)&lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;% &amp;#39;Wrong alert&amp;#39; &amp;nbsp;by octave, --&amp;gt;do nothing&lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp;else&lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;% some other thing is wrong, e.g. throw an errror here.&lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp;end&lt;br&gt;
&amp;gt;end&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Maybe you can submit a patch like this to the mkdir documentation?&lt;br&gt;&amp;nbsp; &lt;br&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
But another thing which could increase the Octave/Matlab compatiblility:&lt;br&gt;
&lt;br&gt;
The message string of the mkdir-function differs in the discussed case:&lt;br&gt;
&lt;br&gt;
Matlab wrotes: &amp;#39;Directory already exists.&amp;#39; (also with the point at the end)&lt;br&gt;
&lt;br&gt;
Octave wrotes: &amp;#39;File exists&amp;#39;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I would suggest to fit the message string given back by the octave mkdir to&lt;br&gt;
the output which comes from matlab to make strcmp-constructs more compatible&lt;br&gt;
between Matlab and Octave. Also because &amp;#39;File exists&amp;#39; may be&lt;br&gt;
misleading: Sure, in UnixU/Linux everything is a &amp;#39;file&amp;#39;, also directories.&lt;br&gt;
But since&lt;br&gt;
the name of this function is &amp;#39;mkdir&amp;#39; and not &amp;#39;mkfile&amp;#39; or something else, the&lt;br&gt;
message should have a relation to &amp;#39;directory&amp;#39;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;So can you submit a patch?&lt;br&gt;&lt;br&gt;&amp;nbsp;Shai&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---Maintainers-f1900.html&quot; embed=&quot;fixTarget[1900]&quot; target=&quot;_top&quot; &gt;Octave - Maintainers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Behavior-of-%27mkdir%27-tp18587943p18636295.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18636044</id>
	<title>Re: Starting m-file from command line/shortcut in Windows</title>
	<published>2008-07-24T09:50:54Z</published>
	<updated>2008-07-24T09:50:54Z</updated>
	<author>
		<name>gOS</name>
	</author>
	<content type="html">Why not add the m-file to your .octaverc file? Or even at startup of octave ask if you wish to run the m file and then do it?
&lt;br&gt;&lt;br&gt;if(isequal(input('run mfile?','s'),'y')), mfile, end;
&lt;br&gt;&lt;br&gt;Or you could make an app generate a new .octaverc, copy the original to a safe place, and then after octave terminates reinstate the original .octaverc. Probably could do it with a bat file or some other script.
&lt;br&gt;&lt;br&gt;Bat file would look something like:
&lt;br&gt;&lt;br&gt;# copy original .octaverc to some other directory or rename to .octaverc.bak
&lt;br&gt;# create new .octaverc
&lt;br&gt;# C:/...pathtooctave.../octave/bin/octave
&lt;br&gt;# replace .octaverc
&lt;br&gt;&lt;br&gt;.octaverc would look something like:
&lt;br&gt;&lt;br&gt;more('off')
&lt;br&gt;mFileToRun(inputs)
&lt;br&gt;exit&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Starting-m-file-from-command-line-shortcut-in-Windows-tp18635402p18636044.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18636032</id>
	<title>Re: Matlab compliance</title>
	<published>2008-07-24T09:46:23Z</published>
	<updated>2008-07-24T09:46:23Z</updated>
	<author>
		<name>John W. Eaton</name>
	</author>
	<content type="html">On 24-Jul-2008, Michael D. Godfrey wrote:
&lt;br&gt;&lt;br&gt;| &amp;gt;
&lt;br&gt;| &amp;gt; We used to have built-in variables that controlled things like that,
&lt;br&gt;| &amp;gt; but it was the wrong thing to do for various reasons.
&lt;br&gt;| This seems still true now.
&lt;br&gt;&lt;br&gt;It is true for variables the control the behavior at run-time only,
&lt;br&gt;but if we introduced a directive that takes effect when a file is
&lt;br&gt;parsed, and that is limited to the scope of the file or enclosing
&lt;br&gt;function, then I think we could avoid most (or all) of the problems.
&lt;br&gt;To be sure probably requires a little more thought and some discussion
&lt;br&gt;about the design, but I think it is possible. &amp;nbsp;Still, someone has to
&lt;br&gt;do the work to implement, and at the moment I don't have the time or
&lt;br&gt;interest to do it myself.
&lt;br&gt;&lt;br&gt;jwe
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---Maintainers-f1900.html&quot; embed=&quot;fixTarget[1900]&quot; target=&quot;_top&quot; &gt;Octave - Maintainers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Matlab-compliance-tp18625316p18636032.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18635652</id>
	<title>Re: Behavior of 'mkdir'</title>
	<published>2008-07-24T09:31:54Z</published>
	<updated>2008-07-24T09:31:54Z</updated>
	<author>
		<name>WMennerich</name>
	</author>
	<content type="html">First:
&lt;br&gt;&lt;br&gt;This (simple) solution should work in both environments:
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;[ack msg]=mkdir('testDirectory')
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;if ~ack
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;if strcmp(msg,'File exists')
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;% 'Wrong alert' &amp;nbsp;by octave, --&amp;gt;do nothing
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;% some other thing is wrong, e.g. throw an errror here.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;end
&lt;br&gt;&amp;gt;end
&lt;br&gt;&lt;br&gt;But another thing which could increase the Octave/Matlab compatiblility:
&lt;br&gt;&lt;br&gt;The message string of the mkdir-function differs in the discussed case:
&lt;br&gt;&lt;br&gt;Matlab wrotes: 'Directory already exists.' (also with the point at the end)
&lt;br&gt;&lt;br&gt;Octave wrotes: 'File exists'
&lt;br&gt;&lt;br&gt;&lt;br&gt;I would suggest to fit the message string given back by the octave mkdir to
&lt;br&gt;the output which comes from matlab to make strcmp-constructs more compatible
&lt;br&gt;between Matlab and Octave. Also because 'File exists' may be
&lt;br&gt;misleading: Sure, in UnixU/Linux everything is a 'file', also directories. But since
&lt;br&gt;the name of this function is 'mkdir' and not 'mkfile' or something else, the
&lt;br&gt;message should have a relation to 'directory'.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Second:
&lt;br&gt;&lt;br&gt;Yes, you may be right, one can not conclude that programmers using 'mkdir' have
&lt;br&gt;more background than others: This conclusion came from my own experience: With my first matlab programms, I was happy that it runs somehow, but I was far away from playing
&lt;br&gt;with directories and stuff like that, e.g user inputs, loading and writing data, ....
&lt;br&gt;;-)
&lt;br&gt;&lt;br&gt;Wolfgang&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---Maintainers-f1900.html&quot; embed=&quot;fixTarget[1900]&quot; target=&quot;_top&quot; &gt;Octave - Maintainers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Behavior-of-%27mkdir%27-tp18587943p18635652.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18639219</id>
	<title>ps files read under octave</title>
	<published>2008-07-24T09:09:19Z</published>
	<updated>2008-07-24T09:09:19Z</updated>
	<author>
		<name>Cecile Limborg</name>
	</author>
	<content type="html">Hello -
&lt;br&gt;&lt;br&gt;Congratulations for all the tools developed so far.
&lt;br&gt;I can now use Octave for most of my data processing.
&lt;br&gt;&lt;br&gt;I have a question related to loading image files.
&lt;br&gt;I converted a gif file into ps, since I believed that octave could load 
&lt;br&gt;it . My ps file is correctly written, and reads well under ghostview. &amp;nbsp;
&lt;br&gt;However it does not read with octave either with loadimage or image_viewer.
&lt;br&gt;&lt;br&gt;Do you have any recommendation ?
&lt;br&gt;&lt;br&gt;Thank you
&lt;br&gt;Cecile,
&lt;br&gt;Accelerator Physicist
&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18639219&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ps-files-read-under-octave-tp18639219p18639219.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18635402</id>
	<title>Starting m-file from command line/shortcut in Windows</title>
	<published>2008-07-24T09:05:50Z</published>
	<updated>2008-07-24T09:05:50Z</updated>
	<author>
		<name>Allen.Windhorn-2</name>
	</author>
	<content type="html">Hello all,
&lt;br&gt;&lt;br&gt;I have Octave 3.0.0 on Windows XP. &amp;nbsp;I would like to start an Octave
&lt;br&gt;m-file from the command line and also from a desktop shortcut, have it
&lt;br&gt;run until the user is done, then automatically close Octave (the last
&lt;br&gt;part is optional).
&lt;br&gt;&lt;br&gt;I used the following command from a command shell:
&lt;br&gt;&lt;br&gt;H:\&amp;gt;&amp;quot;c:\Program Files\Octave\bin\octave-3.0.0&amp;quot; -q -persist
&lt;br&gt;&amp;quot;h:/work/matlab/unbal.m&amp;quot;
&lt;br&gt;&lt;br&gt;Octave starts and brings up the program but dies:
&lt;br&gt;--------
&lt;br&gt;&amp;nbsp;- Use `pkg list' to see a list of installed packages.
&lt;br&gt;&amp;nbsp;- SciTE editor installed. Use `edit' to start the editor.
&lt;br&gt;&amp;nbsp;- MSYS shell available (c:\Program Files\Octave\msys).
&lt;br&gt;&amp;nbsp;- Graphics backend: jhandles.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CALCULATE VOLTAGE UNBALANCE
&lt;br&gt;&lt;br&gt;Enter phase currents. &amp;nbsp;Note: all currents must be &amp;gt; 0 for case 3
&lt;br&gt;Enter A phase current p.u. &amp;lt;0&amp;gt;: panic: Segmentation violation --
&lt;br&gt;stopping myself...
&lt;br&gt;attempting to save variables to `octave-core'...
&lt;br&gt;save to `octave-core' complete
&lt;br&gt;---------
&lt;br&gt;&lt;br&gt;When I use the same command in a shortcut I either get a blank screen or
&lt;br&gt;Octave starts and hangs without giving me a prompt. &amp;nbsp;Without the options
&lt;br&gt;the result is the same.
&lt;br&gt;&lt;br&gt;Is this a bug, or am I doing something wrong? &amp;nbsp;Do I need a different
&lt;br&gt;input method in batch mode?
&lt;br&gt;&lt;br&gt;Following is a bit of the m-file code:
&lt;br&gt;&lt;br&gt;---------
&lt;br&gt;%unbal -- Calculate voltage unbalance given winding currents
&lt;br&gt;% Using assumptions about distribution of currents, and given three
&lt;br&gt;% winding currents, power factor, and reactances, calculate phase
&lt;br&gt;% voltages and voltage unbalance.
&lt;br&gt;%
&lt;br&gt;% Assumptions differ by case:
&lt;br&gt;%
&lt;br&gt;% 1. Input currents as phasors (power factor ignored)
&lt;br&gt;%
&lt;br&gt;% 2. Assume all currents spaced at 120 degrees, line to neutral
&lt;br&gt;%
&lt;br&gt;% 3. Assume no zero sequence current
&lt;br&gt;%
&lt;br&gt;% Allen Windhorn, 24 May 2000
&lt;br&gt;%
&lt;br&gt;% Initialize things:
&lt;br&gt;%
&lt;br&gt;format short g; %Display results to more precision
&lt;br&gt;clear all
&lt;br&gt;%
&lt;br&gt;a = -0.5+j*(sqrt(3)/2);
&lt;br&gt;r2d = 180/pi;
&lt;br&gt;TRUE = (1==1);
&lt;br&gt;FALSE = (1==2);
&lt;br&gt;%
&lt;br&gt;% Print header
&lt;br&gt;%
&lt;br&gt;disp(' ');
&lt;br&gt;disp(' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CALCULATE VOLTAGE UNBALANCE');
&lt;br&gt;disp(' ')
&lt;br&gt;disp('Enter phase currents. &amp;nbsp;Note: all currents must be &amp;gt; 0 for case
&lt;br&gt;3');
&lt;br&gt;%
&lt;br&gt;% Get values of phase currents, power factor, reactances
&lt;br&gt;% Perform error checking to make sure values entered
&lt;br&gt;%
&lt;br&gt;Ia = input('Enter A phase current p.u. &amp;lt;0&amp;gt;: ');
&lt;br&gt;if isempty(Ia)
&lt;br&gt;&amp;nbsp; Ia = 0;
&lt;br&gt;end
&lt;br&gt;%
&lt;br&gt;Ib = input('Enter B phase current p.u. &amp;lt;0&amp;gt;: ');
&lt;br&gt;if isempty(Ib)
&lt;br&gt;&amp;nbsp; Ib = 0;
&lt;br&gt;-----------
&lt;br&gt;&lt;br&gt;Thanks in advance for any advice.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Allen
&lt;br&gt;-- 
&lt;br&gt;Allen Windhorn, P.E. (MN) &amp;nbsp;(507) 345-2782
&lt;br&gt;Kato Engineering
&lt;br&gt;P.O. Box 8447, N. Mankato, MN &amp;nbsp;56002
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18635402&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Allen.Windhorn@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18635402&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Starting-m-file-from-command-line-shortcut-in-Windows-tp18635402p18635402.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18639086</id>
	<title>siso_ldpc_fast_mex.mex is not a valid shared library!</title>
	<published>2008-07-24T09:03:48Z</published>
	<updated>2008-07-24T09:03:48Z</updated>
	<author>
		<name>Honore Tapamo</name>
	</author>
	<content type="html">&lt;br&gt;Dear Octave users/developers,
&lt;br&gt;&lt;br&gt;I am getting the following error when calling a mex function within octave
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;....siso_ldpc_fast_mex.mex is not a valid shared library&amp;quot;.
&lt;br&gt;&lt;br&gt;please could someone tell me what the problem here is. Is it an issue with
&lt;br&gt;static/shared libraries.
&lt;br&gt;&lt;br&gt;For information, I used static libraries to build octave.
&lt;br&gt;&lt;br&gt;Thank you very much for your help.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Honore.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18639086&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/siso_ldpc_fast_mex.mex-is-not-a-valid-shared-library%21-tp18639086p18639086.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18634994</id>
	<title>gnuplot zoom</title>
	<published>2008-07-24T08:59:25Z</published>
	<updated>2008-07-24T08:59:25Z</updated>
	<author>
		<name>gOS</name>
	</author>
	<content type="html">I'd like to use a version of gnuplot for which the zoom functionality is present. I see that it may be possible after looking through the threads on this site, though there appeared to be some compiling involved with gcc.
&lt;br&gt;&lt;br&gt;I attempted this but plotting revealed the gnuplot terminal instead of a plot. I probably made a mistake somewhere.
&lt;br&gt;&lt;br&gt;I tried this version of gnuplot, extracted: gp423win32.zip
&lt;br&gt;And I used gnuplot_binary to set the path the pgnuplot.exe
&lt;br&gt;&lt;br&gt;Anyhow, I'm using the 3.0.1 (vs 2005) version of Octave for windows located here: &lt;a href=&quot;http://sourceforge.net/project/showfiles.php?group_id=2888&amp;package_id=40078&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/project/showfiles.php?group_id=2888&amp;package_id=40078&lt;/a&gt;&lt;br&gt;&lt;br&gt;Jhandles is of course an option for zooming, but on one machine Octave would crash (Java was updated past 1.5.0). Another problem with Jhandles is that the title portion would not allow for more than 4 lines of text, and the default for most plots that I make is 5 lines (due to versioning information). There were other factors that went into deciding not to use Jhandles for the moment, but I've since forgotten most of them. I just remember we were going to try it out again when a new version was released.
&lt;br&gt;&lt;br&gt;Anyway, as I said, I'd like to use the latest version of gnuplot with Octave on Windows. Where do I go from here?&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/gnuplot-zoom-tp18634994p18634994.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18634946</id>
	<title>Re: do exp(-0.5*z.*z) in .oct file?</title>
	<published>2008-07-24T08:56:10Z</published>
	<updated>2008-07-24T08:56:10Z</updated>
	<author>
		<name>Michael Creel</name>
	</author>
	<content type="html">&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Michael Creel wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hello all,
&lt;br&gt;I'm trying to write the C++ code for an .oct that will perform the
&lt;br&gt;equivalent of &amp;nbsp;exp(-0.5*z.*z), where z is a vector or matrix. I think
&lt;br&gt;that Matrix.map will let me do the exp() to all elements, but I can't
&lt;br&gt;figure out how to do the element-by-element squaring.
&lt;br&gt;Thanks, Michael
&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;Help-octave@octave.org
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
found it: product(z,z) does the trick. M&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/do-exp%28-0.5*z.*z%29-in-.oct-file--tp18632345p18634946.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18633282</id>
	<title>Re: Behavior of 'mkdir'</title>
	<published>2008-07-24T07:34:31Z</published>
	<updated>2008-07-24T07:34:31Z</updated>
	<author>
		<name>John W. Eaton</name>
	</author>
	<content type="html">On 24-Jul-2008, WMennerich wrote:
&lt;br&gt;&lt;br&gt;| I already found a way to implement my code for working fine with both,
&lt;br&gt;| Matlab and Octave.
&lt;br&gt;&lt;br&gt;How? &amp;nbsp;What is your solution?
&lt;br&gt;&lt;br&gt;| The more I thing about it, the more I find that octave does
&lt;br&gt;| it in the best way now.
&lt;br&gt;&lt;br&gt;Not if what you want is for Matlab code to work without change in
&lt;br&gt;Octave.
&lt;br&gt;&lt;br&gt;| Even if it makes trouble to run matlab written code with octave,
&lt;br&gt;| the people which use the 'mkdir' command normally are not new
&lt;br&gt;| to Matlab/Ocatave and may have enough background to come clear with
&lt;br&gt;| these differences.
&lt;br&gt;&lt;br&gt;I don't think this conclusion is justified. &amp;nbsp;How do you know who is
&lt;br&gt;using the mkdir function or what their level of expertise is?
&lt;br&gt;&lt;br&gt;jwe
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---Maintainers-f1900.html&quot; embed=&quot;fixTarget[1900]&quot; target=&quot;_top&quot; &gt;Octave - Maintainers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Behavior-of-%27mkdir%27-tp18587943p18633282.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18635908</id>
	<title>Re: Matlab compliance</title>
	<published>2008-07-24T07:33:13Z</published>
	<updated>2008-07-24T07:33:13Z</updated>
	<author>
		<name>Michael D. Godfrey</name>
	</author>
	<content type="html">&amp;gt;
&lt;br&gt;&amp;gt; We used to have built-in variables that controlled things like that,
&lt;br&gt;&amp;gt; but it was the wrong thing to do for various reasons.
&lt;br&gt;This seems still true now.
&lt;br&gt;&lt;br&gt;Thanks for your reply.
&lt;br&gt;&lt;br&gt;Michael
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---Maintainers-f1900.html&quot; embed=&quot;fixTarget[1900]&quot; target=&quot;_top&quot; &gt;Octave - Maintainers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Matlab-compliance-tp18625316p18635908.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18633001</id>
	<title>Bug: det() gives false zero</title>
	<published>2008-07-24T07:15:40Z</published>
	<updated>2008-07-24T07:15:40Z</updated>
	<author>
		<name>Charlie Dyson</name>
	</author>
	<content type="html">I've been using octave to try to find zeros of the determinants of
&lt;br&gt;various matrices depending upon some parameter, but have found that
&lt;br&gt;when the entries in such matrices have wildly different magnitudes
&lt;br&gt;det() may claim that the matrix is singular when it is not. Using
&lt;br&gt;Octave 3.0.1 running on XP.
&lt;br&gt;&lt;br&gt;Unfortunately I'll be going on holiday in a few hours so probably
&lt;br&gt;won't be able to get back to you for a week or so.
&lt;br&gt;&lt;br&gt;Here's some code that reproduces the problem, along with a workaround
&lt;br&gt;I've been using to cope with it.
&lt;br&gt;&lt;br&gt;Incidentally, I couldn't see any email address at
&lt;br&gt;&lt;a href=&quot;http://www.gnu.org/software/octave/bugs.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gnu.org/software/octave/bugs.html&lt;/a&gt;, though I was able to
&lt;br&gt;find one in the pdf manual.
&lt;br&gt;&lt;br&gt;Many thanks,
&lt;br&gt;&lt;br&gt;Charlie Dyson
&lt;br&gt;&lt;br&gt;-- CUT --
&lt;br&gt;D = [ -1.001254707117086 0.00125470711708553 1 0 0 0
&lt;br&gt;&amp;nbsp;0.00125470711708553 -1.001254707117086 0 1 0 0
&lt;br&gt;&amp;nbsp;0 0 -1.050021149616144 -280214911531872 1 0
&lt;br&gt;&amp;nbsp;0 0 -5.590061183230268e-021 -0.9499793732213449 0 1
&lt;br&gt;&amp;nbsp;1 0 0 0 0 0
&lt;br&gt;&amp;nbsp;0 0 0 0 0 1 ];
&lt;br&gt;&lt;br&gt;disp(&amp;quot;Compute determinant with det function:&amp;quot;)
&lt;br&gt;disp( det(D) );
&lt;br&gt;disp(&amp;quot;Should not have been zero!&amp;quot;);
&lt;br&gt;disp( &amp;quot;&amp;quot; );
&lt;br&gt;&lt;br&gt;disp(&amp;quot;Now try LU decomposition&amp;quot;);
&lt;br&gt;[l,u,p] = lu( D );
&lt;br&gt;disp(&amp;quot;Should all be non-zero:&amp;quot;);
&lt;br&gt;disp( det(l) );
&lt;br&gt;disp( det(u) );
&lt;br&gt;disp( det(p) );
&lt;br&gt;disp(&amp;quot;Again we have a false zero&amp;quot;);
&lt;br&gt;disp(&amp;quot;&amp;quot;);
&lt;br&gt;&lt;br&gt;disp(&amp;quot;Now compute det of L, U by product of diagonal&amp;quot;);
&lt;br&gt;detL = 1;
&lt;br&gt;for n = 1:rows(D)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; detL = detL*l(n,n);
&lt;br&gt;endfor
&lt;br&gt;detU = 1;
&lt;br&gt;for n = 1:rows(D)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; detU = detU*u(n,n);
&lt;br&gt;endfor
&lt;br&gt;disp(&amp;quot;Det of l,u,p given by:&amp;quot;);
&lt;br&gt;disp( detL );
&lt;br&gt;disp( detU );
&lt;br&gt;disp( det(p) );
&lt;br&gt;&lt;br&gt;disp(&amp;quot;Correct value of determinant is:&amp;quot;);
&lt;br&gt;disp( detL*detU*det(p) )
&lt;br&gt;_______________________________________________
&lt;br&gt;Bug-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18633001&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bug-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/bug-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/bug-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---Bugs-f1896.html&quot; embed=&quot;fixTarget[1896]&quot; target=&quot;_top&quot; &gt;Octave - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Bug%3A-det%28%29-gives-false-zero-tp18633001p18633001.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18632273</id>
	<title>Re: Behavior of 'mkdir'</title>
	<published>2008-07-24T06:46:36Z</published>
	<updated>2008-07-24T06:46:36Z</updated>
	<author>
		<name>WMennerich</name>
	</author>
	<content type="html">&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Jaroslav Hajek-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Wolfgang, do you want to fix this yourself?
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
I already found a way to implement my code for working fine with both,
&lt;br&gt;Matlab and Octave. So, there is no need for me to change this.
&lt;br&gt;The more I thing about it, the more I find that octave does
&lt;br&gt;it in the best way now.
&lt;br&gt;Even if it makes trouble to run matlab written code with octave,
&lt;br&gt;the people which use the 'mkdir' command normally are not new
&lt;br&gt;to Matlab/Ocatave and may have enough background to come clear with
&lt;br&gt;these differences.
&lt;br&gt;&lt;br&gt;Best, Wolfgang&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---Maintainers-f1900.html&quot; embed=&quot;fixTarget[1900]&quot; target=&quot;_top&quot; &gt;Octave - Maintainers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Behavior-of-%27mkdir%27-tp18587943p18632273.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18632761</id>
	<title>Re: Octave C++ performance benchmarks?</title>
	<published>2008-07-24T06:46:23Z</published>
	<updated>2008-07-24T06:46:23Z</updated>
	<author>
		<name>John W. Eaton</name>
	</author>
	<content type="html">On 22-Jul-2008, Kyusik Chung wrote:
&lt;br&gt;&lt;br&gt;| Sorry for not being more precise. &amp;nbsp;Its not code we are going to &amp;nbsp;
&lt;br&gt;| distribute. &amp;nbsp;Its back end code that will crunch some data we will put &amp;nbsp;
&lt;br&gt;| on our website, which will be free for consumers to use. &amp;nbsp;I was using &amp;nbsp;
&lt;br&gt;| the term &amp;quot;application&amp;quot; in a very broad sense. &amp;nbsp;Does that qualify?
&lt;br&gt;&lt;br&gt;Qualify in what sense? &amp;nbsp;It does not make the software free for others
&lt;br&gt;to use. &amp;nbsp;We are sharing Octave with you but you are not sharing your
&lt;br&gt;work with our community. &amp;nbsp;Why should we go out of our way to help you?
&lt;br&gt;&lt;br&gt;jwe
&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18632761&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Octave-C%2B%2B-performance-benchmarks--tp18581180p18632761.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18632481</id>
	<title>Re: datestr bug</title>
	<published>2008-07-24T06:24:32Z</published>
	<updated>2008-07-24T06:24:32Z</updated>
	<author>
		<name>John W. Eaton</name>
	</author>
	<content type="html">On 23-Jul-2008, Ben Abbott wrote:
&lt;br&gt;&lt;br&gt;| Another possible solution (hack) is to replace the offending line with
&lt;br&gt;| 
&lt;br&gt;| &amp;nbsp;nd &amp;nbsp;= strfind (str, &amp;quot;d&amp;quot;);
&lt;br&gt;| &amp;nbsp;nd &amp;nbsp;= setdiff (nd, strfind (str,&amp;quot;day&amp;quot;));
&lt;br&gt;| &amp;nbsp;nd &amp;nbsp;= setdiff (nd, strfind (str,&amp;quot;dnesday&amp;quot;));
&lt;br&gt;| &amp;nbsp;str(nd) = names_d{weekday (datenum (v(i,1), v(i,2), v(i,3)))};
&lt;br&gt;&lt;br&gt;I'm not applying this change because I think we should be able to come
&lt;br&gt;up with a proper solution that is not just a band-aid kluge fix.
&lt;br&gt;&lt;br&gt;| In either event, an additional test should be added.
&lt;br&gt;| 
&lt;br&gt;| %!assert(datestr(testtime+[0 0 3 0 0 0],&amp;quot;dddd&amp;quot;),&amp;quot;Wednesday&amp;quot;)
&lt;br&gt;| 
&lt;br&gt;| Comments?
&lt;br&gt;&lt;br&gt;I added this as an &amp;quot;xtest&amp;quot; that is expected to fail.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;jwe
&lt;br&gt;_______________________________________________
&lt;br&gt;Bug-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18632481&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bug-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/bug-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/bug-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---Bugs-f1896.html&quot; embed=&quot;fixTarget[1896]&quot; target=&quot;_top&quot; &gt;Octave - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/datestr-bug-tp18621317p18632481.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18632462</id>
	<title>Matlab compliance</title>
	<published>2008-07-24T06:13:40Z</published>
	<updated>2008-07-24T06:13:40Z</updated>
	<author>
		<name>John W. Eaton</name>
	</author>
	<content type="html">On 23-Jul-2008, Michael D. Godfrey wrote:
&lt;br&gt;&lt;br&gt;| Have you thought about a &amp;quot;Matlab_mode&amp;quot; setting
&lt;br&gt;| so that users could run in Matlab compliant mode or
&lt;br&gt;| a mode that is accepted as better practice? &amp;nbsp;This could
&lt;br&gt;| be a vector of settings to allow &amp;quot;picking and choosing.&amp;quot;
&lt;br&gt;| 
&lt;br&gt;| You may have already decided about this. But, since
&lt;br&gt;| I have not seen it mentioned, I am mentioning it now
&lt;br&gt;| in the hope that it will get some review and a decision.
&lt;br&gt;&lt;br&gt;We used to have built-in variables that controlled things like that,
&lt;br&gt;but it was the wrong thing to do for various reasons. &amp;nbsp;Two of the
&lt;br&gt;biggest problems were that they could only affect behavior at
&lt;br&gt;run-time, not when the function was parsed, and they were global
&lt;br&gt;settings.
&lt;br&gt;&lt;br&gt;It might be possible to have parse-time directives to do similar
&lt;br&gt;things, provided that the directive only applies to the current
&lt;br&gt;function (or perhaps file) scope. &amp;nbsp;It might be worth doing this, but I
&lt;br&gt;don't have the time at the moment to work on it.
&lt;br&gt;&lt;br&gt;jwe
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---Maintainers-f1900.html&quot; embed=&quot;fixTarget[1900]&quot; target=&quot;_top&quot; &gt;Octave - Maintainers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Matlab-compliance-tp18625316p18632462.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18632392</id>
	<title>Re: Octave 3.1.51 available for ftp</title>
	<published>2008-07-24T06:04:10Z</published>
	<updated>2008-07-24T06:04:10Z</updated>
	<author>
		<name>John W. Eaton</name>
	</author>
	<content type="html">On 23-Jul-2008, Thomas Treichl wrote:
&lt;br&gt;&lt;br&gt;| There is one thing that I still don't understand when I compile the sources and 
&lt;br&gt;| maybe someone can give me a hand here: If I try to link liboctave then I get the 
&lt;br&gt;| following error (I know this since building 2.9.12 but I always thought that 
&lt;br&gt;| this may be a special problem of my machine?!):
&lt;br&gt;| 
&lt;br&gt;| &amp;nbsp; &amp;nbsp;ld: Undefined symbols:
&lt;br&gt;| &amp;nbsp; &amp;nbsp;_fftw_destroy_plan referenced from liboctave expected to be defined in
&lt;br&gt;| &amp;nbsp; &amp;nbsp;/tmp/dependencies-i386/lib/libfftw3.3.dylib
&lt;br&gt;| &amp;nbsp; &amp;nbsp;_fftw_execute_dft referenced from liboctave expected to be defined in
&lt;br&gt;| &amp;nbsp; &amp;nbsp;/tmp/dependencies-i386/lib/libfftw3.3.dylib
&lt;br&gt;| &amp;nbsp; &amp;nbsp;_fftw_execute_dft_r2c referenced from liboctave expected to be defined in
&lt;br&gt;| &amp;nbsp; &amp;nbsp;/tmp/dependencies-i386/lib/libfftw3.3.dylib
&lt;br&gt;| &amp;nbsp; &amp;nbsp;_fftw_import_system_wisdom referenced from liboctave expected to be defined in
&lt;br&gt;| &amp;nbsp; &amp;nbsp;/tmp/dependencies-i386/lib/libfftw3.3.dylib
&lt;br&gt;| &amp;nbsp; &amp;nbsp;_fftw_plan_many_dft referenced from liboctave expected to be defined in
&lt;br&gt;| &amp;nbsp; &amp;nbsp;/tmp/dependencies-i386/lib/libfftw3.3.dylib
&lt;br&gt;| &amp;nbsp; &amp;nbsp;_fftw_plan_many_dft_r2c referenced from liboctave expected to be defined in
&lt;br&gt;| &amp;nbsp; &amp;nbsp;/tmp/dependencies-i386/lib/libfftw3.3.dylib
&lt;br&gt;| &amp;nbsp; &amp;nbsp;_fftwf_destroy_plan referenced from liboctave expected to be defined in
&lt;br&gt;| &amp;nbsp; &amp;nbsp;/tmp/dependencies-i386/lib/libfftw3f.3.dylib
&lt;br&gt;| &amp;nbsp; &amp;nbsp;_fftwf_execute_dft referenced from liboctave expected to be defined in
&lt;br&gt;| &amp;nbsp; &amp;nbsp;/tmp/dependencies-i386/lib/libfftw3f.3.dylib
&lt;br&gt;| &amp;nbsp; &amp;nbsp;_fftwf_execute_dft_r2c referenced from liboctave expected to be defined in
&lt;br&gt;| &amp;nbsp; &amp;nbsp;/tmp/dependencies-i386/lib/libfftw3f.3.dylib
&lt;br&gt;| &amp;nbsp; &amp;nbsp;_fftwf_import_system_wisdom referenced from liboctave expected to be defined in
&lt;br&gt;| &amp;nbsp; &amp;nbsp;/tmp/dependencies-i386/lib/libfftw3f.3.dylib
&lt;br&gt;| &amp;nbsp; &amp;nbsp;_fftwf_plan_many_dft referenced from liboctave expected to be defined in
&lt;br&gt;| &amp;nbsp; &amp;nbsp;/tmp/dependencies-i386/lib/libfftw3f.3.dylib
&lt;br&gt;| &amp;nbsp; &amp;nbsp;_fftwf_plan_many_dft_r2c referenced from liboctave expected to be defined in
&lt;br&gt;| &amp;nbsp; &amp;nbsp;/tmp/dependencies-i386/lib/libfftw3f.3.dylib
&lt;br&gt;| &amp;nbsp; &amp;nbsp;/usr/bin/libtool: internal link edit command failed
&lt;br&gt;| &amp;nbsp; &amp;nbsp;make[2]: *** [liboctinterp.dylib] Error 1
&lt;br&gt;| &amp;nbsp; &amp;nbsp;make[1]: *** [src] Error 2
&lt;br&gt;| &amp;nbsp; &amp;nbsp;make: *** [all] Error 2
&lt;br&gt;| &amp;nbsp; &amp;nbsp;solvedeps-3.1.51.sh: Building Octave.app has failed !!
&lt;br&gt;| 
&lt;br&gt;| My workaround for this is to apply a patch of the following form:
&lt;br&gt;| 
&lt;br&gt;| &amp;nbsp; &amp;nbsp;--- octave-3.1.51.orig/src/Makefile.in
&lt;br&gt;| &amp;nbsp; &amp;nbsp;+++ octave-3.1.51/src/Makefile.in
&lt;br&gt;| 
&lt;br&gt;| &amp;nbsp; &amp;nbsp; OCTINTERP_LINK_DEPS = \
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; -L../liboctave $(LIBOCTAVE) -L../libcruft $(LIBCRUFT) $(LIBS) $(FLIBS) \
&lt;br&gt;| &amp;nbsp; &amp;nbsp;- &amp;nbsp;$(OPENGL_LIBS)
&lt;br&gt;| &amp;nbsp; &amp;nbsp;+ &amp;nbsp;$(OPENGL_LIBS) $(FFTW_LIBS)
&lt;br&gt;| 
&lt;br&gt;| &amp;nbsp; &amp;nbsp; OCT_LINK_DEPS = \
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; -L../libcruft $(LIBCRUFT) -L../liboctave $(LIBOCTAVE) \
&lt;br&gt;| 
&lt;br&gt;| then I can link liboctave.dylib without any problems left. Any ideas what may 
&lt;br&gt;| cause the above problem?
&lt;br&gt;&lt;br&gt;As far as I can tell, fftw functions are only referenced directly in
&lt;br&gt;liboctave, so I don't see why you should need to also link the fftw
&lt;br&gt;library directly with liboctinterp. &amp;nbsp;If this is needed for fftw, why
&lt;br&gt;is it not also needed for the suitesparse libraries?
&lt;br&gt;&lt;br&gt;jwe
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---Maintainers-f1900.html&quot; embed=&quot;fixTarget[1900]&quot; target=&quot;_top&quot; &gt;Octave - Maintainers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Octave-3.1.51-available-for-ftp-tp18592427p18632392.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18632345</id>
	<title>do exp(-0.5*z.*z) in .oct file?</title>
	<published>2008-07-24T06:01:54Z</published>
	<updated>2008-07-24T06:01:54Z</updated>
	<author>
		<name>Michael Creel</name>
	</author>
	<content type="html">Hello all,
&lt;br&gt;I'm trying to write the C++ code for an .oct that will perform the
&lt;br&gt;equivalent of &amp;nbsp;exp(-0.5*z.*z), where z is a vector or matrix. I think
&lt;br&gt;that Matrix.map will let me do the exp() to all elements, but I can't
&lt;br&gt;figure out how to do the element-by-element squaring.
&lt;br&gt;Thanks, Michael
&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18632345&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/do-exp%28-0.5*z.*z%29-in-.oct-file--tp18632345p18632345.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18632145</id>
	<title>Re: make error about log2 for octave-3.1.51 (Not 3.1.50)</title>
	<published>2008-07-24T05:59:59Z</published>
	<updated>2008-07-24T05:59:59Z</updated>
	<author>
		<name>Jaroslav Hajek-2</name>
	</author>
	<content type="html">On Thu, Jul 24, 2008 at 11:54 AM, Tatsuro MATSUOKA
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18632145&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tmacchant@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello Jaroslav
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you for your reply
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This looks really weird given that there is no / token on the line. I
&lt;br&gt;&amp;gt;&amp;gt; suspect that
&lt;br&gt;&amp;gt;&amp;gt; you have log2 defined to some macro and that causes problems.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I do not define log2 myself. &amp;nbsp;Perhaps gcc on cygwin defines it.
&lt;br&gt;&amp;gt; Since octave 3.0.1, the log2 fuction has no problem at building.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Yes, that's what I meant. I didn't mean to accuse you of causing the mess :)
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Can you try running:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; /opt/octave/gcc-3.4.4dw2/bin/g++ -E -C
&lt;br&gt;&amp;gt;&amp;gt; -I/opt/octave/gcc-3.4.4dw2/include -I/usr/include
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;-I/opt/octave/octave-3.1.51/include &amp;nbsp;-I. -I.. -I../liboctave -I../src
&lt;br&gt;&amp;gt;&amp;gt; -I../libcruft/misc
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;-DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wold-style-cast -g -O2 Cell.cc
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; in the directory where the make failure occured and posting the output?
&lt;br&gt;&amp;gt; I will show the results of which the log2 related.
&lt;/div&gt;&lt;br&gt;Sorry, but this tells me nothing new. I wanted to see the lines that
&lt;br&gt;correspond to the
&lt;br&gt;log2 methods definitions in ov.h and ov-base.h. They will have
&lt;br&gt;different line numbers in this output - that's why I wanted the whole
&lt;br&gt;output. If you don't want to clutter the ML with large dumps, please
&lt;br&gt;use an attachment or some service like pastebin.
&lt;br&gt;I suspect that some macro like
&lt;br&gt;&lt;br&gt;#define log2(x) (log(x)/log(2))
&lt;br&gt;&lt;br&gt;or similar interferes with the definition
&lt;br&gt;&lt;br&gt;virtual octave_value log2 (void) const;
&lt;br&gt;&lt;br&gt;turning it into a nonsense. As John says, it will probably be
&lt;br&gt;necessary to add #undef log2 to some proper place. Anyway, he is right
&lt;br&gt;- please report this to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18632145&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bug@...&lt;/a&gt;, as this list is not dedicated
&lt;br&gt;to bug fixing.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 493: /* Define to 1 if you have the `log2' function. */
&lt;br&gt;&amp;gt; 494: /* #undef HAVE_LOG2 */
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The below lines perhaps are not related but I will show them as a reference
&lt;br&gt;&amp;gt; 47686: extern double xlog2 (double x);
&lt;br&gt;&amp;gt; 47687: extern Complex xlog2 (const Complex&amp; x);
&lt;br&gt;&amp;gt; 47688: extern double xlog2 (double x, int&amp; exp);
&lt;br&gt;&amp;gt; 47689: extern Complex xlog2 (const Complex&amp; x, int&amp; exp);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 47740: extern float xlog2 (float x);
&lt;br&gt;&amp;gt; 47741: extern FloatComplex xlog2 (const FloatComplex&amp; x);
&lt;br&gt;&amp;gt; 47742: extern float xlog2 (float x, int&amp; exp);
&lt;br&gt;&amp;gt; 47743: extern FloatComplex xlog2 (const FloatComplex&amp; x, int&amp; exp);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To see the how configure detect log2
&lt;br&gt;&amp;gt; configure:25965: checking for log2
&lt;br&gt;&amp;gt; configure:26029: /opt/octave/gcc-3.4.4dw2/bin/gcc -o conftest.exe -g -O2
&lt;br&gt;&amp;gt; -I/opt/octave/gcc-3.4.4dw2/include -I/usr/include -I/opt/octave/octave-3.1.51/include
&lt;br&gt;&amp;gt; -L/opt/octave/gcc-3.4.4dw2/lib -L/opt/octave/octave-3.1.51/lib conftest.c -ldl -lwsock32 -lblas -lhdf5
&lt;br&gt;&amp;gt; -lz -lm &amp;nbsp;-lwsock32 &amp;gt;&amp;5
&lt;br&gt;&amp;gt; conftest.c:265: warning: conflicting types for built-in function 'log2'
&lt;br&gt;&amp;gt; /cygdrive/c/DOCUME~1/Tatsu/LOCALS~1/Temp/cccEhDNQ.o: In function `main':
&lt;br&gt;&amp;gt; /home/octaves/octave-3.1.51/conftest.c:284: undefined reference to `_log2'
&lt;br&gt;&amp;gt; collect2: ld returned 1 exit status
&lt;br&gt;&amp;gt; configure:26035: $? = 1
&lt;br&gt;&amp;gt; configure: failed program was:
&lt;br&gt;&amp;gt; | /* confdefs.h. &amp;nbsp;*/
&lt;br&gt;&amp;gt; | #define PACKAGE_NAME &amp;quot;&amp;quot;
&lt;br&gt;&amp;gt; | #define PACKAGE_TARNAME &amp;quot;&amp;quot;
&lt;br&gt;&amp;gt; | #define PACKAGE_VERSION &amp;quot;&amp;quot;
&lt;br&gt;&amp;gt; | #define PACKAGE_STRING &amp;quot;&amp;quot;
&lt;br&gt;&amp;gt; | #define PACKAGE_BUGREPORT &amp;quot;&amp;quot;
&lt;br&gt;&amp;gt; | #define OCTAVE_SOURCE 1
&lt;br&gt;&amp;gt; | #define _GNU_SOURCE 1
&lt;br&gt;&amp;gt; | #define STDC_HEADERS 1
&lt;br&gt;&amp;gt; | #define HAVE_SYS_TYPES_H 1
&lt;br&gt;&amp;gt; | #define HAVE_SYS_STAT_H 1
&lt;br&gt;&amp;gt; | #define HAVE_STDLIB_H 1
&lt;br&gt;&amp;gt; | #define HAVE_STRING_H 1
&lt;br&gt;&amp;gt; | #define HAVE_MEMORY_H 1
&lt;br&gt;&amp;gt; | #define HAVE_STRINGS_H 1
&lt;br&gt;&amp;gt; | #define HAVE_INTTYPES_H 1
&lt;br&gt;&amp;gt; | #define HAVE_STDINT_H 1
&lt;br&gt;&amp;gt; | #define HAVE_UNISTD_H 1
&lt;br&gt;&amp;gt; | #define SEPCHAR ':'
&lt;br&gt;&amp;gt; | #define SEPCHAR_STR &amp;quot;:&amp;quot;
&lt;br&gt;&amp;gt; | #define __NO_MATH_INLINES 1
&lt;br&gt;&amp;gt; | #define CXX_NEW_FRIEND_TEMPLATE_DECL 1
&lt;br&gt;&amp;gt; | #define CXX_ISO_COMPLIANT_LIBRARY 1
&lt;br&gt;&amp;gt; | #define CXX_BROKEN_REINTERPRET_CAST 1
&lt;br&gt;&amp;gt; | #define CXX_ABI gnu_v3
&lt;br&gt;&amp;gt; | #define HAVE_LIBM 1
&lt;br&gt;&amp;gt; | #define HAVE_QHULL 1
&lt;br&gt;&amp;gt; | #define HAVE_PCRE 1
&lt;br&gt;&amp;gt; | #define HAVE_REGEXEC 1
&lt;br&gt;&amp;gt; | #define HAVE_REGEX 1
&lt;br&gt;&amp;gt; | #define HAVE_ZLIB_H 1
&lt;br&gt;&amp;gt; | #define HAVE_ZLIB 1
&lt;br&gt;&amp;gt; | #define HAVE_HDF5_H 1
&lt;br&gt;&amp;gt; | #define HAVE_HDF5 1
&lt;br&gt;&amp;gt; | #define HAVE_H5GGET_NUM_OBJS 1
&lt;br&gt;&amp;gt; | #define HAVE_FFTW3 1
&lt;br&gt;&amp;gt; | #define HAVE_GLPK_H 1
&lt;br&gt;&amp;gt; | #define HAVE_GLPK 1
&lt;br&gt;&amp;gt; | #define HAVE_CURL_CURL_H 1
&lt;br&gt;&amp;gt; | #define HAVE_CURL 1
&lt;br&gt;&amp;gt; | #define HAVE_MAGICK 1
&lt;br&gt;&amp;gt; | #define HAVE_GL_GL_H 1
&lt;br&gt;&amp;gt; | #define HAVE_GL_GLU_H 1
&lt;br&gt;&amp;gt; | #define HAVE_OPENGL 1
&lt;br&gt;&amp;gt; | #define HAVE_FLTK 1
&lt;br&gt;&amp;gt; | #define HAVE_IEEE754_DATA_FORMAT 1
&lt;br&gt;&amp;gt; | #define F77_FUNC(name,NAME) name ## _
&lt;br&gt;&amp;gt; | #define F77_FUNC_(name,NAME) name ## __
&lt;br&gt;&amp;gt; | #define HAVE_BLAS 1
&lt;br&gt;&amp;gt; | #define HAVE_SUITESPARSE_AMD_H 1
&lt;br&gt;&amp;gt; | #define HAVE_AMD 1
&lt;br&gt;&amp;gt; | #define HAVE_SUITESPARSE_UMFPACK_H 1
&lt;br&gt;&amp;gt; | #define HAVE_UMFPACK 1
&lt;br&gt;&amp;gt; | #define UMFPACK_SEPARATE_SPLIT 1
&lt;br&gt;&amp;gt; | #define HAVE_SUITESPARSE_COLAMD_H 1
&lt;br&gt;&amp;gt; | #define HAVE_COLAMD 1
&lt;br&gt;&amp;gt; | #define HAVE_SUITESPARSE_CCOLAMD_H 1
&lt;br&gt;&amp;gt; | #define HAVE_CCOLAMD 1
&lt;br&gt;&amp;gt; | #define HAVE_SUITESPARSE_CHOLMOD_H 1
&lt;br&gt;&amp;gt; | #define HAVE_CHOLMOD 1
&lt;br&gt;&amp;gt; | #define HAVE_SUITESPARSE_CS_H 1
&lt;br&gt;&amp;gt; | #define HAVE_CXSPARSE 1
&lt;br&gt;&amp;gt; | #define HAVE_GETHOSTNAME 1
&lt;br&gt;&amp;gt; | #define HAVE_GETPWNAM 1
&lt;br&gt;&amp;gt; | #define HAVE_LIBWSOCK32 1
&lt;br&gt;&amp;gt; | #define HAVE_DEV_T 1
&lt;br&gt;&amp;gt; | #define HAVE_INO_T 1
&lt;br&gt;&amp;gt; | #define HAVE_NLINK_T 1
&lt;br&gt;&amp;gt; | #define HAVE_NLINK_T 1
&lt;br&gt;&amp;gt; | #define HAVE_LONG_LONG_INT 1
&lt;br&gt;&amp;gt; | #define HAVE_UNSIGNED_LONG_LONG_INT 1
&lt;br&gt;&amp;gt; | #define HAVE_SIGSET_T 1
&lt;br&gt;&amp;gt; | #define HAVE_SIG_ATOMIC_T 1
&lt;br&gt;&amp;gt; | #define SIZEOF_SHORT 2
&lt;br&gt;&amp;gt; | #define SIZEOF_INT 4
&lt;br&gt;&amp;gt; | #define SIZEOF_LONG 4
&lt;br&gt;&amp;gt; | #define SIZEOF_LONG_LONG 8
&lt;br&gt;&amp;gt; | #define HAVE_ALLOCA_H 1
&lt;br&gt;&amp;gt; | #define HAVE_ALLOCA 1
&lt;br&gt;&amp;gt; | #define NPOS std::string::npos
&lt;br&gt;&amp;gt; | #define HAVE_PLACEMENT_DELETE 1
&lt;br&gt;&amp;gt; | #define HAVE_DYNAMIC_AUTO_ARRAYS 1
&lt;br&gt;&amp;gt; | #define STDC_HEADERS 1
&lt;br&gt;&amp;gt; | #define HAVE_DIRENT_H 1
&lt;br&gt;&amp;gt; | #define TIME_WITH_SYS_TIME 1
&lt;br&gt;&amp;gt; | #define HAVE_SYS_WAIT_H 1
&lt;br&gt;&amp;gt; | #define HAVE_ASSERT_H 1
&lt;br&gt;&amp;gt; | #define HAVE_CURSES_H 1
&lt;br&gt;&amp;gt; | #define HAVE_DLFCN_H 1
&lt;br&gt;&amp;gt; | #define HAVE_FCNTL_H 1
&lt;br&gt;&amp;gt; | #define HAVE_FLOAT_H 1
&lt;br&gt;&amp;gt; | #define HAVE_GRP_H 1
&lt;br&gt;&amp;gt; | #define HAVE_IEEEFP_H 1
&lt;br&gt;&amp;gt; | #define HAVE_INTTYPES_H 1
&lt;br&gt;&amp;gt; | #define HAVE_LIMITS_H 1
&lt;br&gt;&amp;gt; | #define HAVE_LOCALE_H 1
&lt;br&gt;&amp;gt; | #define HAVE_MEMORY_H 1
&lt;br&gt;&amp;gt; | #define HAVE_NCURSES_H 1
&lt;br&gt;&amp;gt; | #define HAVE_POLL_H 1
&lt;br&gt;&amp;gt; | #define HAVE_PTHREAD_H 1
&lt;br&gt;&amp;gt; | #define HAVE_PWD_H 1
&lt;br&gt;&amp;gt; | #define HAVE_STDINT_H 1
&lt;br&gt;&amp;gt; | #define HAVE_STDLIB_H 1
&lt;br&gt;&amp;gt; | #define HAVE_STRING_H 1
&lt;br&gt;&amp;gt; | #define HAVE_SYS_IOCTL_H 1
&lt;br&gt;&amp;gt; | #define HAVE_SYS_PARAM_H 1
&lt;br&gt;&amp;gt; | #define HAVE_SYS_POLL_H 1
&lt;br&gt;&amp;gt; | #define HAVE_SYS_RESOURCE_H 1
&lt;br&gt;&amp;gt; | #define HAVE_SYS_SELECT_H 1
&lt;br&gt;&amp;gt; | #define HAVE_SYS_STAT_H 1
&lt;br&gt;&amp;gt; | #define HAVE_SYS_TIME_H 1
&lt;br&gt;&amp;gt; | #define HAVE_SYS_TIMES_H 1
&lt;br&gt;&amp;gt; | #define HAVE_SYS_TYPES_H 1
&lt;br&gt;&amp;gt; | #define HAVE_SYS_UTSNAME_H 1
&lt;br&gt;&amp;gt; | #define HAVE_SYS_UTIME_H 1
&lt;br&gt;&amp;gt; | #define HAVE_TERMCAP_H 1
&lt;br&gt;&amp;gt; | #define HAVE_UNISTD_H 1
&lt;br&gt;&amp;gt; | #define HAVE_UTIME_H 1
&lt;br&gt;&amp;gt; | #define HAVE_SSTREAM 1
&lt;br&gt;&amp;gt; | #define HAVE_TERMIO_H 1
&lt;br&gt;&amp;gt; | #define HAVE_GLOB_H 1
&lt;br&gt;&amp;gt; | #define HAVE_FNMATCH_H 1
&lt;br&gt;&amp;gt; | #define HAVE_FNMATCH 1
&lt;br&gt;&amp;gt; | #define HAVE_GLOB 1
&lt;br&gt;&amp;gt; | #define HAVE_ATEXIT 1
&lt;br&gt;&amp;gt; | #define HAVE_BASENAME 1
&lt;br&gt;&amp;gt; | #define HAVE_BCOPY 1
&lt;br&gt;&amp;gt; | #define HAVE_BZERO 1
&lt;br&gt;&amp;gt; | #define HAVE_CHMOD 1
&lt;br&gt;&amp;gt; | #define HAVE_DUP2 1
&lt;br&gt;&amp;gt; | #define HAVE_ENDGRENT 1
&lt;br&gt;&amp;gt; | #define HAVE_ENDPWENT 1
&lt;br&gt;&amp;gt; | #define HAVE_EXECVP 1
&lt;br&gt;&amp;gt; | #define HAVE_EXPM1 1
&lt;br&gt;&amp;gt; | #define HAVE_EXPM1F 1
&lt;br&gt;&amp;gt; | #define HAVE_FCNTL 1
&lt;br&gt;&amp;gt; | #define HAVE_FORK 1
&lt;br&gt;&amp;gt; | #define HAVE_GETCWD 1
&lt;br&gt;&amp;gt; | #define HAVE_GETEGID 1
&lt;br&gt;&amp;gt; | #define HAVE_GETEUID 1
&lt;br&gt;&amp;gt; | #define HAVE_GETGID 1
&lt;br&gt;&amp;gt; | #define HAVE_GETGRENT 1
&lt;br&gt;&amp;gt; | #define HAVE_GETGRGID 1
&lt;br&gt;&amp;gt; | #define HAVE_GETGRNAM 1
&lt;br&gt;&amp;gt; | #define HAVE_GETPGRP 1
&lt;br&gt;&amp;gt; | #define HAVE_GETPID 1
&lt;br&gt;&amp;gt; | #define HAVE_GETPPID 1
&lt;br&gt;&amp;gt; | #define HAVE_GETPWENT 1
&lt;br&gt;&amp;gt; | #define HAVE_GETPWUID 1
&lt;br&gt;&amp;gt; | #define HAVE_GETTIMEOFDAY 1
&lt;br&gt;&amp;gt; | #define HAVE_GETUID 1
&lt;br&gt;&amp;gt; | #define HAVE_GETWD 1
&lt;br&gt;&amp;gt; | #define HAVE_KILL 1
&lt;br&gt;&amp;gt; | #define HAVE_LGAMMA 1
&lt;br&gt;&amp;gt; | #define HAVE_LGAMMAF 1
&lt;br&gt;&amp;gt; | #define HAVE_LGAMMA_R 1
&lt;br&gt;&amp;gt; | #define HAVE_LGAMMAF_R 1
&lt;br&gt;&amp;gt; | #define HAVE_LINK 1
&lt;br&gt;&amp;gt; | #define HAVE_LOCALTIME_R 1
&lt;br&gt;&amp;gt; | #define HAVE_LOG1P 1
&lt;br&gt;&amp;gt; | #define HAVE_LOG1PF 1
&lt;br&gt;&amp;gt; | #define HAVE_LSTAT 1
&lt;br&gt;&amp;gt; | #define HAVE_MEMMOVE 1
&lt;br&gt;&amp;gt; | #define HAVE_MKDIR 1
&lt;br&gt;&amp;gt; | #define HAVE_MKFIFO 1
&lt;br&gt;&amp;gt; | #define HAVE_MKSTEMP 1
&lt;br&gt;&amp;gt; | #define HAVE_ON_EXIT 1
&lt;br&gt;&amp;gt; | #define HAVE_PIPE 1
&lt;br&gt;&amp;gt; | #define HAVE_POLL 1
&lt;br&gt;&amp;gt; | #define HAVE_PUTENV 1
&lt;br&gt;&amp;gt; | #define HAVE_RAISE 1
&lt;br&gt;&amp;gt; | #define HAVE_READLINK 1
&lt;br&gt;&amp;gt; | #define HAVE_REALPATH 1
&lt;br&gt;&amp;gt; | #define HAVE_RENAME 1
&lt;br&gt;&amp;gt; | #define HAVE_RINDEX 1
&lt;br&gt;&amp;gt; | #define HAVE_RMDIR 1
&lt;br&gt;&amp;gt; | #define HAVE_ROUND 1
&lt;br&gt;&amp;gt; | #define HAVE_SELECT 1
&lt;br&gt;&amp;gt; | #define HAVE_SETGRENT 1
&lt;br&gt;&amp;gt; | #define HAVE_SETLOCALE 1
&lt;br&gt;&amp;gt; | #define HAVE_SETPWENT 1
&lt;br&gt;&amp;gt; | #define HAVE_SETVBUF 1
&lt;br&gt;&amp;gt; | #define HAVE_SIGACTION 1
&lt;br&gt;&amp;gt; | #define HAVE_SIGPENDING 1
&lt;br&gt;&amp;gt; | #define HAVE_SIGPROCMASK 1
&lt;br&gt;&amp;gt; | #define HAVE_SIGSUSPEND 1
&lt;br&gt;&amp;gt; | #define HAVE_SNPRINTF 1
&lt;br&gt;&amp;gt; | #define HAVE_STAT 1
&lt;br&gt;&amp;gt; | #define HAVE_STRCASECMP 1
&lt;br&gt;&amp;gt; | #define HAVE_STRDUP 1
&lt;br&gt;&amp;gt; | #define HAVE_STRERROR 1
&lt;br&gt;&amp;gt; | #define HAVE_STRNCASECMP 1
&lt;br&gt;&amp;gt; | #define HAVE_STRPTIME 1
&lt;br&gt;&amp;gt; | #define HAVE_STRSIGNAL 1
&lt;br&gt;&amp;gt; | #define HAVE_SYMLINK 1
&lt;br&gt;&amp;gt; | #define HAVE_TEMPNAM 1
&lt;br&gt;&amp;gt; | #define HAVE_TGAMMA 1
&lt;br&gt;&amp;gt; | #define HAVE_TGAMMAF 1
&lt;br&gt;&amp;gt; | #define HAVE_TRUNC 1
&lt;br&gt;&amp;gt; | #define HAVE_UMASK 1
&lt;br&gt;&amp;gt; | #define HAVE_UNAME 1
&lt;br&gt;&amp;gt; | #define HAVE_UNLINK 1
&lt;br&gt;&amp;gt; | #define HAVE_USLEEP 1
&lt;br&gt;&amp;gt; | #define HAVE_UTIME 1
&lt;br&gt;&amp;gt; | #define HAVE_VFPRINTF 1
&lt;br&gt;&amp;gt; | #define HAVE_VSPRINTF 1
&lt;br&gt;&amp;gt; | #define HAVE_VSNPRINTF 1
&lt;br&gt;&amp;gt; | #define HAVE_WAITPID 1
&lt;br&gt;&amp;gt; | #define HAVE__CHMOD 1
&lt;br&gt;&amp;gt; | #define HAVE__SNPRINTF 1
&lt;br&gt;&amp;gt; | #define HAVE_STRFTIME 1
&lt;br&gt;&amp;gt; | #define OCTAVE_HAVE_BROKEN_STRPTIME 1
&lt;br&gt;&amp;gt; | #define HAVE_LIBDL 1
&lt;br&gt;&amp;gt; | #define HAVE_DLOPEN 1
&lt;br&gt;&amp;gt; | #define HAVE_DLSYM 1
&lt;br&gt;&amp;gt; | #define HAVE_DLERROR 1
&lt;br&gt;&amp;gt; | #define HAVE_DLCLOSE 1
&lt;br&gt;&amp;gt; | #define HAVE_DLOPEN_API 1
&lt;br&gt;&amp;gt; | #define ENABLE_DYNAMIC_LINKING 1
&lt;br&gt;&amp;gt; | #define HAVE_TIMEVAL 1
&lt;br&gt;&amp;gt; | #define HAVE_FINITE 1
&lt;br&gt;&amp;gt; | #define HAVE_ISNAN 1
&lt;br&gt;&amp;gt; | #define HAVE_ISINF 1
&lt;br&gt;&amp;gt; | #define HAVE_COPYSIGN 1
&lt;br&gt;&amp;gt; | #define HAVE__FINITE 1
&lt;br&gt;&amp;gt; | #define HAVE__ISNAN 1
&lt;br&gt;&amp;gt; | #define HAVE__COPYSIGN 1
&lt;br&gt;&amp;gt; | #define HAVE_DECL_SIGNBIT 1
&lt;br&gt;&amp;gt; | #define HAVE_ACOSH 1
&lt;br&gt;&amp;gt; | #define HAVE_ACOSHF 1
&lt;br&gt;&amp;gt; | #define HAVE_ASINH 1
&lt;br&gt;&amp;gt; | #define HAVE_ASINHF 1
&lt;br&gt;&amp;gt; | #define HAVE_ATANH 1
&lt;br&gt;&amp;gt; | #define HAVE_ATANHF 1
&lt;br&gt;&amp;gt; | #define HAVE_ERF 1
&lt;br&gt;&amp;gt; | #define HAVE_ERFF 1
&lt;br&gt;&amp;gt; | #define HAVE_ERFC 1
&lt;br&gt;&amp;gt; | #define HAVE_ERFCF 1
&lt;br&gt;&amp;gt; | #define HAVE_EXP2 1
&lt;br&gt;&amp;gt; | #define HAVE_EXP2F 1
&lt;br&gt;&amp;gt; | /* end confdefs.h. &amp;nbsp;*/
&lt;br&gt;&amp;gt; | /* Define log2 to an innocuous variant, in case &amp;lt;limits.h&amp;gt; declares log2.
&lt;br&gt;&amp;gt; | &amp;nbsp; &amp;nbsp;For example, HP-UX 11i &amp;lt;limits.h&amp;gt; declares gettimeofday. &amp;nbsp;*/
&lt;br&gt;&amp;gt; | #define log2 innocuous_log2
&lt;br&gt;&amp;gt; |
&lt;br&gt;&amp;gt; | /* System header to define __stub macros and hopefully few prototypes,
&lt;br&gt;&amp;gt; | &amp;nbsp; &amp;nbsp; which can conflict with char log2 (); below.
&lt;br&gt;&amp;gt; | &amp;nbsp; &amp;nbsp; Prefer &amp;lt;limits.h&amp;gt; to &amp;lt;assert.h&amp;gt; if __STDC__ is defined, since
&lt;br&gt;&amp;gt; | &amp;nbsp; &amp;nbsp; &amp;lt;limits.h&amp;gt; exists even on freestanding compilers. &amp;nbsp;*/
&lt;br&gt;&amp;gt; |
&lt;br&gt;&amp;gt; | #ifdef __STDC__
&lt;br&gt;&amp;gt; | # include &amp;lt;limits.h&amp;gt;
&lt;br&gt;&amp;gt; | #else
&lt;br&gt;&amp;gt; | # include &amp;lt;assert.h&amp;gt;
&lt;br&gt;&amp;gt; | #endif
&lt;br&gt;&amp;gt; |
&lt;br&gt;&amp;gt; | #undef log2
&lt;br&gt;&amp;gt; |
&lt;br&gt;&amp;gt; | /* Override any GCC internal prototype to avoid an error.
&lt;br&gt;&amp;gt; | &amp;nbsp; &amp;nbsp;Use char because int might match the return type of a GCC
&lt;br&gt;&amp;gt; | &amp;nbsp; &amp;nbsp;builtin and then its argument prototype would still apply. &amp;nbsp;*/
&lt;br&gt;&amp;gt; | #ifdef __cplusplus
&lt;br&gt;&amp;gt; | extern &amp;quot;C&amp;quot;
&lt;br&gt;&amp;gt; | #endif
&lt;br&gt;&amp;gt; | char log2 ();
&lt;br&gt;&amp;gt; | /* The GNU C library defines this for functions which it implements
&lt;br&gt;&amp;gt; | &amp;nbsp; &amp;nbsp; to always fail with ENOSYS. &amp;nbsp;Some functions are actually named
&lt;br&gt;&amp;gt; | &amp;nbsp; &amp;nbsp; something starting with __ and the normal name is an alias. &amp;nbsp;*/
&lt;br&gt;&amp;gt; | #if defined __stub_log2 || defined __stub___log2
&lt;br&gt;&amp;gt; | choke me
&lt;br&gt;&amp;gt; | #endif
&lt;br&gt;&amp;gt; |
&lt;br&gt;&amp;gt; | #ifdef F77_DUMMY_MAIN
&lt;br&gt;&amp;gt; |
&lt;br&gt;&amp;gt; | # &amp;nbsp;ifdef __cplusplus
&lt;br&gt;&amp;gt; | &amp;nbsp; &amp;nbsp; &amp;nbsp;extern &amp;quot;C&amp;quot;
&lt;br&gt;&amp;gt; | # &amp;nbsp;endif
&lt;br&gt;&amp;gt; | &amp;nbsp; &amp;nbsp;int F77_DUMMY_MAIN() { return 1; }
&lt;br&gt;&amp;gt; |
&lt;br&gt;&amp;gt; | #endif
&lt;br&gt;&amp;gt; | int
&lt;br&gt;&amp;gt; | main ()
&lt;br&gt;&amp;gt; | {
&lt;br&gt;&amp;gt; | return log2 ();
&lt;br&gt;&amp;gt; | &amp;nbsp; ;
&lt;br&gt;&amp;gt; | &amp;nbsp; return 0;
&lt;br&gt;&amp;gt; | }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think that the lines like the following will be required
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #ifndef HAVE_LOG2
&lt;br&gt;&amp;gt; #define log2(x) xlog2(x)
&lt;br&gt;&amp;gt; #endif
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Almost certainly not. Actually some hidden macro like this interferes
&lt;br&gt;with the octave_value
&lt;br&gt;method definitions.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Tatsuro
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --------------------------------------
&lt;br&gt;&amp;gt; Stop! Global Warming ~ Yahoo! JAPAN Earth Project
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://pr.mail.yahoo.co.jp/earthproject/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pr.mail.yahoo.co.jp/earthproject/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;RNDr. Jaroslav Hajek
&lt;br&gt;computing expert
&lt;br&gt;Aeronautical Research and Test Institute (VZLU)
&lt;br&gt;Prague, Czech Republic
&lt;br&gt;url: www.highegg.matfyz.cz
&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18632145&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/make-error-about-log2-for-octave-3.1.51-%28Not-3.1.50%29-tp18606060p18632145.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18631804</id>
	<title>Re: about axes properties</title>
	<published>2008-07-24T05:34:58Z</published>
	<updated>2008-07-24T05:34:58Z</updated>
	<author>
		<name>John W. Eaton</name>
	</author>
	<content type="html">On 24-Jul-2008, Francesco Potorti` wrote:
&lt;br&gt;&lt;br&gt;| &amp;gt;My understanding is that the parameter for outerposition is a vector
&lt;br&gt;| &amp;gt;p(1,2,3,4) with:
&lt;br&gt;| &amp;gt;
&lt;br&gt;| &amp;gt;p(1) is the x-coordinate of the lower left corner of the plot
&lt;br&gt;| &amp;gt;p(2) is the y-coordinate of the lower left corner of the plot
&lt;br&gt;| &amp;gt;p(3) is the width of the plot
&lt;br&gt;| &amp;gt;p(4) is the height of the plot
&lt;br&gt;| &amp;gt;
&lt;br&gt;| &amp;gt;All these values are given in relative units, i.e. in fractions of the
&lt;br&gt;| &amp;gt;width and height of the graph window, where (0/0) is the lower left
&lt;br&gt;| &amp;gt;corner of the window and (1/1) is the upper right corner.
&lt;br&gt;| 
&lt;br&gt;| Yes, this is I too deduced from the current documentation.
&lt;br&gt;| 
&lt;br&gt;| &amp;gt;Does that make sense? 
&lt;br&gt;| 
&lt;br&gt;| Yes, this is approximately the behaviour I observe.
&lt;br&gt;| 
&lt;br&gt;| &amp;gt;If so, something along these lines should propably be added to the
&lt;br&gt;| &amp;gt;documentation.
&lt;br&gt;| 
&lt;br&gt;| I could do that, but some things are not clear to me.
&lt;br&gt;| 
&lt;br&gt;| 1) I can enlarge the plot up to 1.2 without exceeding the window
&lt;br&gt;| &amp;nbsp; &amp;nbsp;boundaries. 
&lt;br&gt;| 
&lt;br&gt;| 2) Apparently, when you make subplots, you can still move them around
&lt;br&gt;| &amp;nbsp; &amp;nbsp;through the whole window, which is good and useful, but also means
&lt;br&gt;| &amp;nbsp; &amp;nbsp;that &amp;quot;outerposition&amp;quot; is somehow initialised: why can't one look at
&lt;br&gt;| &amp;nbsp; &amp;nbsp;the initial values?
&lt;br&gt;| 
&lt;br&gt;| 3) How does &amp;quot;aspectratio&amp;quot; interact with the imposed size?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Please remember that with the current graphics system, we are
&lt;br&gt;generally doing what we can to approximate the relatively large and
&lt;br&gt;complex Matlab graphics system given limited developer resources and
&lt;br&gt;the limitations of gnuplot. &amp;nbsp;It might not always be possible to do the
&lt;br&gt;Matlab-compatible thing given gnuplot's features. &amp;nbsp;Also, we are in the
&lt;br&gt;process of replacing the gnuplot backend with an OpenGL-based
&lt;br&gt;renderer, so any heroic efforts to improve the gnuplot backend might
&lt;br&gt;not be justified. &amp;nbsp;If you'd like to discuss this further, or help to
&lt;br&gt;improve Octave's graphics system, I think the maintainers list is a
&lt;br&gt;better place for the discussion..
&lt;br&gt;&lt;br&gt;jwe
&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18631804&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/about-axes-properties-tp18615106p18631804.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18631459</id>
	<title>Re: make error about log2 for octave-3.1.51 (Not 3.1.50)</title>
	<published>2008-07-24T05:30:09Z</published>
	<updated>2008-07-24T05:30:09Z</updated>
	<author>
		<name>John W. Eaton</name>
	</author>
	<content type="html">On 24-Jul-2008, Tatsuro MATSUOKA wrote:
&lt;br&gt;&lt;br&gt;| Hello Jaroslav
&lt;br&gt;| 
&lt;br&gt;| Thank you for your reply
&lt;br&gt;| 
&lt;br&gt;| 
&lt;br&gt;| &amp;gt; This looks really weird given that there is no / token on the line. I
&lt;br&gt;| &amp;gt; suspect that
&lt;br&gt;| &amp;gt; you have log2 defined to some macro and that causes problems.
&lt;br&gt;| 
&lt;br&gt;| I do not define log2 myself. &amp;nbsp;Perhaps gcc on cygwin defines it.
&lt;br&gt;&lt;br&gt;Can you please find out where and how it is defined? &amp;nbsp;There is nothing
&lt;br&gt;in the Octave source code that #defines it.
&lt;br&gt;&lt;br&gt;| I think that the lines like the following will be required 
&lt;br&gt;| 
&lt;br&gt;| #ifndef HAVE_LOG2 
&lt;br&gt;| #define log2(x) xlog2(x)
&lt;br&gt;| #endif
&lt;br&gt;&lt;br&gt;Where?
&lt;br&gt;&lt;br&gt;I think it might be more appropriate to #undef log2 at some point(s),
&lt;br&gt;similar to what we do for min/max on Windows systems.
&lt;br&gt;&lt;br&gt;In any case, if you think this is a bug in Octave that requires a fix,
&lt;br&gt;we should probably be discussing it on the bug list, not here.
&lt;br&gt;&lt;br&gt;jwe
&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18631459&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/make-error-about-log2-for-octave-3.1.51-%28Not-3.1.50%29-tp18606060p18631459.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18630045</id>
	<title>Re: datestr bug [changeset]</title>
	<published>2008-07-24T04:28:03Z</published>
	<updated>2008-07-24T04:28:03Z</updated>
	<author>
		<name>Ben Abbott</name>
	</author>
	<content type="html">&lt;br&gt;On Jul 23, 2008, at 8:15 PM, Ben Abbott wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wednesday, July 23, 2008, at 07:46PM, &amp;quot;Rob Mahurin&amp;quot; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18630045&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rob@...&lt;/a&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Jul 23, 2008, at 5:47 PM, John W. Eaton wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On 23-Jul-2008, Rob Mahurin wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; | Hello, bug-octave.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; |
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; | This statement
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; |
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; | &amp;gt; str = datestr(day, &amp;quot;yyyy-mm-dd\ndddd\n&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; | &amp;gt; printf(str);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; |
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; | seems to do some extra substituting:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; |
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; | &amp;gt; 2009-03-14
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; | &amp;gt; SaturSay
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; |
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; | &amp;gt; 2008-11-26
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; | &amp;gt; WeWnesWay
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; |
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; |
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; | I'm running 3.0.1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I think this has been reported at least once before. &amp;nbsp;See for &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; example
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/datestr-weekday-strptime%2C-2-bugs--&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/datestr-weekday-strptime%2C-2-bugs--&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; to7650360.html#a7650360
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm not sure what the best fix is. &amp;nbsp;I would consider a patch.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; It seems like the offending line is
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; str = strrep (str, &amp;quot;d&amp;quot;, names_d{weekday (datenum (v(i,1), v(i,2), v
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; (i,3)))});
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; in datestr.m, which appears after the &amp;quot;dddd&amp;quot; in-place substitution.
&lt;br&gt;&amp;gt;&amp;gt; A possibly-good-enough patch would be to follow this with
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; # incomplete fix for greedy matching
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; str = strrep (str, &amp;quot;SunSay&amp;quot;, &amp;quot;Sunday&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; str = strrep (str, &amp;quot;MonMay&amp;quot;, &amp;quot;Monday&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I think the &amp;quot;most correct&amp;quot; way to do this would be a set of regular
&lt;br&gt;&amp;gt;&amp;gt; expressions to identify the location and type of each format
&lt;br&gt;&amp;gt;&amp;gt; specifier, followed by a single-pass substitution.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If there were a utility function with the right magic numbers in it I
&lt;br&gt;&amp;gt;&amp;gt; could use strftime, which has more robust formatting anyway. &amp;nbsp;This:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; printf(strftime (&amp;quot;%A %F %H:%M:%S %Z\n&amp;quot;, localtime((now - 719529)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; *24*3600)))
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (based on the hint from &amp;quot;help now&amp;quot;) seems to go the wrong way from &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; UTC.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt; Rob
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Another possible solution (hack) is to replace the offending line with
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; nd &amp;nbsp;= strfind (str, &amp;quot;d&amp;quot;);
&lt;br&gt;&amp;gt; nd &amp;nbsp;= setdiff (nd, strfind (str,&amp;quot;day&amp;quot;));
&lt;br&gt;&amp;gt; nd &amp;nbsp;= setdiff (nd, strfind (str,&amp;quot;dnesday&amp;quot;));
&lt;br&gt;&amp;gt; str(nd) = names_d{weekday (datenum (v(i,1), v(i,2), v(i,3)))};
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In either event, an additional test should be added.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; %!assert(datestr(testtime+[0 0 3 0 0 0],&amp;quot;dddd&amp;quot;),&amp;quot;Wednesday&amp;quot;)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Comments?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ben
&lt;/div&gt;&lt;/div&gt;Please consider the attached changeset.
&lt;br&gt;&lt;br&gt;&lt;br /&gt;# HG changeset patch
&lt;br&gt;# User Ben Abbott &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18630045&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bpabbott@...&lt;/a&gt;&amp;gt;
&lt;br&gt;# Date 1216898789 14400
&lt;br&gt;# Node ID 738a8cbe661439b4eba7492a448bcd5b43faeb3a
&lt;br&gt;# Parent &amp;nbsp;6add0f974aee3bf641842a71472a6014fdf4f442
&lt;br&gt;datestr.m: Fix format &amp;quot;dddd&amp;quot;.
&lt;br&gt;&lt;br&gt;diff -r 6add0f974aee -r 738a8cbe6614 scripts/ChangeLog
&lt;br&gt;--- a/scripts/ChangeLog	Tue Jul 22 17:24:17 2008 -0400
&lt;br&gt;+++ b/scripts/ChangeLog	Thu Jul 24 07:26:29 2008 -0400
&lt;br&gt;@@ -1,3 +1,7 @@
&lt;br&gt;+2008-07-23 &amp;nbsp;Ben Abbott &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18630045&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bpabbott@...&lt;/a&gt;&amp;gt;
&lt;br&gt;+
&lt;br&gt;+	* time/datestr.m: Fix format &amp;quot;dddd&amp;quot;.
&lt;br&gt;+ 
&lt;br&gt;&amp;nbsp;2008-07-21 &amp;nbsp;Michael Goffioul &amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18630045&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;michael.goffioul@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	* plot/closereq.m: Use first gcbf to get the handle of the figure to
&lt;br&gt;diff -r 6add0f974aee -r 738a8cbe6614 scripts/time/datestr.m
&lt;br&gt;--- a/scripts/time/datestr.m	Tue Jul 22 17:24:17 2008 -0400
&lt;br&gt;+++ b/scripts/time/datestr.m	Thu Jul 24 07:26:29 2008 -0400
&lt;br&gt;@@ -275,7 +275,10 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;str = strrep (str, &amp;quot;dddd&amp;quot;, names_dddd{weekday (datenum (v(i,1), v(i,2), v(i,3)))});
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;str = strrep (str, &amp;quot;ddd&amp;quot;, names_ddd{weekday (datenum (v(i,1), v(i,2), v(i,3)))});
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;str = strrep (str, &amp;quot;dd&amp;quot;, sprintf (&amp;quot;%02d&amp;quot;, v(i,3)));
&lt;br&gt;- &amp;nbsp; &amp;nbsp;str = strrep (str, &amp;quot;d&amp;quot;, names_d{weekday (datenum (v(i,1), v(i,2), v(i,3)))});
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;nd &amp;nbsp;= strfind (str, &amp;quot;d&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;nd &amp;nbsp;= setdiff (nd, strfind (str,&amp;quot;day&amp;quot;));
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;nd &amp;nbsp;= setdiff (nd, strfind (str,&amp;quot;dnesday&amp;quot;));
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;str(nd) = names_d{weekday (datenum (v(i,1), v(i,2), v(i,3)))};
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;## replace time symbols with actual values
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if ((any (strfind (str, &amp;quot;AM&amp;quot;)) || any (strfind (str, &amp;quot;PM&amp;quot;))))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (v(i,4) &amp;gt; 12)
&lt;br&gt;@@ -341,6 +344,7 @@
&lt;br&gt;&amp;nbsp;%!assert(datestr(testtime,29),&amp;quot;20051218&amp;quot;);
&lt;br&gt;&amp;nbsp;%!assert(datestr(testtime,30),&amp;quot;20051218T023317&amp;quot;);
&lt;br&gt;&amp;nbsp;%!assert(datestr(testtime,31),&amp;quot;2005-12-18 02:33:17&amp;quot;);
&lt;br&gt;+%!assert(datestr(testtime+[0 0 3 0 0 0],&amp;quot;dddd&amp;quot;),&amp;quot;Wednesday&amp;quot;)
&lt;br&gt;&amp;nbsp;## avoid the bug where someone happens to give a vector of datenums that
&lt;br&gt;&amp;nbsp;## happens to be 6 wide
&lt;br&gt;&amp;nbsp;%!assert(datestr(733452.933:733457.933), [&amp;quot;14-Feb-2008 22:23:31&amp;quot;;&amp;quot;15-Feb-2008 22:23:31&amp;quot;;&amp;quot;16-Feb-2008 22:23:31&amp;quot;;&amp;quot;17-Feb-2008 22:23:31&amp;quot;;&amp;quot;18-Feb-2008 22:23:31&amp;quot;;&amp;quot;19-Feb-2008 22:23:31&amp;quot;])
&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Bug-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18630045&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bug-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/bug-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/bug-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---Bugs-f1896.html&quot; embed=&quot;fixTarget[1896]&quot; target=&quot;_top&quot; &gt;Octave - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/datestr-bug-tp18621317p18630045.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18628856</id>
	<title>Re: make error about log2 for octave-3.1.51 (Not 3.1.50)</title>
	<published>2008-07-24T02:54:02Z</published>
	<updated>2008-07-24T02:54:02Z</updated>
	<author>
		<name>Tatsuro MATSUOKA-2</name>
	</author>
	<content type="html">Hello Jaroslav
&lt;br&gt;&lt;br&gt;Thank you for your reply
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; This looks really weird given that there is no / token on the line. I
&lt;br&gt;&amp;gt; suspect that
&lt;br&gt;&amp;gt; you have log2 defined to some macro and that causes problems.
&lt;br&gt;&lt;br&gt;I do not define log2 myself. &amp;nbsp;Perhaps gcc on cygwin defines it.
&lt;br&gt;Since octave 3.0.1, the log2 fuction has no problem at building.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Can you try running:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; /opt/octave/gcc-3.4.4dw2/bin/g++ -E -C
&lt;br&gt;&amp;gt; -I/opt/octave/gcc-3.4.4dw2/include -I/usr/include
&lt;br&gt;&amp;gt; &amp;nbsp;-I/opt/octave/octave-3.1.51/include &amp;nbsp;-I. -I.. -I../liboctave -I../src
&lt;br&gt;&amp;gt; -I../libcruft/misc
&lt;br&gt;&amp;gt; &amp;nbsp;-DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wold-style-cast -g -O2 Cell.cc
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; in the directory where the make failure occured and posting the output?
&lt;br&gt;I will show the results of which the log2 related.
&lt;br&gt;&lt;br&gt;493: /* Define to 1 if you have the `log2' function. */
&lt;br&gt;494: /* #undef HAVE_LOG2 */
&lt;br&gt;&lt;br&gt;&lt;br&gt;The below lines perhaps are not related but I will show them as a reference &amp;nbsp;
&lt;br&gt;47686: extern double xlog2 (double x);
&lt;br&gt;47687: extern Complex xlog2 (const Complex&amp; x);
&lt;br&gt;47688: extern double xlog2 (double x, int&amp; exp);
&lt;br&gt;47689: extern Complex xlog2 (const Complex&amp; x, int&amp; exp);
&lt;br&gt;&lt;br&gt;47740: extern float xlog2 (float x);
&lt;br&gt;47741: extern FloatComplex xlog2 (const FloatComplex&amp; x);
&lt;br&gt;47742: extern float xlog2 (float x, int&amp; exp);
&lt;br&gt;47743: extern FloatComplex xlog2 (const FloatComplex&amp; x, int&amp; exp);
&lt;br&gt;&lt;br&gt;To see the how configure detect log2
&lt;br&gt;configure:25965: checking for log2
&lt;br&gt;configure:26029: /opt/octave/gcc-3.4.4dw2/bin/gcc -o conftest.exe -g -O2
&lt;br&gt;-I/opt/octave/gcc-3.4.4dw2/include -I/usr/include -I/opt/octave/octave-3.1.51/include 
&lt;br&gt;-L/opt/octave/gcc-3.4.4dw2/lib -L/opt/octave/octave-3.1.51/lib conftest.c -ldl -lwsock32 -lblas -lhdf5
&lt;br&gt;-lz -lm &amp;nbsp;-lwsock32 &amp;gt;&amp;5
&lt;br&gt;conftest.c:265: warning: conflicting types for built-in function 'log2'
&lt;br&gt;/cygdrive/c/DOCUME~1/Tatsu/LOCALS~1/Temp/cccEhDNQ.o: In function `main':
&lt;br&gt;/home/octaves/octave-3.1.51/conftest.c:284: undefined reference to `_log2'
&lt;br&gt;collect2: ld returned 1 exit status
&lt;br&gt;configure:26035: $? = 1
&lt;br&gt;configure: failed program was:
&lt;br&gt;| /* confdefs.h. &amp;nbsp;*/
&lt;br&gt;| #define PACKAGE_NAME &amp;quot;&amp;quot;
&lt;br&gt;| #define PACKAGE_TARNAME &amp;quot;&amp;quot;
&lt;br&gt;| #define PACKAGE_VERSION &amp;quot;&amp;quot;
&lt;br&gt;| #define PACKAGE_STRING &amp;quot;&amp;quot;
&lt;br&gt;| #define PACKAGE_BUGREPORT &amp;quot;&amp;quot;
&lt;br&gt;| #define OCTAVE_SOURCE 1
&lt;br&gt;| #define _GNU_SOURCE 1
&lt;br&gt;| #define STDC_HEADERS 1
&lt;br&gt;| #define HAVE_SYS_TYPES_H 1
&lt;br&gt;| #define HAVE_SYS_STAT_H 1
&lt;br&gt;| #define HAVE_STDLIB_H 1
&lt;br&gt;| #define HAVE_STRING_H 1
&lt;br&gt;| #define HAVE_MEMORY_H 1
&lt;br&gt;| #define HAVE_STRINGS_H 1
&lt;br&gt;| #define HAVE_INTTYPES_H 1
&lt;br&gt;| #define HAVE_STDINT_H 1
&lt;br&gt;| #define HAVE_UNISTD_H 1
&lt;br&gt;| #define SEPCHAR ':'
&lt;br&gt;| #define SEPCHAR_STR &amp;quot;:&amp;quot;
&lt;br&gt;| #define __NO_MATH_INLINES 1
&lt;br&gt;| #define CXX_NEW_FRIEND_TEMPLATE_DECL 1
&lt;br&gt;| #define CXX_ISO_COMPLIANT_LIBRARY 1
&lt;br&gt;| #define CXX_BROKEN_REINTERPRET_CAST 1
&lt;br&gt;| #define CXX_ABI gnu_v3
&lt;br&gt;| #define HAVE_LIBM 1
&lt;br&gt;| #define HAVE_QHULL 1
&lt;br&gt;| #define HAVE_PCRE 1
&lt;br&gt;| #define HAVE_REGEXEC 1
&lt;br&gt;| #define HAVE_REGEX 1
&lt;br&gt;| #define HAVE_ZLIB_H 1
&lt;br&gt;| #define HAVE_ZLIB 1
&lt;br&gt;| #define HAVE_HDF5_H 1
&lt;br&gt;| #define HAVE_HDF5 1
&lt;br&gt;| #define HAVE_H5GGET_NUM_OBJS 1
&lt;br&gt;| #define HAVE_FFTW3 1
&lt;br&gt;| #define HAVE_GLPK_H 1
&lt;br&gt;| #define HAVE_GLPK 1
&lt;br&gt;| #define HAVE_CURL_CURL_H 1
&lt;br&gt;| #define HAVE_CURL 1
&lt;br&gt;| #define HAVE_MAGICK 1
&lt;br&gt;| #define HAVE_GL_GL_H 1
&lt;br&gt;| #define HAVE_GL_GLU_H 1
&lt;br&gt;| #define HAVE_OPENGL 1
&lt;br&gt;| #define HAVE_FLTK 1
&lt;br&gt;| #define HAVE_IEEE754_DATA_FORMAT 1
&lt;br&gt;| #define F77_FUNC(name,NAME) name ## _
&lt;br&gt;| #define F77_FUNC_(name,NAME) name ## __
&lt;br&gt;| #define HAVE_BLAS 1
&lt;br&gt;| #define HAVE_SUITESPARSE_AMD_H 1
&lt;br&gt;| #define HAVE_AMD 1
&lt;br&gt;| #define HAVE_SUITESPARSE_UMFPACK_H 1
&lt;br&gt;| #define HAVE_UMFPACK 1
&lt;br&gt;| #define UMFPACK_SEPARATE_SPLIT 1
&lt;br&gt;| #define HAVE_SUITESPARSE_COLAMD_H 1
&lt;br&gt;| #define HAVE_COLAMD 1
&lt;br&gt;| #define HAVE_SUITESPARSE_CCOLAMD_H 1
&lt;br&gt;| #define HAVE_CCOLAMD 1
&lt;br&gt;| #define HAVE_SUITESPARSE_CHOLMOD_H 1
&lt;br&gt;| #define HAVE_CHOLMOD 1
&lt;br&gt;| #define HAVE_SUITESPARSE_CS_H 1
&lt;br&gt;| #define HAVE_CXSPARSE 1
&lt;br&gt;| #define HAVE_GETHOSTNAME 1
&lt;br&gt;| #define HAVE_GETPWNAM 1
&lt;br&gt;| #define HAVE_LIBWSOCK32 1
&lt;br&gt;| #define HAVE_DEV_T 1
&lt;br&gt;| #define HAVE_INO_T 1
&lt;br&gt;| #define HAVE_NLINK_T 1
&lt;br&gt;| #define HAVE_NLINK_T 1
&lt;br&gt;| #define HAVE_LONG_LONG_INT 1
&lt;br&gt;| #define HAVE_UNSIGNED_LONG_LONG_INT 1
&lt;br&gt;| #define HAVE_SIGSET_T 1
&lt;br&gt;| #define HAVE_SIG_ATOMIC_T 1
&lt;br&gt;| #define SIZEOF_SHORT 2
&lt;br&gt;| #define SIZEOF_INT 4
&lt;br&gt;| #define SIZEOF_LONG 4
&lt;br&gt;| #define SIZEOF_LONG_LONG 8
&lt;br&gt;| #define HAVE_ALLOCA_H 1
&lt;br&gt;| #define HAVE_ALLOCA 1
&lt;br&gt;| #define NPOS std::string::npos
&lt;br&gt;| #define HAVE_PLACEMENT_DELETE 1
&lt;br&gt;| #define HAVE_DYNAMIC_AUTO_ARRAYS 1
&lt;br&gt;| #define STDC_HEADERS 1
&lt;br&gt;| #define HAVE_DIRENT_H 1
&lt;br&gt;| #define TIME_WITH_SYS_TIME 1
&lt;br&gt;| #define HAVE_SYS_WAIT_H 1
&lt;br&gt;| #define HAVE_ASSERT_H 1
&lt;br&gt;| #define HAVE_CURSES_H 1
&lt;br&gt;| #define HAVE_DLFCN_H 1
&lt;br&gt;| #define HAVE_FCNTL_H 1
&lt;br&gt;| #define HAVE_FLOAT_H 1
&lt;br&gt;| #define HAVE_GRP_H 1
&lt;br&gt;| #define HAVE_IEEEFP_H 1
&lt;br&gt;| #define HAVE_INTTYPES_H 1
&lt;br&gt;| #define HAVE_LIMITS_H 1
&lt;br&gt;| #define HAVE_LOCALE_H 1
&lt;br&gt;| #define HAVE_MEMORY_H 1
&lt;br&gt;| #define HAVE_NCURSES_H 1
&lt;br&gt;| #define HAVE_POLL_H 1
&lt;br&gt;| #define HAVE_PTHREAD_H 1
&lt;br&gt;| #define HAVE_PWD_H 1
&lt;br&gt;| #define HAVE_STDINT_H 1
&lt;br&gt;| #define HAVE_STDLIB_H 1
&lt;br&gt;| #define HAVE_STRING_H 1
&lt;br&gt;| #define HAVE_SYS_IOCTL_H 1
&lt;br&gt;| #define HAVE_SYS_PARAM_H 1
&lt;br&gt;| #define HAVE_SYS_POLL_H 1
&lt;br&gt;| #define HAVE_SYS_RESOURCE_H 1
&lt;br&gt;| #define HAVE_SYS_SELECT_H 1
&lt;br&gt;| #define HAVE_SYS_STAT_H 1
&lt;br&gt;| #define HAVE_SYS_TIME_H 1
&lt;br&gt;| #define HAVE_SYS_TIMES_H 1
&lt;br&gt;| #define HAVE_SYS_TYPES_H 1
&lt;br&gt;| #define HAVE_SYS_UTSNAME_H 1
&lt;br&gt;| #define HAVE_SYS_UTIME_H 1
&lt;br&gt;| #define HAVE_TERMCAP_H 1
&lt;br&gt;| #define HAVE_UNISTD_H 1
&lt;br&gt;| #define HAVE_UTIME_H 1
&lt;br&gt;| #define HAVE_SSTREAM 1
&lt;br&gt;| #define HAVE_TERMIO_H 1
&lt;br&gt;| #define HAVE_GLOB_H 1
&lt;br&gt;| #define HAVE_FNMATCH_H 1
&lt;br&gt;| #define HAVE_FNMATCH 1
&lt;br&gt;| #define HAVE_GLOB 1
&lt;br&gt;| #define HAVE_ATEXIT 1
&lt;br&gt;| #define HAVE_BASENAME 1
&lt;br&gt;| #define HAVE_BCOPY 1
&lt;br&gt;| #define HAVE_BZERO 1
&lt;br&gt;| #define HAVE_CHMOD 1
&lt;br&gt;| #define HAVE_DUP2 1
&lt;br&gt;| #define HAVE_ENDGRENT 1
&lt;br&gt;| #define HAVE_ENDPWENT 1
&lt;br&gt;| #define HAVE_EXECVP 1
&lt;br&gt;| #define HAVE_EXPM1 1
&lt;br&gt;| #define HAVE_EXPM1F 1
&lt;br&gt;| #define HAVE_FCNTL 1
&lt;br&gt;| #define HAVE_FORK 1
&lt;br&gt;| #define HAVE_GETCWD 1
&lt;br&gt;| #define HAVE_GETEGID 1
&lt;br&gt;| #define HAVE_GETEUID 1
&lt;br&gt;| #define HAVE_GETGID 1
&lt;br&gt;| #define HAVE_GETGRENT 1
&lt;br&gt;| #define HAVE_GETGRGID 1
&lt;br&gt;| #define HAVE_GETGRNAM 1
&lt;br&gt;| #define HAVE_GETPGRP 1
&lt;br&gt;| #define HAVE_GETPID 1
&lt;br&gt;| #define HAVE_GETPPID 1
&lt;br&gt;| #define HAVE_GETPWENT 1
&lt;br&gt;| #define HAVE_GETPWUID 1
&lt;br&gt;| #define HAVE_GETTIMEOFDAY 1
&lt;br&gt;| #define HAVE_GETUID 1
&lt;br&gt;| #define HAVE_GETWD 1
&lt;br&gt;| #define HAVE_KILL 1
&lt;br&gt;| #define HAVE_LGAMMA 1
&lt;br&gt;| #define HAVE_LGAMMAF 1
&lt;br&gt;| #define HAVE_LGAMMA_R 1
&lt;br&gt;| #define HAVE_LGAMMAF_R 1
&lt;br&gt;| #define HAVE_LINK 1
&lt;br&gt;| #define HAVE_LOCALTIME_R 1
&lt;br&gt;| #define HAVE_LOG1P 1
&lt;br&gt;| #define HAVE_LOG1PF 1
&lt;br&gt;| #define HAVE_LSTAT 1
&lt;br&gt;| #define HAVE_MEMMOVE 1
&lt;br&gt;| #define HAVE_MKDIR 1
&lt;br&gt;| #define HAVE_MKFIFO 1
&lt;br&gt;| #define HAVE_MKSTEMP 1
&lt;br&gt;| #define HAVE_ON_EXIT 1
&lt;br&gt;| #define HAVE_PIPE 1
&lt;br&gt;| #define HAVE_POLL 1
&lt;br&gt;| #define HAVE_PUTENV 1
&lt;br&gt;| #define HAVE_RAISE 1
&lt;br&gt;| #define HAVE_READLINK 1
&lt;br&gt;| #define HAVE_REALPATH 1
&lt;br&gt;| #define HAVE_RENAME 1
&lt;br&gt;| #define HAVE_RINDEX 1
&lt;br&gt;| #define HAVE_RMDIR 1
&lt;br&gt;| #define HAVE_ROUND 1
&lt;br&gt;| #define HAVE_SELECT 1
&lt;br&gt;| #define HAVE_SETGRENT 1
&lt;br&gt;| #define HAVE_SETLOCALE 1
&lt;br&gt;| #define HAVE_SETPWENT 1
&lt;br&gt;| #define HAVE_SETVBUF 1
&lt;br&gt;| #define HAVE_SIGACTION 1
&lt;br&gt;| #define HAVE_SIGPENDING 1
&lt;br&gt;| #define HAVE_SIGPROCMASK 1
&lt;br&gt;| #define HAVE_SIGSUSPEND 1
&lt;br&gt;| #define HAVE_SNPRINTF 1
&lt;br&gt;| #define HAVE_STAT 1
&lt;br&gt;| #define HAVE_STRCASECMP 1
&lt;br&gt;| #define HAVE_STRDUP 1
&lt;br&gt;| #define HAVE_STRERROR 1
&lt;br&gt;| #define HAVE_STRNCASECMP 1
&lt;br&gt;| #define HAVE_STRPTIME 1
&lt;br&gt;| #define HAVE_STRSIGNAL 1
&lt;br&gt;| #define HAVE_SYMLINK 1
&lt;br&gt;| #define HAVE_TEMPNAM 1
&lt;br&gt;| #define HAVE_TGAMMA 1
&lt;br&gt;| #define HAVE_TGAMMAF 1
&lt;br&gt;| #define HAVE_TRUNC 1
&lt;br&gt;| #define HAVE_UMASK 1
&lt;br&gt;| #define HAVE_UNAME 1
&lt;br&gt;| #define HAVE_UNLINK 1
&lt;br&gt;| #define HAVE_USLEEP 1
&lt;br&gt;| #define HAVE_UTIME 1
&lt;br&gt;| #define HAVE_VFPRINTF 1
&lt;br&gt;| #define HAVE_VSPRINTF 1
&lt;br&gt;| #define HAVE_VSNPRINTF 1
&lt;br&gt;| #define HAVE_WAITPID 1
&lt;br&gt;| #define HAVE__CHMOD 1
&lt;br&gt;| #define HAVE__SNPRINTF 1
&lt;br&gt;| #define HAVE_STRFTIME 1
&lt;br&gt;| #define OCTAVE_HAVE_BROKEN_STRPTIME 1
&lt;br&gt;| #define HAVE_LIBDL 1
&lt;br&gt;| #define HAVE_DLOPEN 1
&lt;br&gt;| #define HAVE_DLSYM 1
&lt;br&gt;| #define HAVE_DLERROR 1
&lt;br&gt;| #define HAVE_DLCLOSE 1
&lt;br&gt;| #define HAVE_DLOPEN_API 1
&lt;br&gt;| #define ENABLE_DYNAMIC_LINKING 1
&lt;br&gt;| #define HAVE_TIMEVAL 1
&lt;br&gt;| #define HAVE_FINITE 1
&lt;br&gt;| #define HAVE_ISNAN 1
&lt;br&gt;| #define HAVE_ISINF 1
&lt;br&gt;| #define HAVE_COPYSIGN 1
&lt;br&gt;| #define HAVE__FINITE 1
&lt;br&gt;| #define HAVE__ISNAN 1
&lt;br&gt;| #define HAVE__COPYSIGN 1
&lt;br&gt;| #define HAVE_DECL_SIGNBIT 1
&lt;br&gt;| #define HAVE_ACOSH 1
&lt;br&gt;| #define HAVE_ACOSHF 1
&lt;br&gt;| #define HAVE_ASINH 1
&lt;br&gt;| #define HAVE_ASINHF 1
&lt;br&gt;| #define HAVE_ATANH 1
&lt;br&gt;| #define HAVE_ATANHF 1
&lt;br&gt;| #define HAVE_ERF 1
&lt;br&gt;| #define HAVE_ERFF 1
&lt;br&gt;| #define HAVE_ERFC 1
&lt;br&gt;| #define HAVE_ERFCF 1
&lt;br&gt;| #define HAVE_EXP2 1
&lt;br&gt;| #define HAVE_EXP2F 1
&lt;br&gt;| /* end confdefs.h. &amp;nbsp;*/
&lt;br&gt;| /* Define log2 to an innocuous variant, in case &amp;lt;limits.h&amp;gt; declares log2.
&lt;br&gt;| &amp;nbsp; &amp;nbsp;For example, HP-UX 11i &amp;lt;limits.h&amp;gt; declares gettimeofday. &amp;nbsp;*/
&lt;br&gt;| #define log2 innocuous_log2
&lt;br&gt;| 
&lt;br&gt;| /* System header to define __stub macros and hopefully few prototypes,
&lt;br&gt;| &amp;nbsp; &amp;nbsp; which can conflict with char log2 (); below.
&lt;br&gt;| &amp;nbsp; &amp;nbsp; Prefer &amp;lt;limits.h&amp;gt; to &amp;lt;assert.h&amp;gt; if __STDC__ is defined, since
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;lt;limits.h&amp;gt; exists even on freestanding compilers. &amp;nbsp;*/
&lt;br&gt;| 
&lt;br&gt;| #ifdef __STDC__
&lt;br&gt;| # include &amp;lt;limits.h&amp;gt;
&lt;br&gt;| #else
&lt;br&gt;| # include &amp;lt;assert.h&amp;gt;
&lt;br&gt;| #endif
&lt;br&gt;| 
&lt;br&gt;| #undef log2
&lt;br&gt;| 
&lt;br&gt;| /* Override any GCC internal prototype to avoid an error.
&lt;br&gt;| &amp;nbsp; &amp;nbsp;Use char because int might match the return type of a GCC
&lt;br&gt;| &amp;nbsp; &amp;nbsp;builtin and then its argument prototype would still apply. &amp;nbsp;*/
&lt;br&gt;| #ifdef __cplusplus
&lt;br&gt;| extern &amp;quot;C&amp;quot;
&lt;br&gt;| #endif
&lt;br&gt;| char log2 ();
&lt;br&gt;| /* The GNU C library defines this for functions which it implements
&lt;br&gt;| &amp;nbsp; &amp;nbsp; to always fail with ENOSYS. &amp;nbsp;Some functions are actually named
&lt;br&gt;| &amp;nbsp; &amp;nbsp; something starting with __ and the normal name is an alias. &amp;nbsp;*/
&lt;br&gt;| #if defined __stub_log2 || defined __stub___log2
&lt;br&gt;| choke me
&lt;br&gt;| #endif
&lt;br&gt;| 
&lt;br&gt;| #ifdef F77_DUMMY_MAIN
&lt;br&gt;| 
&lt;br&gt;| # &amp;nbsp;ifdef __cplusplus
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp;extern &amp;quot;C&amp;quot;
&lt;br&gt;| # &amp;nbsp;endif
&lt;br&gt;| &amp;nbsp; &amp;nbsp;int F77_DUMMY_MAIN() { return 1; }
&lt;br&gt;| 
&lt;br&gt;| #endif
&lt;br&gt;| int
&lt;br&gt;| main ()
&lt;br&gt;| {
&lt;br&gt;| return log2 ();
&lt;br&gt;| &amp;nbsp; ;
&lt;br&gt;| &amp;nbsp; return 0;
&lt;br&gt;| }
&lt;br&gt;&lt;br&gt;&lt;br&gt;I think that the lines like the following will be required 
&lt;br&gt;&lt;br&gt;#ifndef HAVE_LOG2 
&lt;br&gt;#define log2(x) xlog2(x)
&lt;br&gt;#endif
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;Tatsuro
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------
&lt;br&gt;Stop! Global Warming ~ Yahoo! JAPAN Earth Project
&lt;br&gt;&lt;a href=&quot;http://pr.mail.yahoo.co.jp/earthproject/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pr.mail.yahoo.co.jp/earthproject/&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-octave mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18628856&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-octave@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.cae.wisc.edu/mailman/listinfo/help-octave&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.cae.wisc.edu/mailman/listinfo/help-octave&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---General-f1897.html&quot; embed=&quot;fixTarget[1897]&quot; target=&quot;_top&quot; &gt;Octave - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/make-error-about-log2-for-octave-3.1.51-%28Not-3.1.50%29-tp18606060p18628856.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18628505</id>
	<title>Re: Octave 3.1.51 available for ftp</title>
	<published>2008-07-24T02:38:23Z</published>
	<updated>2008-07-24T02:38:23Z</updated>
	<author>
		<name>Rafael Laboissiere</name>
	</author>
	<content type="html">* John W. Eaton &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18628505&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jwe@...&lt;/a&gt;&amp;gt; [2008-07-22 11:39]:
&lt;br&gt;&lt;br&gt;&amp;gt; A new snapshot of Octave is now available for ftp from ftp.octave.org in the
&lt;br&gt;&amp;gt; directory /pub/octave/bleeding-edge:
&lt;br&gt;&amp;gt; [snip]
&lt;br&gt;&lt;br&gt;Debian packages for 3.1.51 have been uploaded to experimental [1] and are
&lt;br&gt;also available from my apt-getable repository [2], as usual.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;[1] &lt;a href=&quot;http://ftp-master.debian.org/new/octave3.1_3.1.51-1.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ftp-master.debian.org/new/octave3.1_3.1.51-1.html&lt;/a&gt;&lt;br&gt;[2] &lt;a href=&quot;http://people.debian.org/~rafael/octave3.1/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://people.debian.org/~rafael/octave3.1/&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Rafael
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Octave---Maintainers-f1900.html&quot; embed=&quot;fixTarget[1900]&quot; target=&quot;_top&quot; &gt;Octave - Maintainers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Octave-3.1.51-available-for-ftp-tp18592427p18628505.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18627946</id>
	<title>Re: about axes properties</title>
	<published>2008-07-24T01:43:19Z</published>
	<updated>2008-07-24T01:43:19Z</updated>
	<author>
		<name>Francesco Potorti`-2</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt;My understanding is that the parameter for outerposition is a vector
&lt;br&gt;&amp;gt;p(1,2,3,4) with:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;p(1) is the x-coordinate of the lower left corner of the plot
&lt;br&gt;&amp;gt;p(2) is the y-coordinate of the lower left corner of the plot
&lt;br&gt;&amp;gt;p(3) is the width of the plot
&lt;br&gt;&amp;gt;p(4) is the height of the plot
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;All these values are given in relative units, i.e. in fractions of the
&lt;br&gt;&amp;gt;width and height of the graph window, where (0/0) is the lower left
&lt;br&gt;&amp;gt;corner of the window and (1/1) is the upper right corner.
&lt;/div&gt;&lt;br&gt;Yes, this is I too deduced from the current documentation.
&lt;br&gt;&lt;br&gt;&amp;gt;Does that make sense? 
&lt;br&