Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4638 > unrolled thread

Re: Incompletely simplified Square root.

Started byMurray Eisenberg <murray@math.umass.edu>
First post2011-08-28 08:14 +0000
Last post2011-08-28 08:14 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Incompletely simplified Square root. Murray Eisenberg <murray@math.umass.edu> - 2011-08-28 08:14 +0000

#4638 — Re: Incompletely simplified Square root.

FromMurray Eisenberg <murray@math.umass.edu>
Date2011-08-28 08:14 +0000
SubjectRe: Incompletely simplified Square root.
Message-ID<j3ctd1$5o4$1@smc.vnet.net>
As a general rule (or more-or-less general?), once you apply a thisForm 
kind of function to an object, you have a nice output form, but no 
longer something you can do evaluations with before you gave it the form.

The grandaddy of all examples of this is MatrixForm.

On 8/26/11 5:23 AM, Paul von Hippel wrote:
> PolynomialForm served a useful purpose in an previous step, when the expression was a polynomial. I didn't realize it would remain attached to the expression and cause trouble in this way.
>
>
>
> ________________________________
> From: Andrzej Kozlowski<akoz@mimuw.edu.pl>
> To: paulvonhippel at yahoo<paulvonhippel@yahoo.com>
> Cc: mathgroup@smc.vnet.net
> Sent: Thursday, August 25, 2011 1:47 PM
> Subject: Incompletely simplified Square root.
>
>
>
> On 25 Aug 2011, at 13:04, paulvonhippel at yahoo wrote:
>
>> Can someone tell me why the following input doesn't produce an output
>> of 0.68....?
>> Why is the output under the radical? Thanks!
>>
>> In[574]:= Sqrt[\!\(\*
>> TagBox[
>> FractionBox["926", "2025"],
>> PolynomialForm]\)] // N
>>
>> Out[574]= Sqrt[\!\(\*
>> TagBox["0.45728395061728394`",
>> PolynomialForm]\)]
>>
>
> Because PolynomialForm[926/2025] is not a number so you can't extract a square root of it or even perform any arithmetical operations on it. For example, try
> 1 + PolynomialForm[926/2025].
>
> The same will be true with any other "Forms", e.g.
>
> 1 + InputForm[1]
>
> InputForm[1] + 1
>
> You have obviously misunderstood what these wrappers are. Also, why are you using PolynomialForm in this way, anyway, it's obviously not doing anything useful?
>
> Andrzej Kozlowski
>

-- 
Murray Eisenberg                     murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web