Quaternion can't use subs ?

asked 2025-02-06 12:14:48 +0100

ortollj gravatar image

Hi

we can't use subs with quaternions?

Q.<i,j,k> = QuaternionAlgebra(SR, -1, -1)
aVars = var('a', n=4, latex_name='a')
bVars = var('b', n=4, latex_name='b')
qa = a0 + a1 * i + a2 * j + a3 * k
dic={a0: -1, a1: 0, a2: 1, a3: 0}
print(qa.substitute(dic))
eq=[a0==-1,a1==0,a2==1,a3==0]
print(qa.subs(eq))
edit retag flag offensive close merge delete

Comments

While searching the site for topics that include Quaternions, I noticed that someone had already asked my question. Sorry.

Quaternions Missing Important Functionality?

ortollj gravatar imageortollj ( 2025-02-07 06:48:43 +0100 )edit