Files
2025-09-12 18:55:25 +09:00

12 lines
174 B
C++

#include <cmath>
#include "nr.h"
using namespace std;
DP NR::ellf(const DP phi, const DP ak)
{
DP s;
s=sin(phi);
return s*rf(SQR(cos(phi)),(1.0-s*ak)*(1.0+s*ak),1.0);
}