6 kyu

Scientific Computing in Fortran #2 - Quaternionic Transcendental Functions

Description
Loading description...
Mathematics
Puzzles
  • Please sign in or sign up to leave a comment.
  • Voile Avatar

    Quaternion does not have a well-defined sin and cos that also respects whatever nice property sin and cos has, so nobody with a sane mind actually makes a definition to them anywhere; which means your requirement is ill-defined.

    You can of course claim that you're defining sin and cos to be the coefficients along the series expansion of the exponential along with the Euler's formula, but then you'll have to specify it directly. Otherwise you're just making all of us to guess what definition you stumbled upon when you were writing the kata.

    • donaldsebleung Avatar

      Thanks for the feedback; no wonder I found it so difficult to search up the definition of trigonometric functions in the realm of quaternions. I didn't quite realize that was the case because I actually haven't officially learned quaternions in my Uni through a renowned professor - I just found an online "implementation" of those functions in a reputable C++ library and assumed that they would use a universally agreed definition in their implementation.

      To address this issue, I have stated (and provided a link to) the reference implementation that the user solution will be checked against. I don't want to flat-out provide the expected formula as that would ruin the Kata IMO. I hope this is sufficient to resolve this Issue; feel free to let me know if you think otherwise.

      Issue marked resolved by donaldsebleung 7 years ago
  • Voile Avatar

    So we don't even get to use anything we have implemented in part 1?

    Not even a "you can paste your code from the last part here" comment?

  • Voile Avatar

    Again, you're expecting everyone to instantly know all the quaternion algrbra by mind.

    If you're already mentioning about the existence of the Wikipedia article in the descriptions, why not link to it as well?

    Also, again, please slice up the big wall of text. Unordered/ordered lists don't exist for nothing.)

    • donaldsebleung Avatar

      Added link to Wikipedia article where relevant. The assumption of prior knowledge regarding basic quaternion algebra is fair game since this Kata is clearly stated as a successor to "Introduction to Quaternion Algebra" which the solver is expected to have solved before moving on to this Kata.

      As for the big wall of text, I don't think it's that big but I've tried my best to shorten it up a bit and will try to use bullet points instead where appropriate.

      Issue marked resolved by donaldsebleung 7 years ago