Anonymous user
Quaternion type: Difference between revisions
→{{header|Julia}}
(→{{header|Julia}}: more cleanup) |
|||
Line 2,777:
=={{header|Julia}}==
This is from the [https://github.com/JuliaLang/julia/blob/master/examples/quaternion.jl quaternion example file] included with Julia 0.2, which implements a quaternion type complete with arithmetic, type conversions
<lang julia>import Base: convert, promote_rule, show, real, imag, conj, abs, abs2, inv, +, -, /, *
|