In [1]:
%reload_ext clrmagic

In [2]:
%%CS mypower System.dll
public static double mypower(double x, double y)
{
    if (y == 0) return 1.0 ;
    return System.Math.Pow(x,y) ;
}


Out[2]:
<function clrmagic.create_cs_function.<locals>.<lambda>>

In [3]:
mypower(3.0,3.0)


Out[3]:
27.0

In [ ]: