2
我有以下方法:幫助lambda表達式
static double NewtonMethodModified(Func<double, double> f, double x0, double h) { ... }
現在,我想知道如何調用它的方式如下:
NewtonMethodModified(<lambda expression here>, 1.0, 1.0);
我猜這應該是像
NewtonMethodModified(x => 10x-5, 1.0, 1.0);
但它似乎並沒有工作。