Skip to content

Commit

Permalink
trac-2035 -- transform.pyx broken by other fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
williamstein committed Feb 3, 2008
1 parent 0a26e41 commit 913c067
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/sage/plot/plot3d/transform.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 913c067

Please sign in to comment.