Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

## Re: [Maxima-discuss] Simplify sqrt expression

 Re: [Maxima-discuss] Simplify sqrt expression From: Raymond Toy - 2014-08-11 16:09:39 ```>>>>> "Aleksas" == Aleksas Domarkas writes: Aleksas> From: Raymond Toy - 2014-08-10 06:00:50 Aleksas> tray rootscontract Aleksas> (%i1) sqrt(sqrt(2) + 1)*sqrt(sqrt(2) - 1); Aleksas> (%o1) sqrt(sqrt(2)-1)*sqrt(sqrt(2)+1) Aleksas> (%i2) rootscontract(%); Aleksas> (%o2) 1 How silly of me! I had completely forgotten about rootscontract. Thanks! -- Ray ```

 [Maxima-discuss] Simplify sqrt expression From: Raymond Toy - 2014-08-10 06:00:50 ```How can I get maxima to simplify sqrt(sqrt(2) + 1)*sqrt(sqrt(2) - 1) ratsimp, radcan, sqrtdenest, various values of radexpand etc. just returns the expression. But if you write the expression as just one equivalent sqrt: sqrt((sqrt(2) + 1)*(sqrt(2) - 1)) Maxima simplifies this to 1: radexpand:false; sqrt((sqrt(2) + 1)*(sqrt(2) - 1)) expand(%); Is there some way to get maxima to do this? -- Ray ```
 [Maxima-discuss] Simplify sqrt expression From: Aleksas Domarkas - 2014-08-10 07:39:44 Attachments: Message as HTML ```> > > From: Raymond Toy - 2014-08-10 06:00:50 > How can I get maxima to simplify > > sqrt(sqrt(2) + 1)*sqrt(sqrt(2) - 1) > > ratsimp, radcan, sqrtdenest, various values of radexpand etc. just > returns the expression. > > But if you write the expression as just one equivalent sqrt: > > sqrt((sqrt(2) + 1)*(sqrt(2) - 1)) > > Maxima simplifies this to 1: > > radexpand:false; > sqrt((sqrt(2) + 1)*(sqrt(2) - 1)) > expand(%); > > Is there some way to get maxima to do this? > > -- > Ray > tray rootscontract (%i1) sqrt(sqrt(2) + 1)*sqrt(sqrt(2) - 1); (%o1) sqrt(sqrt(2)-1)*sqrt(sqrt(2)+1) (%i2) rootscontract(%); (%o2) 1 best Aleksas D ```
 Re: [Maxima-discuss] Simplify sqrt expression From: Raymond Toy - 2014-08-11 16:09:39 ```>>>>> "Aleksas" == Aleksas Domarkas writes: Aleksas> From: Raymond Toy - 2014-08-10 06:00:50 Aleksas> tray rootscontract Aleksas> (%i1) sqrt(sqrt(2) + 1)*sqrt(sqrt(2) - 1); Aleksas> (%o1) sqrt(sqrt(2)-1)*sqrt(sqrt(2)+1) Aleksas> (%i2) rootscontract(%); Aleksas> (%o2) 1 How silly of me! I had completely forgotten about rootscontract. Thanks! -- Ray ```
 Re: [Maxima-discuss] Simplify sqrt expression From: Stavros Macrakis (Σταῦρος Μακράκης) - 2014-08-11 17:21:20 Attachments: Message as HTML ```And don't forget rootsconmode when necessary: rootscontract( (sqrt(2)-1)^(1/3)*sqrt(sqrt(2)+1) ), rootsconmode:all => (sqrt(2)+1)^(1/6) On Mon, Aug 11, 2014 at 12:09 PM, Raymond Toy wrote: > >>>>> "Aleksas" == Aleksas Domarkas writes: > > Aleksas> From: Raymond Toy - 2014-08-10 06:00:50 > > Aleksas> tray rootscontract > > > > Aleksas> (%i1) sqrt(sqrt(2) + 1)*sqrt(sqrt(2) - 1); > Aleksas> (%o1) sqrt(sqrt(2)-1)*sqrt(sqrt(2)+1) > Aleksas> (%i2) rootscontract(%); > Aleksas> (%o2) 1 > > How silly of me! I had completely forgotten about rootscontract. > > Thanks! > > -- > Ray > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Maxima-discuss mailing list > Maxima-discuss@... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss > ```
 [Maxima-discuss] Simplify sqrt expression From: Aleksas Domarkas - 2014-08-10 07:39:42 Attachments: Message as HTML ```> > > From: Raymond Toy - 2014-08-10 06:00:50 > How can I get maxima to simplify > > sqrt(sqrt(2) + 1)*sqrt(sqrt(2) - 1) > > ratsimp, radcan, sqrtdenest, various values of radexpand etc. just > returns the expression. > > But if you write the expression as just one equivalent sqrt: > > sqrt((sqrt(2) + 1)*(sqrt(2) - 1)) > > Maxima simplifies this to 1: > > radexpand:false; > sqrt((sqrt(2) + 1)*(sqrt(2) - 1)) > expand(%); > > Is there some way to get maxima to do this? > > -- > Ray > tray rootscontract (%i1) sqrt(sqrt(2) + 1)*sqrt(sqrt(2) - 1); (%o1) sqrt(sqrt(2)-1)*sqrt(sqrt(2)+1) (%i2) rootscontract(%); (%o2) 1 best Aleksas D ```