Recent content by MadMax

  1. M

    C/C++ How Can I Speed Up This C++ Program with a Loop Running 10^9 Times?

    Yes it is. ----- Hmm, that's all the questions I have =) Cheers.
  2. M

    C/C++ How Can I Speed Up This C++ Program with a Loop Running 10^9 Times?

    Hmm I'm a slower worker than I made out :P I'll address questions as I read through the posts. How please? I'm using Visual C++. Thanks.
  3. M

    C/C++ How Can I Speed Up This C++ Program with a Loop Running 10^9 Times?

    Thank you very much for all your replies. I asked a friend for some advice, and although I haven't yet digested all the posts in the thread, it seems a lot of the suggestions are new to me. I will implement all the suggestions on Monday and post back with the re-draft. Much appreciated, and...
  4. M

    C/C++ How Can I Speed Up This C++ Program with a Loop Running 10^9 Times?

    OK sorry, I'll try and be clearer. I'm trying to make this program finish more quickly. For this program to give a good result I need the for loop to run at least 10^9 times. Which takes hours... Any way to make this program with n=10^9 finish more quickly?
  5. M

    C/C++ How Can I Speed Up This C++ Program with a Loop Running 10^9 Times?

    EDIT: OK sorry, I'll try and be clearer. I'm trying to make this program finish more quickly. For this program to give a good result I need the for loop to run at least 10^9 times. Which takes hours... Any way to make this program with n=10^9 finish more quickly? # include <cstdlib> #...
  6. M

    Vector Cubed: Understanding the Expansion of (a_x + a_y + a_z)^3

    Having read the new posts and considering it must mean |a|^3. Thank you all very much for your help. :)
  7. M

    Vector Cubed: Understanding the Expansion of (a_x + a_y + a_z)^3

    Quite possibly. I'm basically doing a calculation and checking the result is the same as what somebody else got. We've both been lazy with notation and now I'm confused. Along the way we had somehting like \int d^3 \mathbf{b} f(\mathbf{a},\mathbf{b}). After integration we both got terms with a^3...
  8. M

    Vector Cubed: Understanding the Expansion of (a_x + a_y + a_z)^3

    So if I have \mathbf{a}^3, where a is a vector, the only thing it could mean is |\mathbf{a}|^3?
  9. M

    Vector Cubed: Understanding the Expansion of (a_x + a_y + a_z)^3

    How would you interpret (\mathbf{a}_x + \mathbf{a}_y + \mathbf{a}_z)^3, where \mathbf{a}_l = |a_l| \hat{i}, ?
  10. M

    Vector Cubed: Understanding the Expansion of (a_x + a_y + a_z)^3

    Ok so if I have (a_x + a_y + a_z)^2 I get a_x^2 + a_y^2 + a_z^2 as the answer because the cross terms go to zero. For example a_x . a_y = 0 etc... What if I have (a_x + a_y + a_z)^3 ? Will the answer be a_x^3 + a_y^3 + a_z^3 , or will it be a_x^3 + a_y^3 + a_z^3 + a_x^2 a_y + a_x^2 a_z...
  11. M

    Calculate $\hbar \ln$ Gaussian Path Integral w/Einstein Summation

    It's from a paper: R. Golestanian 2005, Phys. Rev. Lett. 95, 230601 (2005). http://link.aps.org/doi/10.1103/PhysRevLett.95.230601 . It's on the archives too. http://export.arxiv.org/pdf/quant-ph/0701042 . Top of the second page of the letter. Unfortunately the pc I'm using at the moment is...
  12. M

    Solving an Intractable Integral with Mathematica

    Thanks. d\sqrt{p^2+ z^2} means the variable "d" multiplied by the square root of (p^2 + z^2). Also there's something I missed. The power of the (p^2 + z^2) outside the ArcTan should be n/2 not n, where n is any real integer. Hmmm I'm sure it can be done. I've seen the answer to an...
  13. M

    Calculate $\hbar \ln$ Gaussian Path Integral w/Einstein Summation

    Thanks. What kind of things might make s different to r in that way? Perhaps these? "is" is wick rotated frequency; and started out as the Fourier transform of time. r is real space. r is a vector and s is a scalar.
  14. M

    Solving an Intractable Integral with Mathematica

    This is an integral that Mathematica doesn't seem to be able to do. I don't know how to tackle it either. The general form is \int^\infty_{-\infty} dz \arctan [d \sqrt{p^2 + z^2}]e^{-b z^2 - i c z} (p^2 + z^2)^n I've thought about integration by parts, by substitution, contour integration...
Back
Top