[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
more on inline
From: |
Teemu Ikonen |
Subject: |
more on inline |
Date: |
Thu, 16 Sep 2004 17:34:56 +0300 |
User-agent: |
Mutt/1.4.1i |
Hi,
I tried function valued parameters with Matlab R13, and found that Octave is
not fully compatible, although it does the right thing:
octave:16> ff = inline("f(x)", "f", "x")
ff =
f(f, x) = f(x)
octave:17> ff(@sin, 1)
ans = 0.84147
Matlab:
>> ff = inline('f(x)', 'f', 'x')
ff =
Inline function:
ff(f,x) = f(x)
>> ff(@sin, 1)
ans =
@sin
>> version
ans =
6.5.0.180913a (R13)
I'm not sure if this still the behaviour of R14, but this might be one case
where bug for bug compatibility is not a good idea.
Teemu
- more on inline,
Teemu Ikonen <=