commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1422588 - in /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function: Constant.java Cosh.java Identity.java Minus.java Sin.java Sinh.java
Date Sun, 16 Dec 2012 15:01:13 GMT
Author: erans
Date: Sun Dec 16 15:01:12 2012
New Revision: 1422588

URL: http://svn.apache.org/viewvc?rev=1422588&view=rev
Log:
Fixed "Clirr" errors.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Constant.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Cosh.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Identity.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Minus.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Sin.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Sinh.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Constant.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Constant.java?rev=1422588&r1=1422587&r2=1422588&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Constant.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Constant.java
Sun Dec 16 15:01:12 2012
@@ -49,8 +49,8 @@ public class Constant implements Univari
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
-    public UnivariateFunction derivative() {
-        return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
+    public DifferentiableUnivariateFunction derivative() {
+        return new Constant(0);
     }
 
     /** {@inheritDoc}

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Cosh.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Cosh.java?rev=1422588&r1=1422587&r2=1422588&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Cosh.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Cosh.java
Sun Dec 16 15:01:12 2012
@@ -40,8 +40,8 @@ public class Cosh implements UnivariateD
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
-    public UnivariateFunction derivative() {
-        return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
+    public DifferentiableUnivariateFunction derivative() {
+        return new Sinh();
     }
 
     /** {@inheritDoc}

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Identity.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Identity.java?rev=1422588&r1=1422587&r2=1422588&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Identity.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Identity.java
Sun Dec 16 15:01:12 2012
@@ -39,8 +39,8 @@ public class Identity implements Univari
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
-    public UnivariateFunction derivative() {
-        return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
+    public DifferentiableUnivariateFunction derivative() {
+        return new Constant(1);
     }
 
     /** {@inheritDoc}

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Minus.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Minus.java?rev=1422588&r1=1422587&r2=1422588&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Minus.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Minus.java
Sun Dec 16 15:01:12 2012
@@ -39,8 +39,8 @@ public class Minus implements Univariate
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
-    public UnivariateFunction derivative() {
-        return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
+    public DifferentiableUnivariateFunction derivative() {
+        return new Constant(-1);
     }
 
     /** {@inheritDoc}

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Sin.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Sin.java?rev=1422588&r1=1422587&r2=1422588&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Sin.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Sin.java
Sun Dec 16 15:01:12 2012
@@ -40,8 +40,8 @@ public class Sin implements UnivariateDi
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
-    public UnivariateFunction derivative() {
-        return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
+    public DifferentiableUnivariateFunction derivative() {
+        return new Cos();
     }
 
     /** {@inheritDoc}

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Sinh.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Sinh.java?rev=1422588&r1=1422587&r2=1422588&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Sinh.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/function/Sinh.java
Sun Dec 16 15:01:12 2012
@@ -40,8 +40,8 @@ public class Sinh implements UnivariateD
      * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
      */
     @Deprecated
-    public UnivariateFunction derivative() {
-        return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
+    public DifferentiableUnivariateFunction derivative() {
+        return new Cosh();
     }
 
     /** {@inheritDoc}



Mime
View raw message