Example usage for org.apache.commons.math.complex Complex getArgument

List of usage examples for org.apache.commons.math.complex Complex getArgument

Introduction

In this page you can find the example usage for org.apache.commons.math.complex Complex getArgument.

Prototype

public double getArgument() 

Source Link

Document

Compute the argument of this complex number.

Usage

From source file:BackEnd.FazorVektor.java

public double getComplex_rms_Angle() {

    double Real = Math.sqrt(
            Math.pow(this.X.getReal(), 2) + Math.pow(this.Y.getReal(), 2) + Math.pow(this.Z.getReal(), 2));
    double Image = Math.sqrt(Math.pow(this.X.getImaginary(), 2) + Math.pow(this.Y.getImaginary(), 2)
            + Math.pow(this.Z.getImaginary(), 2));

    Complex cislo = new Complex(Real, Image);
    return cislo.getArgument();
}