From: Stavros M. (Σ. Μ. <mac...@al...> - 2017-11-21 16:40:40
|
How about subst(myexp,"^",expr)? (with opsubst:true, the default) Then define myexp as a function or macro in your target environment. Or subst(lambda([a,b],exp(b*log(a))),"^",expr)? But in that case, integer powers still simplify back to the x^2 form. On Tue, Nov 21, 2017 at 8:55 AM, Gunter Königsmann <gu...@pe...> wrote: > Dear all, > > Sorry for having to ask a very basic question: > > Some programming language don't provide an a^b command, but only exp(x) > and log(x). > > Does maxima provide a function that converts expressions between these > two forms? I was convinced that it is exponentialize. But this doesn't > seem to be the case. > > Thanks a lot, > > and kind regards, > > Gunter. > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Maxima-discuss mailing list > Max...@li... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss > |