[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
signature.asc
Description: PGP signature
- Please Help, yoonus, 2007/09/12
- Re: Please Help,
Rupert Swarbrick <=