> "BB" == Ben Bolker <[EMAIL PROTECTED]>
> on Fri, 1 Feb 2008 14:03:15 + (UTC) writes:
BB> Paul Smith gmail.com> writes:
>>
>> Dear All,
>>
>> Take this code:
>>
>> > f <- function(x) exp(-x)*x-0.05
>> > g <- function(x) 0
>> > curve(f,0,5)
On Feb 1, 2008 2:46 PM, Martin Maechler <[EMAIL PROTECTED]> wrote:
> >> Take this code:
> >>
> >> > f <- function(x) exp(-x)*x-0.05
> >> > g <- function(x) 0
> >> > curve(f,0,5)
> >> > curve(g,add=T)
> >> Error in xy.coords(x, y) : 'x' and 'y' lengths differ
> >> >
>
Paul Smith wrote:
>
>> f <- function(x) exp(-x)*x-0.05
>> g <- function(x) 0
>> curve(f,0,5)
>> curve(g,add=T)
>> Error in xy.coords(x, y) : 'x' and 'y' lengths differ
>>
>
> However, with
>
> g <- function(x) x-x
>
> no error is generated.
>
> Is this a bug?
>
No; simplify it:
g1 <- functio
Paul Smith gmail.com> writes:
>
> Dear All,
>
> Take this code:
>
> > f <- function(x) exp(-x)*x-0.05
> > g <- function(x) 0
> > curve(f,0,5)
> > curve(g,add=T)
> Error in xy.coords(x, y) : 'x' and 'y' lengths differ
> >
>
> However, with
>
> g <- function(x) x-x
>
> no error is generated.
Dear All,
Take this code:
> f <- function(x) exp(-x)*x-0.05
> g <- function(x) 0
> curve(f,0,5)
> curve(g,add=T)
Error in xy.coords(x, y) : 'x' and 'y' lengths differ
>
However, with
g <- function(x) x-x
no error is generated.
Is this a bug? I am using
> version
_
platform
5 matches
Mail list logo