# | Line 44 | Line 44 | double SHFunc::LegendreP (int l, int m, double x) { | |
---|---|---|
44 | double SHFunc::LegendreP (int l, int m, double x) { | |
45 | // check parameters | |
46 | if (m < 0 || m > l || fabs(x) > 1.0) { | |
47 | < | printf("LegendreP got a bad argument\n"); |
47 | > | printf("LegendreP got a bad argument: l = %d\tm = %d\tx = %lf\n", l, m, x); |
48 | return NAN; | |
49 | } | |
50 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |