File tree Expand file tree Collapse file tree 1 file changed +10
-16
lines changed
Expand file tree Collapse file tree 1 file changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -141,22 +141,16 @@ true
141141It 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
162156If a function is given by the expansion
You can’t perform that action at this time.
0 commit comments