help-octave
[Top][All Lists]
Advanced

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

Re: fsolve crashes Octave


From: siko1056
Subject: Re: fsolve crashes Octave
Date: Sun, 13 Sep 2015 13:47:26 -0700 (PDT)

Running your code under Linux gives a more polite answer to your problem: In
your data a division by zero occurs.

[Ran previous code]
octave> [c, fval] = fsolve (@(c) (1/(c(1)*c(2)*sqrt((-1.6e-38*(c(3)^2)) +
(0.8*(10^-2))^2*((x - c(4)).^2)) + c(5) - y)), [1.9, 10e-2, 10^34, 100,
700]);
warning: division by zero
warning: called from
    __fdjac__ at line 33 column 17
    fsolve at line 241 column 12
 ** On entry to DLASCL parameter number  4 had an illegal value
error: __dogleg__: exception encountered in Fortran subroutine zgelsd_
error: called from
    fsolve>__dogleg__ at line 587 column 5
    fsolve at line 303 column 11

Analyse your functions and your data. From the error itself you might not
get useful information.

HTH, Kai



--
View this message in context: 
http://octave.1599824.n4.nabble.com/fsolve-crashes-Octave-tp4672550p4672551.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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