Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question
0

e(alog(x1)a+b+alog(x1)a+b+alog(x2)a+balog(x3)a+b) does not simplify in sage

asked 4 years ago

EconJohn gravatar image

updated 4 years ago

I'm running the following code in sage but the answer is not simplified all the way:

eq=e^(-a*log(x1)/(a+b)+a*log(x1)/(a+b)+a*log(x2)/(a+b)-a*log(x3)/(a+b))
eq
Out: [e^(a*log(x2)/(a + b) - a*log(x3)/(a + b))]
show(eq)

e(alog(x2)a+balog(x3)a+b)

what I wanted to get is along the lines of (x2x3)1a+b

I've tried using simplify_full() with no success. any help is appreciated.

Preview: (hide)

Comments

Hi @EconJohn I do not see x3 in eq ?

ortollj gravatar imageortollj ( 4 years ago )

@ortollj sorry my bad edited

EconJohn gravatar imageEconJohn ( 4 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 4 years ago

ortollj gravatar image

updated 4 years ago

I propose :

var('a,b,x,x1,x2,x4')
eq=e^(-a*log(x1)/(a+b)+a*log(x1)/(a+b)+a*log(x2)/(a+b)-a*log(x4)/(a+b))
show(eq.simplify_log())

SageMath doc on symbolic expression

but I admit that me too , I am a bit lost in all these different simplifying functions!

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 4 years ago

Seen: 306 times

Last updated: Jul 17 '20