From: Fritz S. <son...@gm...> - 2023-10-21 18:40:55
|
OK---this works line-by-line. But either I don't see a way of setting this globally--or it cannot be set as such: (%i2) c1:(2*ω)^(1/2); (%o2) sqrt(2)*sqrt(ω) (%i3) c2:rootscontract( (Ω*2*ω*3)^(1/2) ); (%o3) sqrt(6*Ω*ω) (%i5) rootsconmode: true; (%o5) true (%i8) (Ω*2*ω*3)^(1/2); (%o8) sqrt(6)*sqrt(Ω*ω) Possibly I am expecting Maxima to do things it was not intended for. I am trying to write out messy algebraic constructs in the way I (and many others) would do them on pencil and paper. Thus if I see square roots of several variables--my inclination would be to place them under one root. There are exceptions of course. Thanks Fritz On Sat, Oct 21, 2023 at 1:04 PM Barton Willis <wi...@un...> wrote: > > > I agree with the recommendations of Richard. But for this case, *rootscontract > * “simplifies” the expression > > > > (%i23) sqrt(2)*sqrt(ω); > > (%o23) sqrt(2)*sqrt(ω) > > > > (%i24) rootscontract(%); > > (%o24) sqrt(2*ω) > > > > Likely, subsequent calculations will revert this “simplification.” > > > > There are some option variables that modify the way *rootscontract* > works; to see these options, enter ?rootscontract. > > > > > > > > > > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows > > > > *From: *Richard Fateman <fa...@gm...> > *Sent: *Saturday, October 21, 2023 10:51 AM > *To: *Fritz Sonnichsen <son...@gm...> > *Cc: *<max...@li...> > <max...@li...> > *Subject: *Re: [Maxima-discuss] Combining functions under square root > > > > Non-NU Email > > Maxima generally has its own notion of what is simple. This can be > modified in a number of ways by > > calling programs like ratsimp or factor. It can also be modified by > setting some global flags. If your > > goal is to get Maxima to produce exactly the form you have in mind, you > may be lucky or you may > > have a special requirement not easy to satisfy. My recommendation is to > do the calculations of > > interest using as much built-in algebraic manipulation and formatting as > possible. > > Try to get personally comfortable with this. Realize that there are many > contexts for mathematics > > and they each can have their own conventions. > > > > You may also find it possible to rename pieces. thus ratsubst(root2w, > sqrt(2*w), sqrt(2*w)) returns root2w. > > > > If you want to have the result typeset in a particular form, try > outputting to TeX, and edit the TeX. > > > > See if you can explain possible reasons for different ordering conventions > in well-known formulas like > > v=a*t, but f=m*a. or e=m*c^2. > > > > RJF > > > > > > On Sat, Oct 21, 2023 at 8:44 AM Fritz Sonnichsen <son...@gm...> > wrote: > > I am using maxima to simplify messy expressions- reducing derivatives, > combining terms and so forth. > > If you send the following to wxMaxima the resulting square roots are > broken up: > > (%i8) c1:(2*ω)^(1/2); > (%o8) sqrt(2)*sqrt(ω) > (%i13) combine( (2*ω)^(1/2) ); > (%o13) sqrt(2)*sqrt(ω) > > > > I would have hoped for something like: sqrt(2* ω) > > > > I could not find anything to do this in the documents..Is there some > command or other method to cause a combination of such variables? > > > > Thank you > > Fritz > > > > > > _______________________________________________ > Maxima-discuss mailing list > Max...@li... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss > <https://urldefense.com/v3/__https:/lists.sourceforge.net/lists/listinfo/maxima-discuss__;!!PvXuogZ4sRB2p-tU!FTD_thKtjd7_fZC7sD8Wa_-5LbyJDnLLku3oFE32XEcPWRwtv8HIVS4Vm1UdvF2avSyBpaol6-zyAQ$> > > > |