Recent content by Inquisitus

  1. I

    Solving Gaussian Integration: 0.513e-5i Wrong Answer?

    Right, I get it now. The reason this only works for special cases like [0,∞) is that the area beneath the curve in Cartesian coordinates happens to be equal to the area enclosed by the curve in polar coordinates. However, for an arbitrary interval [a,b], this isn't necessarily the case. Thanks...
  2. I

    Solving Gaussian Integration: 0.513e-5i Wrong Answer?

    I guess it might not be, but even if it's not, I'd still be interested to know why my technique isn't valid. Word 2007. I rather like the equation editor it has :redface:
  3. I

    Solving Gaussian Integration: 0.513e-5i Wrong Answer?

    That's one of the things I was considering, but by my understanding of the technique, you choose the dummy variable y to be the actual function that you're integrating, as this means that the polar coordinate system you transform to will correspond directly to Cartesian system that the function...
  4. I

    Solving Gaussian Integration: 0.513e-5i Wrong Answer?

    Whoops, I meant to put β = -6.4e-6 in my first post. That's what I used in the calculation, though, and it still gives me an imaginary number. Basically the minus sign that's normally in front of the x² in a Gaussian distribution is contained in β (to make the algebra simpler).
  5. I

    Solving Gaussian Integration: 0.513e-5i Wrong Answer?

    I'm trying to integrate the Gaussian distribution between arbitrary limits, but I'm not having a lot of luck. As far as I can see I've done it right, but the answer I get is imaginary, which is obviously wrong, since it's supposed to represent a probability :confused: Homework Statement a =...
  6. I

    C/C++ Can Array Overruns Lead to Catastrophic Failures?

    Yes it does. Bounds checking means that array access attempts are checked at runtime to make sure an access to a memory location outside the array's bounds doesn't occur. If such an access is attempted, a runtime error will occur (specifically, an [FONT="Courier New"]IndexOutOfRangeException...
  7. I

    [Special Relativity] Energy-momentum invariant question

    Well the question asked what the fractional change in the systems total energy is upon the particle's collision; it was just a type in my post. The question, everything I've learnt, my solution to the problem, and my lecturer all say that this is possible :confused:
  8. I

    [Special Relativity] Energy-momentum invariant question

    Whoops, I actually meant total energies rather than kinetic energies, sorry :smile: I'll see my lecturer tomorrow and see what he says. Thanks for the help!
  9. I

    How to Assign Inputs as Addresses in C Programming?

    You're assigning to [FONT="Courier New"]pArray and then assigning to it again without using the value you first assigned to it. Furthermore, you're using [FONT="Courier New"]n before it's been initialised, which you should never do. There are two ways of doing this. You could either assign them...
  10. I

    C/C++ Can Array Overruns Lead to Catastrophic Failures?

    There's a world of difference between C/C++ and Java/C#, though :wink:
  11. I

    [Special Relativity] Energy-momentum invariant question

    I was just wondering why what I've done in a spec rel question is wrong. Homework Statement A particle of mass m is traveling at 0.8c with respect to the lab frame towards an identical particle that is stationary with respect to the lab frame. If the particles undergo an inelastic collision...
  12. I

    How Do You Calculate the Coordinates of a Point Based on Distance and Gradient?

    Not actually homework, but just a general query... I'm trying to write a program that will predict the trajectory of a moving point by analysing several positions through which the point has passed. Part of this involves finding the coordiantes of a point B, given the coordinates of another...
Back
Top