Package com.singularsys.jep.standard

# Class Complex.NonPropagatingImmutableComplex

java.lang.Object
com.singularsys.jep.standard.Complex
com.singularsys.jep.standard.Complex.NonPropagatingImmutableComplex

All Implemented Interfaces:
  `Serializable`

Direct Known Subclasses:
  `ImmutableComplex`

Enclosing class:
  `Complex`

public static class Complex.NonPropagatingImmutableComplex extends Complex
An immutable version of the Complex class. In this class the number cannot be changed, but numbers derived from it can be modified. This is largely done to not break existing code, and is used for the three constants `Complex.ONE`, `Complex.ZERO` and `Complex.I`. Hence `I` cannot be changes but `I.neg()` can be changed. Use `ImmutableComplex` for a version where the results of all operations cannot be changed.

See Also:
  - Serialized Form

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class com.singularsys.jep.standard.Complex

  `Complex.NonPropagatingImmutableComplex`

- ## Field Summary

  ### Fields inherited from class com.singularsys.jep.standard.Complex

  `I, MINUS_I, MINUS_ONE, ONE, ZERO`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NonPropagatingImmutableComplex()`
  `NonPropagatingImmutableComplex(double x)`
  `NonPropagatingImmutableComplex(double x, double y)`
  `NonPropagatingImmutableComplex(Complex z)`
  `NonPropagatingImmutableComplex(Number x)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Complex.NonPropagatingImmutableComplex`
  `polarValueOf(Number r, Number theta)`
  `final void`
  `set(double x, double y)`
  Sets the real and imaginary values of the object.
  `final void`
  `set(Complex z)`
  Copies the values from the parameter object to this object
  `final void`
  `setIm(double y)`
  Sets the imaginary component of the object
  `final void`
  `setRe(double x)`
  Sets the real component of the object

  ### Methods inherited from class com.singularsys.jep.standard.Complex

  `abs, abs2, acos, acosh, add, arg, asin, asinh, atan, atanh, conj, cos, cosh, div, doubleValue, eq, equals, equals, fastPower, floatValue, hashCode, im, intValue, isInfinite, isNaN, log, longValue, mul, mul, neg, power, power, power, powerD, powerI, re, reciprocal, sin, sinh, sqrt, sub, tan, tanh, toString, toString, toString, toString`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### NonPropagatingImmutableComplex

    public NonPropagatingImmutableComplex()

  - ### NonPropagatingImmutableComplex

    public NonPropagatingImmutableComplex(Complex z)

  - ### NonPropagatingImmutableComplex

    public NonPropagatingImmutableComplex(double x, double y)

  - ### NonPropagatingImmutableComplex

    public NonPropagatingImmutableComplex(double x)

  - ### NonPropagatingImmutableComplex

    public NonPropagatingImmutableComplex(Number x)

- ## Method Details

  - ### set

    public final void set(Complex z)
    Description copied from class: `Complex`
    Copies the values from the parameter object to this object
    Overrides:
      `set` in class `Complex`
    Parameters:
      `z` - complex number to copy from

  - ### set

    public final void set(double x, double y)
    Description copied from class: `Complex`
    Sets the real and imaginary values of the object.
    Overrides:
      `set` in class `Complex`
    Parameters:
      `x` - real part
      `y` - imaginary part

  - ### setRe

    public final void setRe(double x)
    Description copied from class: `Complex`
    Sets the real component of the object
    Overrides:
      `setRe` in class `Complex`
    Parameters:
      `x` - real part

  - ### setIm

    public final void setIm(double y)
    Description copied from class: `Complex`
    Sets the imaginary component of the object
    Overrides:
      `setIm` in class `Complex`
    Parameters:
      `y` - imaginary part

  - ### polarValueOf

    public static Complex.NonPropagatingImmutableComplex polarValueOf(Number r, Number theta)