c# math functions example