Hi(adsbygoogle = window.adsbygoogle || []).push({});

I have the following code:

It takes extremely long time for this to finish -- is it just an example, where Mathematica is the wrong tool?Code (Text):

lorentz[A_, Ox_, Oy_, FWHM_, x_] :=

A (1/3.14) FWHM/((x - Ox)^2 + FWHM^2) + Oy;

gauss[A_, Ox_, Oy_, x_, C_] := A Exp[-(x - Ox)^2 C] + Oy;

Convolve[lorentz[1, 0, 0, 1, x], gauss[1, 0, 0, x, 1], x, y]

Best,

Niles.

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica: Convolution between Lorentzian and Gaussian

**Physics Forums | Science Articles, Homework Help, Discussion**