ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 26 Oct 2023 17:12:35 +0200Logarithmshttps://ask.sagemath.org/question/74057/logarithms/I know that it is a question already asked but i do not understand why Wolfram alfa is able to transform
$e^{\alpha \log(x) + \beta \log(y)}$ in $x^\alpha y^\beta$ and not SageMath. It seems important that a CAS be able to do this.Thu, 26 Oct 2023 00:10:27 +0200https://ask.sagemath.org/question/74057/logarithms/Comment by Cyrille for <p>I know that it is a question already asked but i do not understand why Wolfram alfa is able to transform
$e^{\alpha \log(x) + \beta \log(y)}$ in $x^\alpha y^\beta$ and not SageMath. It seems important that a CAS be able to do this.</p>
https://ask.sagemath.org/question/74057/logarithms/?comment=74065#post-id-74065see ask.sagemath.org/question/74009/profit-maximisation-with-a-cobb-douglas-function/ but the answer has been given in an addition. But I think it's important to know `canonicalize_radical()` because it it not transparentThu, 26 Oct 2023 17:12:35 +0200https://ask.sagemath.org/question/74057/logarithms/?comment=74065#post-id-74065Comment by Max Alekseyev for <p>I know that it is a question already asked but i do not understand why Wolfram alfa is able to transform
$e^{\alpha \log(x) + \beta \log(y)}$ in $x^\alpha y^\beta$ and not SageMath. It seems important that a CAS be able to do this.</p>
https://ask.sagemath.org/question/74057/logarithms/?comment=74059#post-id-74059Can you provide an actual code illustrating the issue?Thu, 26 Oct 2023 03:01:33 +0200https://ask.sagemath.org/question/74057/logarithms/?comment=74059#post-id-74059Answer by tolga for <p>I know that it is a question already asked but i do not understand why Wolfram alfa is able to transform
$e^{\alpha \log(x) + \beta \log(y)}$ in $x^\alpha y^\beta$ and not SageMath. It seems important that a CAS be able to do this.</p>
https://ask.sagemath.org/question/74057/logarithms/?answer=74060#post-id-74060Try `canonicalize_radical()`:
var('alpha,beta,x,y')
f=exp(alpha*log(x)+beta*log(y))
print(f.canonicalize_radical())Thu, 26 Oct 2023 06:13:16 +0200https://ask.sagemath.org/question/74057/logarithms/?answer=74060#post-id-74060