help-octave
[Top][All Lists]
Advanced

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

Re: Please Help


From: Rupert Swarbrick
Subject: Re: Please Help
Date: Wed, 12 Sep 2007 16:54:42 +0100

> function x0 = mysolve(u)
> 
>  options.abstol=1e-5;
>  f = @(x) x^2-u;
> 
>  x0 = fsolve('f', 1);
> 
>  return;

I would say use sqrt, but I presume this is homework. You have in fact
almost got it right though - I think you just need

x0 = fsolve(f, 1)

without the quotes.

Rupert

Attachment: signature.asc
Description: PGP signature


reply via email to

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