#include using namespace std; using ll = long long; using ld = long double; #define fi first #define se second #define pb push_back const ld pi=3.141592653589793; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n; ll l; cin>>n>>l; ll t[n]; ld tsin[n],tcos[n],tsinsum[n+1],tcossum[n+1],p; tsinsum[0]=0,tcossum[0]=0; for(int i=0;i>t[i]; p=2*t[i]; p*=pi; p/=l; tsin[i]=sin(p),tcos[i]=cos(p); tsinsum[i+1]=tsinsum[i]+tsin[i]; tcossum[i+1]=tcossum[i]+tcos[i]; } ld sinsum=0,cossum=0; for(int i=1;i