import tensorflow as tf

a = tf.constant([[1, 2], [3, 4]])
b = tf.constant([[5, 6], [7, 8]])

print("Addition:\n", tf.add(a, b))
print("Multiplication:\n", tf.multiply(a, b))

print("Reshaped tensor:\n", tf.reshape(a, [4]))

x = tf.constant(10)
y = tf.constant(20)

print("Eager execution result:", x + y)

@tf.function
def add_numbers(x, y):
    return x + y

print("Computation graph result:", add_numbers(x, y))