Following code was translated from a snippet matlab code. Without compiling it worked slowly. I want to compile it, but am getting a numerical error. How do I compile this in a correct way?
data = Compile[{},
Table[(1/49 1. x^2 Sqrt[Abs[Abs[x] - 3]/(Abs[x] - 3)] +
1/9 y^2 Sqrt[ Abs[y + (3 Sqrt[33])/7]/(y + (3 Sqrt[33])/7)] -
1) (Abs[x]/2 - 1/112 (3 Sqrt[33] - 7) x^2 - 3 +
Sqrt[1 - (Abs[Abs[x] - 2] - 1)^2] -
y) (9 Sqrt[Abs[(Abs[x] - 1) (Abs[x] - 0.75)]/((1 - Abs[x]) (Abs[x] -
0.75))] - 8 Abs[x] - y) (3 Abs[x] +
0.75 Sqrt[ Abs[(Abs[x] - 0.75) (Abs[x] - 0.5)]/((0.75 - Abs[x]) (Abs[x] -
0.5))] - y) (2.25 Sqrt[ Abs[(x - 0.5) (x + 0.5)]/((0.5 - x)
(x + 0.5))] - y) ((6 Sqrt[10])/ 7 + (1.5 - 0.5 Abs[x]) Sqrt[
Abs[Abs[x] - 1]/(Abs[x] - 1)] -
3/7 Sqrt[10] Sqrt[4 - (Abs[x] - 1)^2] - y),
{y, 4.5, -4.5, -0.041}, {x, -7, 7, 0.041}]
][] // Abs // Log;
ArrayPlot[data]
//Abs//Log
into theCompile
$\endgroup$