#!/usr/bin/env python

import myext
import numpy as np

# Test 1: calculate the sum of two arrays
a = np.array([1.0, 2.0, 3.0], dtype=np.float64)
b = np.array([4.0, 5.0, 6.0], dtype=np.float64)
result = myext.add_arrays(a, b)
print("Result of add_arrays:", result)

# Test 2: calculate the variance of an array
c = np.array([1.0, 2.0, 3.0, 4.0, 5.0], dtype=np.float64)
variance = myext.variance(c)
print("Variance of array c:", variance)