can i give you other idea or have you not the time
example: cos(q)=(exp(qi)+exp(-qi))/2 the cosine in quaernions !
sin(q)= (exp(qi)-exp(-qi))/2
etc ..... the moste difficulte is done
thank you eric
Yesterday I found some quat math libraries. In reality;
sin(a+bi) = sin a * cosh b +
i ( cos a * sinh b ) (
sine for a complex number)
But in our case;
m = sqrt( w^2+y^2+z^2 )so x = sin x * cosh m (real part is simple)
but
y = ( cos x * sinh m ) / m * y
z = ( cos x * sinh m ) / m * z
w = ( cos x * sinh m ) / m * w
The division is the tricky part to code
(I hope I understood well the cryptic library
)
I have all the codings for sinh and cosh already done in assembly
... Will see!
(sin S)^2 + C must be a wonderful fractal!