// f06ea Example Program Text // C# version, NAG Copyright 2008 using System; using NagLibrary; using System.Globalization; namespace NagDotNetExamples { public class F06EAE { static void Main(String[] args) { StartExample(); } public static void StartExample() { try { int n = 3; double[] x = { 1, 2, 3}; double[] y = { 1, 2, 3}; int incx = 1; int incy = 1; int ifail ; double return_val; return_val= F06.f06ea(n, x, incx, y, incy, out ifail); Console.WriteLine("Scalar Product of x and y : {0}", return_val); } catch (Exception e) { Console.WriteLine(e.Message); Console.WriteLine("Exception Raised"); } } } }