Ask Your Question
0

Solving equations for the parmaters

asked 2017-04-07 03:39:11 +0100

$$ xe^{-1/y}=0.6$$ and $$xye^{-1}=1.2$$

I am trying to solve this equations for approximate value of the parameters $x$ and $y$ using SageMath. any help would be appreciated.

edit retag flag offensive close merge delete

Comments

What did you try?

vdelecroix gravatar imagevdelecroix ( 2017-04-07 09:06:47 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-04-07 19:20:35 +0100

dan_fulea gravatar image

updated 2017-04-07 19:21:29 +0100

The two equations allow a quick elimination of $x>0$. We can than numerically solve the remaining one equation in the remaining single variable $y$. The following code may help to get the relevant information, adapted to my taste:

sage: f(y) = log(y) +1/y -1 - log(2)
sage: f
y |--> 1/y - log(2) + log(y) - 1
sage: plot( f, 0.2, 0.5 )
Launched png viewer for Graphics object consisting of 1 graphics primitive
sage: find_root( f, 0.2, 0.4 )
0.3733646177016173
sage: gp( "solve( y=0.2, 0.4, %s )" %f(y) )
0.37336461770167408424844843667927059501

(The value for $x$ is easily found from the second equation.)

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-04-07 03:39:11 +0100

Seen: 642 times

Last updated: Apr 07 '17