[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems solving the following equation
From: |
Leo Butler |
Subject: |
Re: Problems solving the following equation |
Date: |
Thu, 10 Dec 2009 16:38:06 +0000 (GMT) |
User-agent: |
Alpine 1.10 (DEB 962 2008-03-14) |
On Thu, 10 Dec 2009, Julien Martin wrote:
< Hello,
< I am having problems solving the following equation:
< (r*32000)/(1-(1+r)^-6)-1810=0
< I tried with fsolve and it tells me that A^b, A must be square.
< Any idea?
< Thanks in advance,
< Julien.
<
<
The first argument to fsolve is a function, and you can use an anonymous
function. Try
fsolve(@(r) (r*32000)/(1-(1+r)^-6)-1810,1)
ans = -0.24226
Leo
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.