function out = sumofsquares( a, b ) %{ this function calculates the sum of squares of two numbers. inputs a and b are two numbers. output out is their sum of squares. %} out = a *a + b*b;