Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15845 > unrolled thread
| Started by | Gary Wardall <gwardall@gmail.com> |
|---|---|
| First post | 2011-02-05 10:44 +0000 |
| Last post | 2011-02-05 10:44 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: request help Gary Wardall <gwardall@gmail.com> - 2011-02-05 10:44 +0000
| From | Gary Wardall <gwardall@gmail.com> |
|---|---|
| Date | 2011-02-05 10:44 +0000 |
| Subject | Re: request help |
| Message-ID | <iij9mf$gor$1@smc.vnet.net> |
On Feb 4, 12:43 am, Berihu Teklu <beri...@gmail.com> wrote: > I need to invert a real function of two real variables Dis[r, n] with > respect to the first variable r, while the second variable n is fixed. > The function is rather difficult, that I couldn't invert it. this is > kindly request you to write me any comments on the attached notebook. > > Many thanks for any help, > > Berihu > > Dis[r_, n_] := > 1/4 (2 (-2 + Sqrt[(1 + 2 n)^2]) Log[-2 + Sqrt[(1 + 2 n)^2]] - > 2 (2 + Sqrt[(1 + 2 n)^2]) Log[ > 2 + Sqrt[(1 + 2 n)^2]] - (-2 + > Sqrt[(1 + 2 n)^2 Cosh[2 r]^2]) Log[-2 + > Sqrt[(1 + 2 n)^2 Cosh[2 r]^2]] + (2 + > Sqrt[(1 + 2 n)^2 Cosh[2 r]^2]) Log[ > 2 + Sqrt[(1 + 2 n)^2 Cosh[2 r]^2]] - (-2 + > Sqrt[((1 + 2 n)^2 (1 + 2 n - > 2 Cosh[2 r])^2)/(-2 + (1 + 2 n) Cosh[2 r])^2]) Log[-2= + > Sqrt[((1 + 2 n)^2 (1 + 2 n - > 2 Cosh[2 r])^2)/(-2 + (1 + 2 n) Cosh[2 r])^2]] + (2 + > Sqrt[((1 + 2 n)^2 (1 + 2 n - > 2 Cosh[2 r])^2)/(-2 + (1 + 2 n) Cosh[2 r])^2]) Log[ > 2 + Sqrt[((1 + 2 n)^2 (1 + 2 n - > 2 Cosh[2 r])^2)/(-2 + (1 + 2 n) Cosh[2 r])^2]]) > > Solve[1/4 (2 (-2 + Sqrt[(1 + 2 n)^2]) Log[-2 + Sqrt[(1 + 2 n)^2]] - > 2 (2 + Sqrt[(1 + 2 n)^2]) Log[ > 2 + Sqrt[(1 + 2 n)^2]] - (-2 + > Sqrt[(1 + 2 n)^2 Cosh[2 r]^2]) Log[-2 + > Sqrt[(1 + 2 n)^2 Cosh[2 r]^2]] + (2 + > Sqrt[(1 + 2 n)^2 Cosh[2 r]^2]) Log[ > 2 + Sqrt[(1 + 2 n)^2 Cosh[2 r]^2]] - (-2 + > Sqrt[((1 + 2 n)^2 (1 + 2 n - > 2 Cosh[2 r])^2)/(-2 + (1 + 2 n) Cosh[2 r])^2]) Log= [-2 + > Sqrt[((1 + 2 n)^2 (1 + 2 n - > 2 Cosh[2 r])^2)/(-2 + (1 + 2 n) Cosh[2 r])^2]] + (= 2 + > Sqrt[((1 + 2 n)^2 (1 + 2 n - > 2 Cosh[2 r])^2)/(-2 + (1 + 2 n) Cosh[2 r])^2]) Log= [ > 2 + Sqrt[((1 + 2 n)^2 (1 + 2 n - > 2 Cosh[2 r])^2)/(-2 + (1 + 2 n) Cosh[2 r])^2]]) = == > Dis[r, n], r] Since you can't explicitly solve for r perhaps a numerical method might be of help. For any specific value of n you could try NSolve. Perhaps you could create program to solve a series of equations numerically. Another possibility would be to solve a series of of ODE's. Here's a variation of a problem I worked on earlier today. Given: Sin[x+y+n]+y=x Solve for y. Solution: Let yp be the first derivative of y with respect to x. Then: Cos[x+y+n]*[1+yp]+yp=1 Solving for yp: Cos[x+y+n]+Cos[x+y+n]*yp+yp=1 Cos[x+y+n]+(Cos[x+y+n]+1)*yp=1 (Cos[x+y+n]+1)*yp=1-Cos[x+y+n] yp=(1-Cos[x+y+n])/(Cos[x+y+n]+1) Now find a point on the graph of y, numerically or otherwise: Given particular of x and n find a corresponding value for y. Suppose we have x0,n0, and y0. That is solve for y0 where: Sin[x0+y0+n0]+y=x0 Next solve the a series of ODE's: yp=(1-Cos[x+y+n0])/(Cos[x+y+n0]+1) when y(x0)=y0 and Sin[x0+y0+n0]+y=x0 I hope this will help. Good Luck Gary Wardall
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web