コード例 #1
0
        /// <summary>
        /// Returns square of three numbers - Mathematically it is denoted as square of (x + y + z)
        /// x, y and z can be same or different integer values e.g. x = 2, y = 3, z = 5 and its square will be 100
        /// </summary>
        /// <param name="x">int value</param>
        /// <param name="y">int value</param>
        /// <param name="z">int value</param>
        /// <returns>long value</returns>

        public long Square(int x, int y, int z)
        {
            Trinomial trinomial = new Trinomial();

            return(trinomial.Square(x, y, z));
        }
コード例 #2
0
        /// <summary>
        /// Returns cube of three numbers - Mathematically it is denoted as cube of (x + y + z)
        /// x, y and z can be same or different integer values e.g. x = 2, y = 3, z = 5 and its cube will be 1000
        /// </summary>
        /// <param name="x">int value</param>
        /// <param name="y">int value</param>
        /// <param name="z">int value</param>
        /// <returns>long value</returns>
        public long Cube(int x, int y, int z)
        {
            Trinomial trinomial = new Trinomial();

            return(trinomial.Cube(x, y, z));
        }