Theta.java

  1. /*
  2.  * Licensed to the Hipparchus project under one or more
  3.  * contributor license agreements.  See the NOTICE file distributed with
  4.  * this work for additional information regarding copyright ownership.
  5.  * The Hipparchus project licenses this file to You under the Apache License, Version 2.0
  6.  * (the "License"); you may not use this file except in compliance with
  7.  * the License.  You may obtain a copy of the License at
  8.  *
  9.  *      https://www.apache.org/licenses/LICENSE-2.0
  10.  *
  11.  * Unless required by applicable law or agreed to in writing, software
  12.  * distributed under the License is distributed on an "AS IS" BASIS,
  13.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.  * See the License for the specific language governing permissions and
  15.  * limitations under the License.
  16.  */
  17. package org.hipparchus.special.elliptic.jacobi;

  18. import org.hipparchus.complex.Complex;

  19. /** Values of {@link JacobiTheta Jacobi theta} functions.
  20.  * <p>
  21.  * This is a container for the four Jacobi theta functions
  22.  * θ₁(z|τ), θ₂(z|τ), θ₃(z|τ), and θ₄(z|τ).
  23.  * </p>
  24.  * @see JacobiTheta
  25.  * @since 2.0
  26.  */
  27. public class Theta {

  28.     /** Value of the θ₁(z|τ) function. */
  29.     private final Complex theta1;

  30.     /** Value of the θ₂(z|τ) function. */
  31.     private final Complex theta2;

  32.     /** Value of the θ₃(z|τ) function. */
  33.     private final Complex theta3;

  34.     /** Value of the θ₄(z|τ) function. */
  35.     private final Complex theta4;

  36.     /** Simple constructor.
  37.      * @param theta1 value of the θ₁(z|τ) function
  38.      * @param theta2 value of the θ₂(z|τ) function
  39.      * @param theta3 value of the θ₃(z|τ) function
  40.      * @param theta4 value of the θ₄(z|τ) function
  41.      */
  42.     Theta(final Complex theta1, final Complex theta2,
  43.           final Complex theta3, final Complex theta4) {
  44.         this.theta1 = theta1;
  45.         this.theta2 = theta2;
  46.         this.theta3 = theta3;
  47.         this.theta4 = theta4;
  48.     }

  49.     /** Get the value of the θ₁(z|τ) function.
  50.      * @return θ₁(z|τ)
  51.      */
  52.     public Complex theta1() {
  53.         return theta1;
  54.     }

  55.     /** Get the value of the θ₂(z|τ) function.
  56.      * @return θ₂(z|τ)
  57.      */
  58.     public Complex theta2() {
  59.         return theta2;
  60.     }

  61.     /** Get the value of the θ₃(z|τ) function.
  62.      * @return θ₃(z|τ)
  63.      */
  64.     public Complex theta3() {
  65.         return theta3;
  66.     }

  67.     /** Get the value of the θ₄(z|τ) function.
  68.      * @return θ₄(z|τ)
  69.      */
  70.     public Complex theta4() {
  71.         return theta4;
  72.     }

  73. }