Guest User

Untitled

a guest
Jun 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. fitfunc[v_?NumericQ, r_?NumericQ, x_?NumericQ] :=
  2. y /.
  3. FindRoot[((1/L - (x/k)^2*2.16621*10^-31/L)*
  4. Sqrt[r*y*2*I0/(x*v)]/(BesselJ[0, Sqrt[r*y*2*I0/(x*v)]] -
  5. BesselJ[2, Sqrt[r*y*2*I0/(x*v)]]))^2 + (v*x*
  6. Sqrt[r*y*2*I0/(x*v)]/(k*r)/(BesselJ[0, Sqrt[r*y*2*I0/(x*v)]] +
  7. BesselJ[2, Sqrt[r*y*2*I0/(x*v)]]))^2 == (I0/k)^2, {y, 0.6}];
  8. FindFit[dat, fitfunc[v, r, x], {{v, 0.386*10^-3}, {r, 1.0}}, x]
Add Comment
Please, Sign In to add comment