#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep  9 13:36:46 2018

@author: raunak
"""
from math import *

def polysum(n,s):
    '''
    input:n,number of sides;s,side-length
    returns sum of the AREA and square of perimeter of regular 
    polygon
    '''
    perimeter = n*s
    square = ((0.25*n*(s**2))/tan(pi/n))
    
    return round(square,4)+(perimeter**2)
74c2e22ca4926041a4ad53aba50164db67f653e0
<mask token>

<mask token>


def polysum(n, s):
    """
    input:n,number of sides;s,side-length
    returns sum of the AREA and square of perimeter of regular 
    polygon
    """
    perimeter = n * s
    square = 0.25 * n * s ** 2 / tan(pi / n)
    return round(square, 4) + perimeter ** 2

<mask token>
from math import *


def polysum(n, s):
    """
    input:n,number of sides;s,side-length
    returns sum of the AREA and square of perimeter of regular 
    polygon
    """
    perimeter = n * s
    square = 0.25 * n * s ** 2 / tan(pi / n)
    return round(square, 4) + perimeter ** 2

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep  9 13:36:46 2018

@author: raunak
"""
from math import *

def polysum(n,s):
    '''
    input:n,number of sides;s,side-length
    returns sum of the AREA and square of perimeter of regular 
    polygon
    '''
    perimeter = n*s
    square = ((0.25*n*(s**2))/tan(pi/n))
    
    return round(square,4)+(perimeter**2)