[Top][All Lists]

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

Re: Problems solving the following equation

From: Julien Martin
Subject: Re: Problems solving the following equation
Date: Thu, 10 Dec 2009 22:59:09 +0100

Thanks Leo.
I did not know this feature.

2009/12/10 Leo Butler <address@hidden>

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


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

reply via email to

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