Path: news.mathworks.com!not-for-mail
From: "Joerg Buchholz" <buchholz@hs-bremen.de>
Newsgroups: comp.soft-sys.matlab
Subject: Re: solve equation
Date: Fri, 5 Dec 2008 17:16:02 +0000 (UTC)
Organization: Hochschule Bremen
Lines: 26
Message-ID: <ghbnki$h70$1@fred.mathworks.com>
References: <gh9pu6$7ug$1@fred.mathworks.com> <gh9to2$lq4$1@fred.mathworks.com> <gh9vrh$jim$1@fred.mathworks.com> <gha0ta$9lg$1@fred.mathworks.com> <ghbmqa$491$1@fred.mathworks.com>
Reply-To: "Joerg Buchholz" <buchholz@hs-bremen.de>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1228497362 17632 172.30.248.37 (5 Dec 2008 17:16:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 5 Dec 2008 17:16:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11154
Xref: news.mathworks.com comp.soft-sys.matlab:505232


"Song Joo " <song-lee@northwestern.edu> wrote in message <ghbmqa$491$1@fred.mathworks.com>...
> I ended up to go back to your other suggestion.-moreless manually solving with one unknown variable. The other question is this,
> Then the solution is,
> i*(((17*17797387353769591822856140666864759^(1/2))/4503599627370496000 - 1945982880988654689/22517998136852480000)^2 - 289/2500)^(1/2) + 7744119703248663/18014398509481984
>  7744119703248663/18014398509481984 - i*(((17*17797387353769591822856140666864759^(1/2))/4503599627370496000 - 1945982880988654689/22517998136852480000)^2 - 289/2500)^(1/2)
>  
> Which is supposed to be two simple values but i don't know why matlab format gives me these ridiculous numbers as solutions.
> 
> When I recopy this value , then it will give me simple solutions as 
> 
> ans =
> 
>     0.6716
> 
> 
> ans =
> 
>     0.1882
> 
> Does anyone know matlab command to simply these complex formats? 
> 
> Thanks in advance,
> SongJoo

The 'double' command should do the job.