Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11710
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!indigo.octanews.net!news-out.octanews.net!mauve.octanews.net!newspump.sol.net!posts.news.twtelecom.net!nnrp2.twtelecom.net!not-for-mail |
|---|---|
| From | Leon <leon.he88@gmail.com> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Solving this in mathematica? |
| Date | Wed, 12 Sep 2012 07:02:38 +0000 (UTC) |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <k2pc2e$99c$1@smc.vnet.net> (permalink) |
| Lines | 45 |
| Organization | Time-Warner Telecom |
| NNTP-Posting-Date | 12 Sep 2012 07:03:50 GMT |
| NNTP-Posting-Host | 3f15a8cd.news.twtelecom.net |
| X-Trace | DXC=JbIHe08ZA5Wn`k2nf64]0\C_A=>8kQj6];[h;PUXBgbTC_Hc04oek_SEFiONJ7[GoVIY0f0[3HY?^ |
| X-Complaints-To | abuse@twtelecom.net |
| Xref | csiph.com comp.soft-sys.math.mathematica:11710 |
Show key headers only | View raw
I have following code in mathematica:
------------------------------------------------------------
rbar = 0.006236
rt = r_bar
k = 0.95
sigmar = 0.002
betazr = -0.00014
sigmaz = 0.4
pi = 0.99
chi = 0.05
Cbar = -3.7
alpha1[n_] := alpha1[n] = alpha1[n - 1] + alpha2[n - 1]
alpha2[n_] := alpha2[n] = k (alpha2[n - 1])
sigma1sq[n_] :=
sigma1sq[n] = sigma2sq[n - 1] + 2 sigma12[n - 1] + sigmaz^2
sigma12[n_] :=
sigma12[n] = k (sigma12[n - 1]) + k (sigma2sq[n - 1]) + betazr
sigma2sq[n_] := sigma2sq[n] = (k^2) (sigma2sq[n - 1]) + sigmar^2
phi1[n_] := phi1[n] = phi1[n - 1] + phi2[n - 1] + (0.5) (sigmaz^2)
phi2[n_] := phi2[n] = k (phi2[n - 1]) + (1 - k) (rbar)
psi[n_] := psi[n] = phi1[n] - (0.5) (sigma1sq[n])
alpha1[0] = 0
alpha2[0] = 1
sigma1sq[0] = 0
sigma12[0] = 0
sigma2sq[0] = 0
phi1[0] = 0
phi2[0] = 0
B[h_, r_] := Exp[(-alpha1[h]) (r) - psi[h]]
Exp[Cbar - beta] Sum[(Pi^x) B[x, r], {x, 1, 1000}]
----------------------------------------------------------------------
and I am wondering if it is possible to solve the last line such that I have "r" as a function of "beta", satisfying
Exp[Cbar - beta] Sum[(Pi^x) B[x, r], {x, 1, 1000}] = 1
Because ultimately, I would need to integrate a function J[r] over "beta", so if I don't have "r" as a function of "beta", I don't know how to do the integration of J[r].
Thank you!! L.
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
Solving this in mathematica? Leon <leon.he88@gmail.com> - 2012-09-12 07:02 +0000 Re: Solving this in mathematica? Scott Hemphill <hemphill@hemphills.net> - 2012-09-13 07:43 +0000
csiph-web