FieldTheta.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.CalculusFieldElement;

  19. /** Values of {@link FieldJacobiTheta 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.  * @param <T> the type of the field elements
  25.  * @see FieldJacobiTheta
  26.  * @since 2.0
  27.  */
  28. public class FieldTheta<T extends CalculusFieldElement<T>> {

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

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

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

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

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

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

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

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

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

  74. }