ru.tunegov.mathematic
Interface ElementSet

All Superinterfaces:
java.lang.Cloneable, java.io.Serializable
All Known Subinterfaces:
MatrixElementSet
All Known Implementing Classes:
Complex, Decimal

public interface ElementSet
extends java.lang.Cloneable, java.io.Serializable

This is a abstract class that represents the mathematical element of a set.

Since:
Mathematic 1.0

Method Summary
 ElementSet abs()
          Returns the absolute value of an element of a set.
 ElementSet add(Complex arg)
          Returns the sum of the given element with argument (result = this + arg).
 ElementSet add(Decimal arg)
          Returns the sum of the given element with argument (result = this + arg).
 ElementSet add(double arg)
          Returns the sum of the given element with argument (result = this + arg).
 ElementSet add(ElementSet arg)
          Returns the sum of the given element with argument (result = this + arg).
 MatrixElementSet add(MatrixElementSet arg)
          Returns the sum of the given element with argument (result = this + arg).
 java.lang.Object clone()
          Return clone of this object.
 ElementSet cos()
          Returns the cosine of given element.
 ElementSet divide(Complex arg)
          Returns the quotient of the given element with argument (result = this / arg).
 ElementSet divide(Decimal arg)
          Returns the quotient of the given element with argument (result = this / arg).
 ElementSet divide(double arg)
          Returns the quotient of the given element with argument (result = this / arg).
 ElementSet divide(ElementSet arg)
          Returns the quotient of the given element with argument (result = this / arg).
 MatrixElementSet divide(MatrixElementSet arg)
          Returns the quotient of the given element with argument (result = this / arg).
 ElementSet divideInverse(Complex arg)
          Returns the quotient of the argument with given element (result = arg / this).
 ElementSet divideInverse(Decimal arg)
          Returns the quotient of the argument with given element (result = arg / this).
 ElementSet divideInverse(double arg)
          Returns the quotient of the argument with given element (result = arg / this).
 MatrixElementSet divideInverse(MatrixElementSet arg)
          Returns the quotient of the argument with given element (result = arg / this).
 ElementSet exp()
          Returns the exponential function raised in a degree equal to the given element.
 ElementSet inverse()
          Returns the inverse value of the given element.
 ElementSet log()
          Returns the logarithm of given element.
 ElementSet multiply(Complex arg)
          Returns the product of the given element with argument (result = this * arg).
 ElementSet multiply(Decimal arg)
          Returns the product of the given element with argument (result = this * arg).
 ElementSet multiply(double arg)
          Returns the product of the given element with argument (result = this * arg).
 ElementSet multiply(ElementSet arg)
          Returns the product of the given element with argument (result = this * arg).
 MatrixElementSet multiply(MatrixElementSet arg)
          Returns the product of the given element with argument (result = this * arg).
 ElementSet negate()
          Returns the element negative given.
 ElementSet pow(double degree)
          Returns the given element raised to n-th degree.
 ElementSet root(int degree)
          Returns the root of n-th degree of given element.
 ElementSet sin()
          Returns the sine of given element.
 ElementSet sqrt()
          Returns the square root of given element.
 ElementSet subtract(Complex arg)
          Returns the difference of the given element with argument (result = this - arg).
 ElementSet subtract(Decimal arg)
          Returns the difference of the given element with argument (result = this - arg).
 ElementSet subtract(double arg)
          Returns the difference of the given element with argument (result = this - arg).
 ElementSet subtract(ElementSet arg)
          Returns the difference of the given element with argument (result = this - arg).
 MatrixElementSet subtract(MatrixElementSet arg)
          Returns the difference of the given element with argument (result = this - arg).
 ElementSet subtractInverse(Complex arg)
          Returns the difference of the argument with given element (result = arg - this).
 ElementSet subtractInverse(Decimal arg)
          Returns the difference of the argument with given element (result = arg - this).
 ElementSet subtractInverse(double arg)
          Returns the difference of the argument with given element (result = arg - this).
 MatrixElementSet subtractInverse(MatrixElementSet arg)
          Returns the difference of the argument with given element (result = arg - this).
 ElementSet tan()
          Returns the tangent of given element.
 java.lang.String toFormattedString(java.text.DecimalFormat df)
          Returns formatted string representing the given element.
 

Method Detail

abs

public ElementSet abs()
Returns the absolute value of an element of a set.
Returns:
The absolute value of an element of a set

add

public ElementSet add(double arg)
Returns the sum of the given element with argument (result = this + arg).
Parameters:
arg - The second argument
Returns:
The sum of the given element with argument

add

public ElementSet add(Complex arg)
Returns the sum of the given element with argument (result = this + arg).
Parameters:
arg - The second argument
Returns:
The sum of the given element with argument

add

public ElementSet add(Decimal arg)
Returns the sum of the given element with argument (result = this + arg).
Parameters:
arg - The second argument
Returns:
The sum of the given element with argument

add

public ElementSet add(ElementSet arg)
Returns the sum of the given element with argument (result = this + arg).
Parameters:
arg - The second argument
Returns:
The sum of the given element with argument

add

public MatrixElementSet add(MatrixElementSet arg)
Returns the sum of the given element with argument (result = this + arg).
Parameters:
arg - The second argument
Returns:
The sum of the given element with argument

clone

public java.lang.Object clone()
Return clone of this object.
Returns:
The clone of this object

cos

public ElementSet cos()
Returns the cosine of given element.
Returns:
The cosine of the given element

divide

public ElementSet divide(double arg)
Returns the quotient of the given element with argument (result = this / arg).
Parameters:
arg - The second argument
Returns:
The quotient of the given element with argument

divide

public ElementSet divide(Complex arg)
Returns the quotient of the given element with argument (result = this / arg).
Parameters:
arg - The second argument
Returns:
The quotient of the given element with argument

divide

public ElementSet divide(Decimal arg)
Returns the quotient of the given element with argument (result = this / arg).
Parameters:
arg - The second argument
Returns:
The quotient of the given element with argument

divide

public ElementSet divide(ElementSet arg)
Returns the quotient of the given element with argument (result = this / arg).
Parameters:
arg - The second argument
Returns:
The quotient of the given element with argument

divide

public MatrixElementSet divide(MatrixElementSet arg)
Returns the quotient of the given element with argument (result = this / arg).
Parameters:
arg - The second argument
Returns:
The quotient of the given element with argument

divideInverse

public ElementSet divideInverse(double arg)
Returns the quotient of the argument with given element (result = arg / this).
Parameters:
arg - The first argument
Returns:
The quotient of the argument with given element

divideInverse

public ElementSet divideInverse(Complex arg)
Returns the quotient of the argument with given element (result = arg / this).
Parameters:
arg - The first argument
Returns:
The quotient of the argument with given element

divideInverse

public ElementSet divideInverse(Decimal arg)
Returns the quotient of the argument with given element (result = arg / this).
Parameters:
arg - The first argument
Returns:
The quotient of the argument with given element

divideInverse

public MatrixElementSet divideInverse(MatrixElementSet arg)
Returns the quotient of the argument with given element (result = arg / this).
Parameters:
arg - The first argument
Returns:
The quotient of the argument with given element

exp

public ElementSet exp()
Returns the exponential function raised in a degree equal to the given element.
Returns:
The exponential function raised in a degree equal to the given element.

inverse

public ElementSet inverse()
Returns the inverse value of the given element.
Returns:
The inverse value of the given element

log

public ElementSet log()
Returns the logarithm of given element.
Returns:
The logarithm of the given element

multiply

public ElementSet multiply(double arg)
Returns the product of the given element with argument (result = this * arg).
Parameters:
arg - The second argument
Returns:
The product of the given element with argument

multiply

public ElementSet multiply(Complex arg)
Returns the product of the given element with argument (result = this * arg).
Parameters:
arg - The second argument
Returns:
The product of the given element with argument

multiply

public ElementSet multiply(Decimal arg)
Returns the product of the given element with argument (result = this * arg).
Parameters:
arg - The second argument
Returns:
The product of the given element with argument

multiply

public ElementSet multiply(ElementSet arg)
Returns the product of the given element with argument (result = this * arg).
Parameters:
arg - The second argument
Returns:
The product of the given element with argument

multiply

public MatrixElementSet multiply(MatrixElementSet arg)
Returns the product of the given element with argument (result = this * arg).
Parameters:
arg - The second argument
Returns:
The product of the given element with argument

negate

public ElementSet negate()
Returns the element negative given.
Returns:
The element negative given

pow

public ElementSet pow(double degree)
Returns the given element raised to n-th degree.
Parameters:
degree - The degree of power
Returns:
The given element raised to n-th degree

root

public ElementSet root(int degree)
Returns the root of n-th degree of given element.
Parameters:
degree - The degree of root
Returns:
The root of n-th degree of the given element

sin

public ElementSet sin()
Returns the sine of given element.
Returns:
The sine of the given element

sqrt

public ElementSet sqrt()
Returns the square root of given element.
Returns:
The square root of the given element

subtract

public ElementSet subtract(double arg)
Returns the difference of the given element with argument (result = this - arg).
Parameters:
arg - The second argument
Returns:
The difference of the given element with argument

subtract

public ElementSet subtract(Complex arg)
Returns the difference of the given element with argument (result = this - arg).
Parameters:
arg - The second argument
Returns:
The difference of the given element with argument

subtract

public ElementSet subtract(Decimal arg)
Returns the difference of the given element with argument (result = this - arg).
Parameters:
arg - The second argument
Returns:
The difference of the given element with argument

subtract

public ElementSet subtract(ElementSet arg)
Returns the difference of the given element with argument (result = this - arg).
Parameters:
arg - The second argument
Returns:
The difference of the given element with argument

subtract

public MatrixElementSet subtract(MatrixElementSet arg)
Returns the difference of the given element with argument (result = this - arg).
Parameters:
arg - The second argument
Returns:
The difference of the given element with argument

subtractInverse

public ElementSet subtractInverse(double arg)
Returns the difference of the argument with given element (result = arg - this).
Parameters:
arg - The first argument
Returns:
The difference of the argument with given element

subtractInverse

public ElementSet subtractInverse(Complex arg)
Returns the difference of the argument with given element (result = arg - this).
Parameters:
arg - The first argument
Returns:
The difference of the argument with given element

subtractInverse

public ElementSet subtractInverse(Decimal arg)
Returns the difference of the argument with given element (result = arg - this).
Parameters:
arg - The first argument
Returns:
The difference of the argument with given element

subtractInverse

public MatrixElementSet subtractInverse(MatrixElementSet arg)
Returns the difference of the argument with given element (result = arg - this).
Parameters:
arg - The first argument
Returns:
The difference of the argument with given element

tan

public ElementSet tan()
Returns the tangent of given element.
Returns:
The tangent of the given element

toFormattedString

public java.lang.String toFormattedString(java.text.DecimalFormat df)
Returns formatted string representing the given element.
Parameters:
df - Formatter
Returns:
The formatted string representing the given element