Quaternion type: Difference between revisions
Content added Content deleted
({{incorrect|Purebasic|Results don't match others/hand calculations}}) |
({{incomplete|Ruby|IRB session has yet to be updated to reflect edits to multiplication in the code.}}) |
||
Line 2,167: | Line 2,167: | ||
=={{header|Ruby}}== |
=={{header|Ruby}}== |
||
{{incomplete|Ruby|IRB session has yet to be updated to reflect edits to multiplication in the code.}} |
|||
<lang ruby>class Quaternion |
<lang ruby>class Quaternion |
||
attr_reader :a, :b, :c, :d |
attr_reader :a, :b, :c, :d |