Add chain rules; prefer functions to plain constructors #49
Annotations
4 errors
docs/src/index.md#L168
doctest failure in src/index.md:168-175
```jldoctest symbolics
julia> @variables q[1:4]; # Defines q[1] through q[4] as symbolic variables
julia> Q = quaternion(q...);
julia> simplify.(Q * imz * conj(Q))
0 + (2q[1]*q[3] + 2q[2]*q[4])π’ + (2q[3]*q[4] - 2q[1]*q[2])π£ + (q[1]^2 + q[4]^2 - (q[2]^2) - (q[3]^2))π€
```
Subexpression:
simplify.(Q * imz * conj(Q))
Evaluated output:
0 + (2q[1]*q[3] + 2q[2]*q[4])π’ - (2q[1]*q[2] + 2q[3]*q[4])π£ + (q[1]^2 - (q[2]^2) - (q[3]^2) + q[4]^2)π€
Expected output:
0 + (2q[1]*q[3] + 2q[2]*q[4])π’ + (2q[3]*q[4] - 2q[1]*q[2])π£ + (q[1]^2 + q[4]^2 - (q[2]^2) - (q[3]^2))π€
diff =
Warning: Diff output requires color.
0 + (2q[1]*q[3] + 2q[2]*q[4])π’ + (2q[3]*q[4] - 2q[1]*q[2])π£ (2q[1]*q[2] + (q[1]^2 2q[3]*q[4])π£ + q[4]^2 (q[1]^2 - (q[2]^2) - (q[3]^2))π€(q[3]^2) + q[4]^2)π€
|
src/quaternion.jl#L127
doctest failure in ~/work/Quaternionic.jl/Quaternionic.jl/src/quaternion.jl:127-138
```jldoctest
julia> rotor(1, 2, 3, 4)
rotor(0.18257418583505536 + 0.3651483716701107π’ + 0.5477225575051661π£ + 0.7302967433402214π€)
julia> rotor(quaternion(1, 2, 3, 4))
rotor(0.18257418583505536 + 0.3651483716701107π’ + 0.5477225575051661π£ + 0.7302967433402214π€)
julia> Rotor{Float16}(1, 2, 3, 4)
rotor(1.0 + 2.0π’ + 3.0π£ + 4.0π€)
julia> normalize(Rotor{Float16}(1, 2, 3, 4))
rotor(0.1826 + 0.3652π’ + 0.548π£ + 0.7305π€)
julia> rotor(1)
rotor(1.0 + 0.0π’ + 0.0π£ + 0.0π€)
```
Subexpression:
rotor(1)
Evaluated output:
rotor(1 + 0π’ + 0π£ + 0π€)
Expected output:
rotor(1.0 + 0.0π’ + 0.0π£ + 0.0π€)
diff =
Warning: Diff output requires color.
rotor(1.0 rotor(1 + 0.0π’ 0π’ + 0.0π£ 0π£ + 0.0π€)0π€)
|
src/quaternion.jl#L280
doctest failure in ~/work/Quaternionic.jl/Quaternionic.jl/src/quaternion.jl:280-289
```jldoctest
julia> imx * imx
-1 + 0π’ + 0π£ + 0π€
julia> 1.2imx
+ 1.2π’ + 0.0π£ + 0.0π€
julia> 1.2 + 3.4imx
1.2 + 3.4π’ + 0.0π£ + 0.0π€
julia> 1.2 + 3.4π’
1.2 + 3.4π’ + 0.0π£ + 0.0π€
```
Subexpression:
1.2 + 3.4imx
Evaluated output:
1.2 + 3.4π’ + 0.0π£ + 0.0π€
Expected output:
1.2 + 3.4π’ + 0.0π£ + 0.0π€
diff =
Warning: Diff output requires color.
1.2 + 3.4π’ + 0.0π£ + + 0.0π€
|
|
The logs for this run have expired and are no longer available.
Loading