24
votes
4answers
804 views

Compiling more functions that don't call MainEvaluate

I would like to use Compile with functions defined outside Compile. For example if I have the two basic functions F and G F[x_] := x + 2 G[x_] := x And I want ...
11
votes
2answers
411 views

How can I compile this function

I want to simplify my function f1 to f2, but f2 can't be compiled. How can I make it ...