Пример #1
0
        public void ComplexPhaseVerification()
        {
            var c   = new Complex(-1, -.00);
            var phi = Mathh.RadToDeg(c.Phase);

            Console.WriteLine(phi);
        }
Пример #2
0
        /// <summary>
        /// phase interpolation
        /// </summary>
        /// <param name="timesOfPi1"></param>
        /// <param name="timesOfPi2"></param>
        /// <param name="a"></param>
        private void DoPhaseIpol(double timesOfPi1, double timesOfPi2, double a)
        {
            var phi1   = timesOfPi1 * Math.PI;
            var phi2   = timesOfPi2 * Math.PI;
            var phiR   = Mathh.InterpolatePhase(phi1, phi2, a);
            var angle1 = Mathh.RadToDeg(phi1);
            var angle2 = Mathh.RadToDeg(phi2);
            var angleR = Mathh.RadToDeg(phiR);

            Console.WriteLine($"{angle1}->{angle2}({a})={angleR}");
        }
Пример #3
0
 public void Atan2Verification()
 {
     var phi   = Math.Atan2(.5, 1);
     var angle = Mathh.RadToDeg(phi);
 }