-
-
Save micahscopes/24db2b7b251c5fdb7c9f236d0b2cc145 to your computer and use it in GitHub Desktop.
quaternion Moebius transformation in SymPy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sympy import * | |
a,b,c,d,x = [Quaternion(*[IndexedBase(s)[i] for i in range(4)]) for s in ['a','b','c','d','x']] | |
(a*x + b)/(c*x + d) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment