6 kyu
Scientific Computing in Fortran #2 - Quaternionic Transcendental Functions
Loading description...
Mathematics
Puzzles
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Quaternion does not have a well-defined
sin
andcos
that also respects whatever nice propertysin
andcos
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
andcos
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.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.
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?
I thought that was implied (after all, the Description doesn't explicitly say not to do that) but anyway, suggestion implemented :)
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.)
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.