how to solve: exp(x)+exp(1/2*x) == 2?

i like this post (click again to cancel)
0
i dont like this post (click again to cancel)
sage: assume(x,'real')
sage: solve(exp(x)+exp(-1/2*x) == 2,x)
[x == 2*log(1/2*sqrt(5) - 1/2), x == 0]

that ist ok!

how can i get here the solution x==0?

sage: solve(exp(x)+exp(1/2*x) == 2,x)
[e^x == -e^(1/2*x) + 2]

Thanks for help.

asked Jul 25 '12

amalea gravatar image amalea
71 5 8

updated Jul 25 '12

benjaminfjones gravatar image benjaminfjones
2500 3 34 66
http://bfj7.com/

2 Answers:

i like this answer (click again to cancel)
1
i dont like this answer (click again to cancel)
sage: solve(exp(x)+exp(1/2*x)==2,x,to_poly_solve=True) 
[x == 2*I*pi + 4*I*pi*z36 + 2*log(2), x == 4*I*pi*z38]

For z38=0, x=0

(Wolframalpha gives the same solution)

link

posted Jul 25 '12

achrzesz gravatar image achrzesz
1661 4 16 36

Also see http://trac.sagemath.org/sage_trac/ticket/10444, which should be in Sage 5.3, for more obvious documentation of this option!

kcrisman (Jul 25 '12)
i like this answer (click again to cancel)
0
i dont like this answer (click again to cancel)
sage:  l=e^(1/2*x)+e^x
sage: var('u')
u
sage: lu=l.subs(x=2*log(u))
sage: assume(u>0)
sage: solve(lu==2,u)
[u == 1]
sage: 2*log(1)
0
link

posted Jul 25 '12

achrzesz gravatar image achrzesz
1661 4 16 36

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Tags:

Stats:

Asked: Jul 25 '12

Seen: 272 times

Last updated: Jul 25 '12

powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.