Sharp EL-W506T vs. Sharp EL-W516T
|
01-30-2020, 02:44 PM
(This post was last modified: 01-30-2020 02:45 PM by Albert Chan.)
Post: #32
|
|||
|
|||
RE: Sharp EL-W506T vs. Sharp EL-W516T
(11-20-2019 12:25 AM)Mjim Wrote: I tried breaking up the integral and managed to get a better result on the Sharp using the default sample rate of n=100: Of course, easiest way is ∫ C/r^2 dr = -C/r + constant With C=3.98589196e+17, and dr integral limit, a=6.371e6, b=9.4607304725808e+15 ∫ (C/r^2 dr, r=a to b) = (-C/b) - (-C/a) ≈ 62563050656 Simpson's rule using your idea, we can automate it: r = e^x → dr = e^x dx ∫ C/r^2 dr = ∫ C/e^x dx dx integral (evenly spaced points) = dr integral (exponential scaled points). Code: n Simpson's rule: ∫ C/e^x dx, x = log(a) to log(b) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 18 Guest(s)