From 913c0675e31d66a79f00e40f7e593b628d7171aa Mon Sep 17 00:00:00 2001 From: William Stein Date: Sat, 2 Feb 2008 16:41:57 -0800 Subject: [PATCH] trac-2035 -- transform.pyx broken by other fixes. --- src/sage/plot/plot3d/transform.pyx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sage/plot/plot3d/transform.pyx b/src/sage/plot/plot3d/transform.pyx index 36c78b34d9a..e8bb5c7189c 100644 --- a/src/sage/plot/plot3d/transform.pyx +++ b/src/sage/plot/plot3d/transform.pyx @@ -210,9 +210,10 @@ def rotate_arbitrary(v, double theta): sage: m = rotX(-t) * m sage: m = m.simplify_rational() sage: m - [ (1 - cos(theta))*x^2 + cos(theta) (-sin(theta)*abs(z)^3 - (cos(theta) - 1)*x*z^2*sqrt(-z^2 - x^2 + 1))/z^2 (sin(theta)*sqrt(-z^2 - x^2 + 1)*abs(z)^3 + (1 - cos(theta))*x*z^4)/z^3] - [ sin(theta)*abs(z) + (1 - cos(theta))*x*sqrt(-z^2 - x^2 + 1) (cos(theta) - 1)*z^2 + (cos(theta) - 1)*x^2 + 1 (-sin(theta)*x*abs(z) - (cos(theta) - 1)*z^2*sqrt(-z^2 - x^2 + 1))/z] - [ (-sin(theta)*sqrt(-z^2 - x^2 + 1)*abs(z) - (cos(theta) - 1)*x*z^2)/z (sin(theta)*x*abs(z) - (cos(theta) - 1)*z^2*sqrt(-z^2 - x^2 + 1))/z (1 - cos(theta))*z^2 + cos(theta)] + [ (1 - cos(theta))*x^2 + cos(theta) (1 - cos(theta))*x*sqrt(-z^2 - x^2 + 1) - sin(theta)*sqrt(z^2) (sin(theta)*sqrt(-z^2 - x^2 + 1)*sqrt(z^2) + (1 - cos(theta))*x*z^2)/z] + [ sin(theta)*sqrt(z^2) + (1 - cos(theta))*x*sqrt(-z^2 - x^2 + 1) (cos(theta) - 1)*z^2 + (cos(theta) - 1)*x^2 + 1 (-(cos(theta) - 1)*z*sqrt(-z^2 - x^2 + 1)*sqrt(z^2) - sin(theta)*x*z)/sqrt(z^2)] + [ (-sin(theta)*sqrt(-z^2 - x^2 + 1)*sqrt(z^2) - (cos(theta) - 1)*x*z^2)/z (sin(theta)*x*z - (cos(theta) - 1)*z*sqrt(-z^2 - x^2 + 1)*sqrt(z^2))/sqrt(z^2) (1 - cos(theta))*z^2 + cos(theta)] + Re-expressing some entries in terms of y and resolving the absolute values introduced by eliminating y, we get the desired result.