Skip to content

Tag Archives: Ruby Complex-class

Complex#+() : +() is a Complex class method which performs the addition operation.   Syntax: Complex.+()Parameter: Complex valuesReturn: Addition Operation on complex values. Example #1 :  … Read More
Complex#-@() is a Complex class method which returns negation of complex values. Syntax: Complex.-@() Parameter: Complex values Return: negation of complex values. Example #1 :… Read More
Complex#-() is a Complex class method which performs the subtraction operation on complex numbers. Syntax: Complex.-() Parameter: Complex values Return: subtraction operation on complex numbers.… Read More
Complex#**() is a Complex class method which returns the exponentiation value of a complex value.  Syntax: Complex.**()Parameter: Complex valuesReturn: exponentiation value of a complex value.… Read More
Complex#*() is a Complex class method which returns the multiplicative product of two complex values. Syntax: Complex.*() Parameter: Complex values Return: multiplicative product of two… Read More
Complex#+@() : +@() is a Complex class method which returns the positive value for a complex value i.e. a = +(a) Syntax: Complex.+() Parameter: Complex… Read More
Complex#/() is a Complex class method which returns the division value on two complex numbers. Syntax: Complex./() Parameter: Complex values Return: division value on two… Read More
Complex#==() is a Complex class method which checks whether two complex values are equal. Syntax: Complex.==() Parameter: Complex values Return: true – if a ==… Read More
Complex#abs() is a Complex class method which returns the absolute value of the polar form of complex value. Syntax: Complex.abs() Parameter: Complex values Return: absolute… Read More
Complex#abs2() is a Complex class method which returns the square of absolute value of the polar form of complex value. Syntax: Complex.abs2() Parameter: Complex values… Read More
Complex#denominator() : denominator() is a Complex class method which returns the denominator of the complex value. Syntax: Complex.denominator() Parameter: Complex values Return: denominator of the… Read More
Complex#conj() is a Complex class method which returns the conjugate part of the polar form of complex value. Syntax: Complex.conj() Parameter: Complex values Return: conjugate… Read More
Complex#conjugate() is a Complex class method which returns the conjugate part of complex value. Syntax: Complex.conjugate() Parameter: Complex values Return: conjugate part of complex value.… Read More
Complex#arg() is a Complex class method which returns the angle part of the polar form of complex value. Syntax: Complex.arg() Parameter: Complex values Return: angle… Read More
Complex#angle() : angle() is a Complex class method which returns the angle part of the polar form of complex value. Syntax: Complex.angle() Parameter: Complex values… Read More