From: Chad on
When I execute the command below I get the 'long' format
for the number .5 in the solution as seen. I am executing
the solve through the command window and even though I've
set the preferences to 'short', I still get this format.
I can't figure out why. Its just annoying but I'd really
like to know how to fix it. Thanks for the input. I
can't figure out any other preference files to change and
I'm hoping this will be obvious to someone with
experience. If it matters, I'm running R14sp3 on a Lenovo
laptop running XP.

>> solve('t = 2/(4*a*c-b^2)^.5 * atan((2*a*x+b)/(4*a*c-b^2)
^.5)','x')

ans =

-.50000000000000000000000000000000*(b-1.*tan
(.50000000000000000000000000000000*t*(4.*a*c-1.*b^2)^(1/2))
*(4.*a*c-1.*b^2)^(1/2))/a
From: Walter Roberson on
In article <fvqopr$i9m$1(a)fred.mathworks.com>,
Chad <chad.briscoe(a)ihatespammdsinc.com> wrote:
>When I execute the command below I get the 'long' format
>for the number .5 in the solution as seen. I am executing
>the solve through the command window and even though I've
>set the preferences to 'short', I still get this format.
>I can't figure out why. Its just annoying but I'd really
>like to know how to fix it. Thanks for the input. I
>can't figure out any other preference files to change and
>I'm hoping this will be obvious to someone with
>experience. If it matters, I'm running R14sp3 on a Lenovo
>laptop running XP.

>>> solve('t = 2/(4*a*c-b^2)^.5 * atan((2*a*x+b)/(4*a*c-b^2)
>^.5)','x')

>ans =

>-.50000000000000000000000000000000*(b-1.*tan
>(.50000000000000000000000000000000*t*(4.*a*c-1.*b^2)^(1/2))
>*(4.*a*c-1.*b^2)^(1/2))/a

The response you are getting is a string: those are real
characters '0' in the answer, not just printouts of numbers.

The number of decimal places shown corresponds to number of decimal
places of arithmetic that the solve was evaluated with.
You can adjust the number of digits using digits(). If you've already
done a computation and you change digits() afterwards, you can call
vpa() on the string to have to processed with the new number of digits.

--
amazon.com's top 8 books about "walter" are Kotzwinkle/ Gundy/ Colman's
"Walter the Farting Dog"