Skip to content

Commit e644fc8

Browse files
authored
reduce float values in operatordocs (#861)
1 parent 4939ca2 commit e644fc8

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

docs/src/usage/operators.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -141,22 +141,16 @@ true
141141
It is possible for domain space and range space to be different under `Mulitplication`.
142142

143143
```jldoctest
144-
julia> c = Fun(θ -> cos(θ), CosSpace())
145-
Fun(CosSpace(【0.0,6.283185307179586❫), [8.974302782386682e-17, 1.0])
146-
147-
julia> Multiplication(c, SinSpace())
148-
ConcreteMultiplication : SinSpace(【0.0,6.283185307179586❫) → SinSpace(【0.0,6.283185307179586❫)
149-
8.9743e-17 0.5 ⋅ ⋅ … ⋅ ⋅ ⋅
150-
0.5 8.9743e-17 0.5 ⋅ ⋅ ⋅ ⋅
151-
⋅ 0.5 8.9743e-17 0.5 ⋅ ⋅ ⋅
152-
⋅ ⋅ 0.5 8.9743e-17 ⋅ ⋅ ⋅
153-
⋅ ⋅ ⋅ 0.5 ⋅ ⋅ ⋅
154-
⋅ ⋅ ⋅ ⋅ … ⋅ ⋅ ⋅
155-
⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅
156-
⋅ ⋅ ⋅ ⋅ 0.5 ⋅ ⋅
157-
⋅ ⋅ ⋅ ⋅ 8.9743e-17 0.5 ⋅
158-
⋅ ⋅ ⋅ ⋅ 0.5 8.9743e-17 ⋱
159-
⋅ ⋅ ⋅ ⋅ … ⋅ ⋱ ⋱
144+
julia> cosθ = Fun(cos, CosSpace());
145+
146+
julia> sinθ = Fun(sin, SinSpace());
147+
148+
julia> sin2θ = Fun(x->sin(2x), SinSpace());
149+
150+
julia> cosθM = Multiplication(cosθ, SinSpace());
151+
152+
julia> cosθM * 2sinθ ≈ sin2θ
153+
true
160154
```
161155

162156
If a function is given by the expansion

0 commit comments

Comments
 (0)