<filename>chebpy/trig/mean.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec  2 11:28:26 2020

Copyright 2020 by <NAME>.
"""
def mean(F):
    """Return the mean of the Fourier series with coefficients F."""
    n = len(F)
    mu = F[int(n/2)]
    return mu
<filename>chebpy/trig/mean.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec  2 11:28:26 2020

Copyright 2020 by <NAME>.
"""
def mean(F):
    """Return the mean of the Fourier series with coefficients F."""
    n = len(F)
    mu = F[int(n/2)]
    return mu
#!/usr/bin/env python3 # -*- coding: utf-8 -*- Created on Wed Dec  2 11:28:26 2020  Copyright 2020 by <NAME>. Return the mean of the Fourier series with coefficients F.