Example: Nominal Rate

In this example the nominal interest rate is computed given that the effective rate is 6.14% and that the interest has been compounded quarterly.
using System;
using Imsl.Finance;

public class nominalEx1
{
    public static void  Main(String[] args)
    {
        double effectiveRate = .0614;
        int nper = 4;
        
        double nominalRate = Finance.Nominal(effectiveRate, nper);
        Console.Out.WriteLine("The nominal rate of the effective rate,"
                              + "6.14%, \ncompounded quarterly is " +
                              nominalRate.ToString("P"));
    }
}

Output

The nominal rate of the effective rate,6.14%, 
compounded quarterly is 6.00 %

Link to C# source.