Re: A New User
- To: mathgroup at smc.vnet.net
- Subject: [mg29339] Re: A New User
- From: "Orestis Vantzos" <atelesforos at hotmail.com>
- Date: Thu, 14 Jun 2001 02:27:18 -0400 (EDT)
- Organization: National Technical University of Athens, Greece
- References: <9g74cq$cg1$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Coefficient[(a+b Sqrt[c])(d+e Sqrt[c])^k,Sqrt[c]] will return g I suppose that Simplify should return the simple expression if applied on the product. Orestis "Jim-dars" <jim-dars at mediaone.net> wrote in message news:9g74cq$cg1$1 at smc.vnet.net... > Hi All, > > I have a problem of the form: > > (2+Sqrt(3))*(1+2*Sqrt(3)) > > I would like Mathematica to present the solution in the form (8 + > 5*Sqrt(3)). > > Of course, I realize I can calculate the two components. However, since > this situation occurs repeatedly in a problem I'm solving, it would be very > convenient to have Mathematica display the answer directly. In fact, if > Mathematica could provide me with a=8 and b=5 that would be even better. > > My actual problem is of the form: > > (a+b*Sqrt(c))*(d+e*Sqrt(c))^k = (f+g*Sqrt(c)) > > where a,b,c,d, and e are positive integers. c is not a perfect square, but > may contain a square factor. > k is an integer such that -infinity < k < infinity. It is desired to find > f and g. (Actually, just g.) > > Best wishes, Jim > >