CopolarN.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. /** Copolar trio with pole at point n in Glaisher’s Notation.
  19.  * <p>
  20.  * This is a container for the three principal Jacobi elliptic functions
  21.  * {@code sn(u|m)}, {@code cn(u|m)}, and {@code dn(u|m)}.
  22.  * </p>
  23.  * @since 2.0
  24.  */
  25. public class CopolarN {

  26.     /** Value of the sn function. */
  27.     private final double sn;

  28.     /** Value of the cn function. */
  29.     private final double cn;

  30.     /** Value of the dn function. */
  31.     private final double dn;

  32.     /** Simple constructor.
  33.      * @param sn value of the sn function
  34.      * @param cn value of the cn function
  35.      * @param dn value of the dn function
  36.      */
  37.     CopolarN(final double sn, final double cn, final double dn) {
  38.         this.sn = sn;
  39.         this.cn = cn;
  40.         this.dn = dn;
  41.     }

  42.     /** Get the value of the sn function.
  43.      * @return sn(u|m)
  44.      */
  45.     public double sn() {
  46.         return sn;
  47.     }

  48.     /** Get the value of the cn function.
  49.      * @return cn(u|m)
  50.      */
  51.     public double cn() {
  52.         return cn;
  53.     }

  54.     /** Get the value of the dn function.
  55.      * @return dn(u|m)
  56.      */
  57.     public double dn() {
  58.         return dn;
  59.     }

  60. }