Predefined Functions - loquat
Description: This function lets you create a quaternion number from a complex number and a complex number from a quaternion number. Given a complex number c=(cr,ci) loquat(c) returns the quaternion number (0,0,cr,ci) Given a quaternion number q=(qr,qi,qj,qk) loquat(q) returns the complex number (qj,qk) Thus given a complex number c=(cr,ci) we have loquat(loquat(c))=c Or given a quaternion number q=(qr,qi,qj,qk) we have loquat(loquat(q))=(0,0,qj,qk) See also hiquat for converting the real and imaginary part of a quaternion... |