Recent content by lycraa

  1. L

    How to Calculate Average Atom Separation in the Sun's Core?

    well, for NON ionized hydrogen, you would have only one electron. meaning that the number density would be the same as the electron density. So would i be right in saying then, that if the average separation i found using the electron density equals 2* bohr radius, i would have mostly non...
  2. L

    How to Calculate Average Atom Separation in the Sun's Core?

    Homework Statement in part 1 i used the Saha equation to calculate that the hydrogen in the center of the sun was fully ionized (given temperature and central electron density). part 2 says: Re-examine the result by computing the average separation of atoms at the center of the sun knowing...
  3. L

    Can a Worm Ever Reach the End of a Continuously Stretching Rope?

    is there a way do make a floating point number only display to a certain decimal place in java? I am sure there is but i have no idea how.
  4. L

    Can a Worm Ever Reach the End of a Continuously Stretching Rope?

    woops, yes that's right, i ran it with a floating point number
  5. L

    Can a Worm Ever Reach the End of a Continuously Stretching Rope?

    bingo! You got it :) I ran it with int instead of int and it worked beautifully. I ended up with 26.4 million days, which is what i was expecting. its my first time dealing with the long variable, I'm not sure why i didn't pick up on that. Sorry about the code, its my first time posting code...
  6. L

    Can a Worm Ever Reach the End of a Continuously Stretching Rope?

    i think thers a problem with my inner while loop. It i break it down to just: public class Worm2 { public static void main(String[] arg) { long day, distance, length, n, j, i; day = 1; length = 100; distancefrend = 0; n = 1; j = 0; i = 0...
  7. L

    Can a Worm Ever Reach the End of a Continuously Stretching Rope?

    this is exactly right, and a much better way of describing it.
  8. L

    Can a Worm Ever Reach the End of a Continuously Stretching Rope?

    put it this way: the rope starts at 100 meters on day = 0, and the ant is at x = xo over night the rope stretches to 200 meters,, so on day 2, the rope is 200m and in the morning the ant walks 6 meters along the rope so x = 6m. over night the rope is stretched another 100m BUT the ant's...
  9. L

    Can a Worm Ever Reach the End of a Continuously Stretching Rope?

    Homework Statement Write a Java program to solve the following problem. An elastic rope starts out with length 100 meters. The start of the rope is fixed to a pole and a worm is placed on the rope at the start and the worm starts crawling towards the end. Each day the worm crawls 6 meters...
  10. L

    Solved it Myself to Self-Help Problem Solving

    figured it out myself, thanks
  11. L

    How to Determine the Fourier Series for f(x)=cos3x

    have i done the integration wrong here?I feel liek i must have sense i don't really know how i would go about integrating cos3x sin(nx) OR cos3x cos(nx)
  12. L

    How to Determine the Fourier Series for f(x)=cos3x

    Homework Statement determine the Fourier Series for f(x)=cos3x Homework Equations f(x)=ao/2+(sum) an cos(nx)+ (sum) bncos(nx) ao= (integral) f(x)dx (from -\pi to\pi) an= (integral) f(x)cos(nx)dx (from -\pi to\pi) bn= (integral) f(x)sin(nx)dx (from -\pi to\pi) The Attempt at a Solution i...
  13. L

    Determining Legendre derivitives

    Determining Legendre derivitives Homework Statement if i need to find the derivative of the first Legendre polynomial, P1(cos\Theta) can i sub in cos\Theta for x in P1(x) = x? Homework Equations The Attempt at a Solution if that's the case the derivitive is just -sin(\Theta), which...
  14. L

    Spherical bessel functunction help

    Homework Statement i need to derive the recurrence relations for the spherical Bessel function. i got jn-1(x)+jn+1(x)=(2n+1)/x jn(x) but i can't get njn-1(x)-(n+1)jn+1(x)=(2n+1) j'n(x). i know i have to use jn(x)=(pi/2x)1/2Jn+1/2(x) and the recurrence relations for regular bessel functions...
Back
Top