|
|
back to boardShow all messages Hide all messagesNumerical algo Vedernikoff Sergey (HSE: EconomicsForever!) 12 Oct 2008 05:47 Did anybody solve it with numerical algo (local optimization)? I think using Java is best way. Firstly I used parameter MaxLen=100 for BigDecimal and Wa3. Maxlen:=200 and Ac. Thus to garantie given precision in answer 1e-9 is difficult without long numbers. 2 svr: I've accepted it with usual double in C++ I and begginers must be caution. A~1e6; A'A~1e12, t^2-Qt+Z=0;Q,Z~1e24;D=Q^2-4*Z~1e+48 how take t with 1e-9 in 16 digits!? My formula uses only numbers about 10^12 ;) If you have valid analytic solution to the problem, numbers wouldn't make much difficulty, or so it seems to me. Edited by author 22.06.2010 13:54 I solved it using numerical optimization. I've got AC with a code having only 20 lines. |
|
|