help-octave
[Top][All Lists]
Advanced

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

Re: Problem with specific math function (x^2-1)/(x^2+1)


From: Nicholas Jankowski
Subject: Re: Problem with specific math function (x^2-1)/(x^2+1)
Date: Mon, 22 May 2017 16:23:11 -0400

On Mon, May 22, 2017 at 1:49 PM, koleygr <address@hidden> wrote:
I had not subscribed on the mailing list...

I think it is ok now

not sure if you meant the subscription or the function, but

f=@(x) (x.*x-1)/(x.*x+1);

should be

f=@(x) (x.*x-1)./(x.*x+1);

notice the ./ which will do elementwise division.



reply via email to

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