octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mkoctfile test on 2.9.13 MSVC build


From: Tatsuro MATSUOKA
Subject: mkoctfile test on 2.9.13 MSVC build
Date: Sun, 29 Jul 2007 09:47:58 +0900 (JST)

Hello  Michael Goffioul

I have tested mkoctfile on octave 2.9.13 MSVC build.
There seems still white space is not allowed for the
install path if the mkoctfile is used.

octave:2> mkoctfile oregonator99.cc
'C:\Program' is not recognized as an internal or external
command,
operable program or batch file.

This message was appeared when octave was installed in
"c:\program files". 

*****************
Second I have installed the octave to c:\progams\
I have tested from the prompt:
The result is :

octave:2> mkoctfile oregonator99.cc
'C:\Programs\Octave-2.9.13\bin\mkoctfile-2.9.13"
"oregonator99.cc' is not recognized as an internal or
external command,
operable program or batch file.

Finally I tried from the msys shell

octave:3> system('sh')
sh-2.04$ mkoctfile oregonator99.cc
oregonator99.cc
   Creating library oregonator99.lib and object
oregonator99.exp

It worked well.
For me, it was no problem to use mkoctfile from the shell.
However, it will be not good for beginners.

T. Matsuoka




oregonator99.cc
*****************************************************
#include <octave/oct.h>

DEFUN_DLD (oregonator99, args, ,
  "The `oregonator'.\n\
\n\
Reference:\n\
\n\
  Oscillations in chemical systems.  IV.  Limit cycle
behavior in a\n\
  model of a real chemical reaction. Richard J. Field and
Richard\n\
  M. Noyes, The Journal of Chemical Physics, Volume 60
Number 5,\n\
  March 1974.")
{
  ColumnVector dx (3);

  ColumnVector x (args(0).vector_value ());

  dx(0) = 77.27 * (x(1) - x(0)*x(1) + x(0) - 8.375e-06*pow
(x(0), 2.0));
  dx(1) = (x(2) - x(0)*x(1) - x(1)) / 77.27;
  dx(2) = 0.161*(x(0) - x(2));

  return octave_value (dx);
}



--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]