rlm@10: ;; Test routines for complex-numbers.clj rlm@10: rlm@10: ;; by Konrad Hinsen rlm@10: ;; last updated April 2, 2009 rlm@10: rlm@10: ;; Copyright (c) Konrad Hinsen, 2008. All rights reserved. The use rlm@10: ;; and distribution terms for this software are covered by the Eclipse rlm@10: ;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) rlm@10: ;; which can be found in the file epl-v10.html at the root of this rlm@10: ;; distribution. By using this software in any fashion, you are rlm@10: ;; agreeing to be bound by the terms of this license. You must not rlm@10: ;; remove this notice, or any other, from this software. rlm@10: rlm@10: (ns clojure.contrib.test-complex-numbers rlm@10: (:refer-clojure :exclude [+ - * / = < > <= >=]) rlm@10: (:use [clojure.test rlm@10: :only (deftest is are run-tests)] rlm@10: [clojure.contrib.generic.arithmetic rlm@10: :only (+ - * /)] rlm@10: [clojure.contrib.generic.comparison rlm@10: :only (= < > <= >=)] rlm@10: [clojure.contrib.generic.math-functions rlm@10: :only (abs approx= conjugate exp sqr sqrt)] rlm@10: [clojure.contrib.complex-numbers rlm@10: :only (complex imaginary real imag)])) rlm@10: rlm@10: (deftest complex-addition rlm@10: (is (= (+ (complex 1 2) (complex 1 2)) (complex 2 4))) rlm@10: (is (= (+ (complex 1 2) (complex -3 -7)) (complex -2 -5))) rlm@10: (is (= (+ (complex -3 -7) (complex 1 2)) (complex -2 -5))) rlm@10: (is (= (+ (complex 1 2) 3) (complex 4 2))) rlm@10: (is (= (+ 3 (complex 1 2)) (complex 4 2))) rlm@10: (is (= (+ (complex 1 2) -1) (imaginary 2))) rlm@10: (is (= (+ -1 (complex 1 2)) (imaginary 2))) rlm@10: (is (= (+ (complex 1 2) (imaginary -2)) 1)) rlm@10: (is (= (+ (imaginary -2) (complex 1 2)) 1)) rlm@10: (is (= (+ (complex 1 2) (imaginary 5)) (complex 1 7))) rlm@10: (is (= (+ (imaginary 5) (complex 1 2)) (complex 1 7))) rlm@10: (is (= (+ (complex -3 -7) (complex 1 2)) (complex -2 -5))) rlm@10: (is (= (+ (complex 1 2) (complex -3 -7)) (complex -2 -5))) rlm@10: (is (= (+ (complex -3 -7) (complex -3 -7)) (complex -6 -14))) rlm@10: (is (= (+ (complex -3 -7) 3) (imaginary -7))) rlm@10: (is (= (+ 3 (complex -3 -7)) (imaginary -7))) rlm@10: (is (= (+ (complex -3 -7) -1) (complex -4 -7))) rlm@10: (is (= (+ -1 (complex -3 -7)) (complex -4 -7))) rlm@10: (is (= (+ (complex -3 -7) (imaginary -2)) (complex -3 -9))) rlm@10: (is (= (+ (imaginary -2) (complex -3 -7)) (complex -3 -9))) rlm@10: (is (= (+ (complex -3 -7) (imaginary 5)) (complex -3 -2))) rlm@10: (is (= (+ (imaginary 5) (complex -3 -7)) (complex -3 -2))) rlm@10: (is (= (+ 3 (complex 1 2)) (complex 4 2))) rlm@10: (is (= (+ (complex 1 2) 3) (complex 4 2))) rlm@10: (is (= (+ 3 (complex -3 -7)) (imaginary -7))) rlm@10: (is (= (+ (complex -3 -7) 3) (imaginary -7))) rlm@10: (is (= (+ 3 (imaginary -2)) (complex 3 -2))) rlm@10: (is (= (+ (imaginary -2) 3) (complex 3 -2))) rlm@10: (is (= (+ 3 (imaginary 5)) (complex 3 5))) rlm@10: (is (= (+ (imaginary 5) 3) (complex 3 5))) rlm@10: (is (= (+ -1 (complex 1 2)) (imaginary 2))) rlm@10: (is (= (+ (complex 1 2) -1) (imaginary 2))) rlm@10: (is (= (+ -1 (complex -3 -7)) (complex -4 -7))) rlm@10: (is (= (+ (complex -3 -7) -1) (complex -4 -7))) rlm@10: (is (= (+ -1 (imaginary -2)) (complex -1 -2))) rlm@10: (is (= (+ (imaginary -2) -1) (complex -1 -2))) rlm@10: (is (= (+ -1 (imaginary 5)) (complex -1 5))) rlm@10: (is (= (+ (imaginary 5) -1) (complex -1 5))) rlm@10: (is (= (+ (imaginary -2) (complex 1 2)) 1)) rlm@10: (is (= (+ (complex 1 2) (imaginary -2)) 1)) rlm@10: (is (= (+ (imaginary -2) (complex -3 -7)) (complex -3 -9))) rlm@10: (is (= (+ (complex -3 -7) (imaginary -2)) (complex -3 -9))) rlm@10: (is (= (+ (imaginary -2) 3) (complex 3 -2))) rlm@10: (is (= (+ 3 (imaginary -2)) (complex 3 -2))) rlm@10: (is (= (+ (imaginary -2) -1) (complex -1 -2))) rlm@10: (is (= (+ -1 (imaginary -2)) (complex -1 -2))) rlm@10: (is (= (+ (imaginary -2) (imaginary -2)) (imaginary -4))) rlm@10: (is (= (+ (imaginary -2) (imaginary 5)) (imaginary 3))) rlm@10: (is (= (+ (imaginary 5) (imaginary -2)) (imaginary 3))) rlm@10: (is (= (+ (imaginary 5) (complex 1 2)) (complex 1 7))) rlm@10: (is (= (+ (complex 1 2) (imaginary 5)) (complex 1 7))) rlm@10: (is (= (+ (imaginary 5) (complex -3 -7)) (complex -3 -2))) rlm@10: (is (= (+ (complex -3 -7) (imaginary 5)) (complex -3 -2))) rlm@10: (is (= (+ (imaginary 5) 3) (complex 3 5))) rlm@10: (is (= (+ 3 (imaginary 5)) (complex 3 5))) rlm@10: (is (= (+ (imaginary 5) -1) (complex -1 5))) rlm@10: (is (= (+ -1 (imaginary 5)) (complex -1 5))) rlm@10: (is (= (+ (imaginary 5) (imaginary -2)) (imaginary 3))) rlm@10: (is (= (+ (imaginary -2) (imaginary 5)) (imaginary 3))) rlm@10: (is (= (+ (imaginary 5) (imaginary 5)) (imaginary 10)))) rlm@10: rlm@10: (deftest complex-subtraction rlm@10: (is (= (- (complex 1 2) (complex 1 2)) 0)) rlm@10: (is (= (- (complex 1 2) (complex -3 -7)) (complex 4 9))) rlm@10: (is (= (- (complex -3 -7) (complex 1 2)) (complex -4 -9))) rlm@10: (is (= (- (complex 1 2) 3) (complex -2 2))) rlm@10: (is (= (- 3 (complex 1 2)) (complex 2 -2))) rlm@10: (is (= (- (complex 1 2) -1) (complex 2 2))) rlm@10: (is (= (- -1 (complex 1 2)) (complex -2 -2))) rlm@10: (is (= (- (complex 1 2) (imaginary -2)) (complex 1 4))) rlm@10: (is (= (- (imaginary -2) (complex 1 2)) (complex -1 -4))) rlm@10: (is (= (- (complex 1 2) (imaginary 5)) (complex 1 -3))) rlm@10: (is (= (- (imaginary 5) (complex 1 2)) (complex -1 3))) rlm@10: (is (= (- (complex -3 -7) (complex 1 2)) (complex -4 -9))) rlm@10: (is (= (- (complex 1 2) (complex -3 -7)) (complex 4 9))) rlm@10: (is (= (- (complex -3 -7) (complex -3 -7)) 0)) rlm@10: (is (= (- (complex -3 -7) 3) (complex -6 -7))) rlm@10: (is (= (- 3 (complex -3 -7)) (complex 6 7))) rlm@10: (is (= (- (complex -3 -7) -1) (complex -2 -7))) rlm@10: (is (= (- -1 (complex -3 -7)) (complex 2 7))) rlm@10: (is (= (- (complex -3 -7) (imaginary -2)) (complex -3 -5))) rlm@10: (is (= (- (imaginary -2) (complex -3 -7)) (complex 3 5))) rlm@10: (is (= (- (complex -3 -7) (imaginary 5)) (complex -3 -12))) rlm@10: (is (= (- (imaginary 5) (complex -3 -7)) (complex 3 12))) rlm@10: (is (= (- 3 (complex 1 2)) (complex 2 -2))) rlm@10: (is (= (- (complex 1 2) 3) (complex -2 2))) rlm@10: (is (= (- 3 (complex -3 -7)) (complex 6 7))) rlm@10: (is (= (- (complex -3 -7) 3) (complex -6 -7))) rlm@10: (is (= (- 3 (imaginary -2)) (complex 3 2))) rlm@10: (is (= (- (imaginary -2) 3) (complex -3 -2))) rlm@10: (is (= (- 3 (imaginary 5)) (complex 3 -5))) rlm@10: (is (= (- (imaginary 5) 3) (complex -3 5))) rlm@10: (is (= (- -1 (complex 1 2)) (complex -2 -2))) rlm@10: (is (= (- (complex 1 2) -1) (complex 2 2))) rlm@10: (is (= (- -1 (complex -3 -7)) (complex 2 7))) rlm@10: (is (= (- (complex -3 -7) -1) (complex -2 -7))) rlm@10: (is (= (- -1 (imaginary -2)) (complex -1 2))) rlm@10: (is (= (- (imaginary -2) -1) (complex 1 -2))) rlm@10: (is (= (- -1 (imaginary 5)) (complex -1 -5))) rlm@10: (is (= (- (imaginary 5) -1) (complex 1 5))) rlm@10: (is (= (- (imaginary -2) (complex 1 2)) (complex -1 -4))) rlm@10: (is (= (- (complex 1 2) (imaginary -2)) (complex 1 4))) rlm@10: (is (= (- (imaginary -2) (complex -3 -7)) (complex 3 5))) rlm@10: (is (= (- (complex -3 -7) (imaginary -2)) (complex -3 -5))) rlm@10: (is (= (- (imaginary -2) 3) (complex -3 -2))) rlm@10: (is (= (- 3 (imaginary -2)) (complex 3 2))) rlm@10: (is (= (- (imaginary -2) -1) (complex 1 -2))) rlm@10: (is (= (- -1 (imaginary -2)) (complex -1 2))) rlm@10: (is (= (- (imaginary -2) (imaginary -2)) 0)) rlm@10: (is (= (- (imaginary -2) (imaginary 5)) (imaginary -7))) rlm@10: (is (= (- (imaginary 5) (imaginary -2)) (imaginary 7))) rlm@10: (is (= (- (imaginary 5) (complex 1 2)) (complex -1 3))) rlm@10: (is (= (- (complex 1 2) (imaginary 5)) (complex 1 -3))) rlm@10: (is (= (- (imaginary 5) (complex -3 -7)) (complex 3 12))) rlm@10: (is (= (- (complex -3 -7) (imaginary 5)) (complex -3 -12))) rlm@10: (is (= (- (imaginary 5) 3) (complex -3 5))) rlm@10: (is (= (- 3 (imaginary 5)) (complex 3 -5))) rlm@10: (is (= (- (imaginary 5) -1) (complex 1 5))) rlm@10: (is (= (- -1 (imaginary 5)) (complex -1 -5))) rlm@10: (is (= (- (imaginary 5) (imaginary -2)) (imaginary 7))) rlm@10: (is (= (- (imaginary -2) (imaginary 5)) (imaginary -7))) rlm@10: (is (= (- (imaginary 5) (imaginary 5)) 0))) rlm@10: rlm@10: (deftest complex-multiplication rlm@10: (is (= (* (complex 1 2) (complex 1 2)) (complex -3 4))) rlm@10: (is (= (* (complex 1 2) (complex -3 -7)) (complex 11 -13))) rlm@10: (is (= (* (complex -3 -7) (complex 1 2)) (complex 11 -13))) rlm@10: (is (= (* (complex 1 2) 3) (complex 3 6))) rlm@10: (is (= (* 3 (complex 1 2)) (complex 3 6))) rlm@10: (is (= (* (complex 1 2) -1) (complex -1 -2))) rlm@10: (is (= (* -1 (complex 1 2)) (complex -1 -2))) rlm@10: (is (= (* (complex 1 2) (imaginary -2)) (complex 4 -2))) rlm@10: (is (= (* (imaginary -2) (complex 1 2)) (complex 4 -2))) rlm@10: (is (= (* (complex 1 2) (imaginary 5)) (complex -10 5))) rlm@10: (is (= (* (imaginary 5) (complex 1 2)) (complex -10 5))) rlm@10: (is (= (* (complex -3 -7) (complex 1 2)) (complex 11 -13))) rlm@10: (is (= (* (complex 1 2) (complex -3 -7)) (complex 11 -13))) rlm@10: (is (= (* (complex -3 -7) (complex -3 -7)) (complex -40 42))) rlm@10: (is (= (* (complex -3 -7) 3) (complex -9 -21))) rlm@10: (is (= (* 3 (complex -3 -7)) (complex -9 -21))) rlm@10: (is (= (* (complex -3 -7) -1) (complex 3 7))) rlm@10: (is (= (* -1 (complex -3 -7)) (complex 3 7))) rlm@10: (is (= (* (complex -3 -7) (imaginary -2)) (complex -14 6))) rlm@10: (is (= (* (imaginary -2) (complex -3 -7)) (complex -14 6))) rlm@10: (is (= (* (complex -3 -7) (imaginary 5)) (complex 35 -15))) rlm@10: (is (= (* (imaginary 5) (complex -3 -7)) (complex 35 -15))) rlm@10: (is (= (* 3 (complex 1 2)) (complex 3 6))) rlm@10: (is (= (* (complex 1 2) 3) (complex 3 6))) rlm@10: (is (= (* 3 (complex -3 -7)) (complex -9 -21))) rlm@10: (is (= (* (complex -3 -7) 3) (complex -9 -21))) rlm@10: (is (= (* 3 (imaginary -2)) (imaginary -6))) rlm@10: (is (= (* (imaginary -2) 3) (imaginary -6))) rlm@10: (is (= (* 3 (imaginary 5)) (imaginary 15))) rlm@10: (is (= (* (imaginary 5) 3) (imaginary 15))) rlm@10: (is (= (* -1 (complex 1 2)) (complex -1 -2))) rlm@10: (is (= (* (complex 1 2) -1) (complex -1 -2))) rlm@10: (is (= (* -1 (complex -3 -7)) (complex 3 7))) rlm@10: (is (= (* (complex -3 -7) -1) (complex 3 7))) rlm@10: (is (= (* -1 (imaginary -2)) (imaginary 2))) rlm@10: (is (= (* (imaginary -2) -1) (imaginary 2))) rlm@10: (is (= (* -1 (imaginary 5)) (imaginary -5))) rlm@10: (is (= (* (imaginary 5) -1) (imaginary -5))) rlm@10: (is (= (* (imaginary -2) (complex 1 2)) (complex 4 -2))) rlm@10: (is (= (* (complex 1 2) (imaginary -2)) (complex 4 -2))) rlm@10: (is (= (* (imaginary -2) (complex -3 -7)) (complex -14 6))) rlm@10: (is (= (* (complex -3 -7) (imaginary -2)) (complex -14 6))) rlm@10: (is (= (* (imaginary -2) 3) (imaginary -6))) rlm@10: (is (= (* 3 (imaginary -2)) (imaginary -6))) rlm@10: (is (= (* (imaginary -2) -1) (imaginary 2))) rlm@10: (is (= (* -1 (imaginary -2)) (imaginary 2))) rlm@10: (is (= (* (imaginary -2) (imaginary -2)) -4)) rlm@10: (is (= (* (imaginary -2) (imaginary 5)) 10)) rlm@10: (is (= (* (imaginary 5) (imaginary -2)) 10)) rlm@10: (is (= (* (imaginary 5) (complex 1 2)) (complex -10 5))) rlm@10: (is (= (* (complex 1 2) (imaginary 5)) (complex -10 5))) rlm@10: (is (= (* (imaginary 5) (complex -3 -7)) (complex 35 -15))) rlm@10: (is (= (* (complex -3 -7) (imaginary 5)) (complex 35 -15))) rlm@10: (is (= (* (imaginary 5) 3) (imaginary 15))) rlm@10: (is (= (* 3 (imaginary 5)) (imaginary 15))) rlm@10: (is (= (* (imaginary 5) -1) (imaginary -5))) rlm@10: (is (= (* -1 (imaginary 5)) (imaginary -5))) rlm@10: (is (= (* (imaginary 5) (imaginary -2)) 10)) rlm@10: (is (= (* (imaginary -2) (imaginary 5)) 10)) rlm@10: (is (= (* (imaginary 5) (imaginary 5)) -25))) rlm@10: rlm@10: (deftest complex-division rlm@10: (is (= (/ (complex 1 2) (complex 1 2)) 1)) rlm@10: (is (= (/ (complex 1 2) (complex -3 -7)) (complex -17/58 1/58))) rlm@10: (is (= (/ (complex -3 -7) (complex 1 2)) (complex -17/5 -1/5))) rlm@10: (is (= (/ (complex 1 2) 3) (complex 1/3 2/3))) rlm@10: (is (= (/ 3 (complex 1 2)) (complex 3/5 -6/5))) rlm@10: (is (= (/ (complex 1 2) -1) (complex -1 -2))) rlm@10: (is (= (/ -1 (complex 1 2)) (complex -1/5 2/5))) rlm@10: (is (= (/ (complex 1 2) (imaginary -2)) (complex -1 1/2))) rlm@10: (is (= (/ (imaginary -2) (complex 1 2)) (complex -4/5 -2/5))) rlm@10: (is (= (/ (complex 1 2) (imaginary 5)) (complex 2/5 -1/5))) rlm@10: (is (= (/ (imaginary 5) (complex 1 2)) (complex 2 1))) rlm@10: (is (= (/ (complex -3 -7) (complex 1 2)) (complex -17/5 -1/5))) rlm@10: (is (= (/ (complex 1 2) (complex -3 -7)) (complex -17/58 1/58))) rlm@10: (is (= (/ (complex -3 -7) (complex -3 -7)) 1)) rlm@10: (is (= (/ (complex -3 -7) 3) (complex -1 -7/3))) rlm@10: (is (= (/ 3 (complex -3 -7)) (complex -9/58 21/58))) rlm@10: (is (= (/ (complex -3 -7) -1) (complex 3 7))) rlm@10: (is (= (/ -1 (complex -3 -7)) (complex 3/58 -7/58))) rlm@10: (is (= (/ (complex -3 -7) (imaginary -2)) (complex 7/2 -3/2))) rlm@10: (is (= (/ (imaginary -2) (complex -3 -7)) (complex 7/29 3/29))) rlm@10: (is (= (/ (complex -3 -7) (imaginary 5)) (complex -7/5 3/5))) rlm@10: (is (= (/ (imaginary 5) (complex -3 -7)) (complex -35/58 -15/58))) rlm@10: (is (= (/ 3 (complex 1 2)) (complex 3/5 -6/5))) rlm@10: (is (= (/ (complex 1 2) 3) (complex 1/3 2/3))) rlm@10: (is (= (/ 3 (complex -3 -7)) (complex -9/58 21/58))) rlm@10: (is (= (/ (complex -3 -7) 3) (complex -1 -7/3))) rlm@10: #_(is (= (/ 3 (imaginary -2)) (imaginary 1.5))) rlm@10: (is (= (/ (imaginary -2) 3) (imaginary -2/3))) rlm@10: (is (= (/ 3 (imaginary 5)) (imaginary -3/5))) rlm@10: (is (= (/ (imaginary 5) 3) (imaginary 5/3))) rlm@10: (is (= (/ -1 (complex 1 2)) (complex -1/5 2/5))) rlm@10: (is (= (/ (complex 1 2) -1) (complex -1 -2))) rlm@10: (is (= (/ -1 (complex -3 -7)) (complex 3/58 -7/58))) rlm@10: (is (= (/ (complex -3 -7) -1) (complex 3 7))) rlm@10: (is (= (/ -1 (imaginary -2)) (imaginary -1/2))) rlm@10: (is (= (/ (imaginary -2) -1) (imaginary 2))) rlm@10: (is (= (/ -1 (imaginary 5)) (imaginary 1/5))) rlm@10: (is (= (/ (imaginary 5) -1) (imaginary -5))) rlm@10: (is (= (/ (imaginary -2) (complex 1 2)) (complex -4/5 -2/5))) rlm@10: (is (= (/ (complex 1 2) (imaginary -2)) (complex -1 1/2))) rlm@10: (is (= (/ (imaginary -2) (complex -3 -7)) (complex 7/29 3/29))) rlm@10: (is (= (/ (complex -3 -7) (imaginary -2)) (complex 7/2 -3/2))) rlm@10: (is (= (/ (imaginary -2) 3) (imaginary -2/3))) rlm@10: (is (= (/ 3 (imaginary -2)) (imaginary 3/2))) rlm@10: (is (= (/ (imaginary -2) -1) (imaginary 2))) rlm@10: (is (= (/ -1 (imaginary -2)) (imaginary -1/2))) rlm@10: (is (= (/ (imaginary -2) (imaginary -2)) 1)) rlm@10: (is (= (/ (imaginary -2) (imaginary 5)) -2/5)) rlm@10: (is (= (/ (imaginary 5) (imaginary -2)) -5/2)) rlm@10: (is (= (/ (imaginary 5) (complex 1 2)) (complex 2 1))) rlm@10: (is (= (/ (complex 1 2) (imaginary 5)) (complex 2/5 -1/5))) rlm@10: (is (= (/ (imaginary 5) (complex -3 -7)) (complex -35/58 -15/58))) rlm@10: (is (= (/ (complex -3 -7) (imaginary 5)) (complex -7/5 3/5))) rlm@10: (is (= (/ (imaginary 5) 3) (imaginary 5/3))) rlm@10: (is (= (/ 3 (imaginary 5)) (imaginary -3/5))) rlm@10: (is (= (/ (imaginary 5) -1) (imaginary -5))) rlm@10: (is (= (/ -1 (imaginary 5)) (imaginary 1/5))) rlm@10: (is (= (/ (imaginary 5) (imaginary -2)) -5/2)) rlm@10: (is (= (/ (imaginary -2) (imaginary 5)) -2/5)) rlm@10: (is (= (/ (imaginary 5) (imaginary 5)) 1))) rlm@10: rlm@10: (deftest complex-conjugate rlm@10: (is (= (conjugate (complex 1 2)) (complex 1 -2))) rlm@10: (is (= (conjugate (complex -3 -7)) (complex -3 7))) rlm@10: (is (= (conjugate (imaginary -2)) (imaginary 2))) rlm@10: (is (= (conjugate (imaginary 5)) (imaginary -5)))) rlm@10: rlm@10: (deftest complex-abs rlm@10: (doseq [c [(complex 1 2) (complex -2 3) (complex 4 -2) rlm@10: (complex -3 -7) (imaginary -2) (imaginary 5)]] rlm@10: (is (approx= (* c (conjugate c)) rlm@10: (sqr (abs c)) rlm@10: 1e-14)))) rlm@10: rlm@10: (deftest complex-sqrt rlm@10: (doseq [c [(complex 1 2) (complex -2 3) (complex 4 -2) rlm@10: (complex -3 -7) (imaginary -2) (imaginary 5)]] rlm@10: (let [r (sqrt c)] rlm@10: (is (approx= c (sqr r) 1e-14)) rlm@10: (is (>= (real r) 0))))) rlm@10: rlm@10: (deftest complex-exp rlm@10: (is (approx= (exp (complex 1 2)) rlm@10: (complex -1.1312043837568135 2.4717266720048188) rlm@10: 1e-14)) rlm@10: (is (approx= (exp (complex 2 3)) rlm@10: (complex -7.3151100949011028 1.0427436562359045) rlm@10: 1e-14)) rlm@10: (is (approx= (exp (complex 4 -2)) rlm@10: (complex -22.720847417619233 -49.645957334580565) rlm@10: 1e-14)) rlm@10: (is (approx= (exp (complex 3 -7)) rlm@10: (complex 15.142531566086868 -13.195928586605717) rlm@10: 1e-14)) rlm@10: (is (approx= (exp (imaginary -2)) rlm@10: (complex -0.41614683654714241 -0.90929742682568171) rlm@10: 1e-14)) rlm@10: (is (approx= (exp (imaginary 5)) rlm@10: (complex 0.2836621854632263 -0.95892427466313845) rlm@10: 1e-14)))