chakravala / Grassmann.jl

⟨Grassmann-Clifford-Hodge⟩ multilinear differential geometric algebra
https://grassmann.crucialflow.com
GNU Affero General Public License v3.0
470 stars 38 forks source link

README example error ( = outdated version of Makie) #83

Closed colemanbroad closed 3 years ago

colemanbroad commented 4 years ago

I get no method matching pointfield(::MultiVector{⟨××⟩,Float64,4}) when running the first 2D example. Basic operations seem to work though, which is really fun 👍 :) Thanks for all your hard work!

julia> using Grassmann, Makie
[ Info: Precompiling Grassmann [4df31cd9-4c27-5bea-88d0-e6a7146666d8]
WARNING: Method definition ∘(A<:(AbstractTensors.TensorAlgebra{V} where V), B<:(AbstractTensors.TensorAlgebra{V} where V)) where {A<:(AbstractTensors.TensorAlgebra{V} where V), B<:(AbstractTensors.TensorAlgebra{V} where V)} in module AbstractTensors at /Users/broaddus/.julia/packages/AbstractTensors/M0niu/src/AbstractTensors.jl:204 overwritten in module Grassmann at /Users/broaddus/.julia/packages/Grassmann/c9Dl2/src/algebra.jl:243.
  ** incremental compilation may be fatally broken for this module **

julia> basis"2" # Euclidean
(⟨××⟩, v, v₁, v₂, v₁₂)

julia> x = (v1 + v2)/sqrt(2)
0.7071067811865475v₁ + 0.7071067811865475v₂

julia> r = exp(π/8 * v1∧v2)
0.9238795325112867 + 0.3826834323650898v₁₂

julia> r*x*inv(r)
0.0 + 0.9999999999999998v₁

julia> streamplot(vectorfield(exp(π*v12/2)),-1.5..1.5,-1.5..1.5)
ERROR: MethodError: no method matching pointfield(::MultiVector{⟨××⟩,Float64,4})
Stacktrace:
 [1] top-level scope at REPL[3]:1

julia> versioninfo()
Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)

(@v1.5) pkg> st --manifest Grassmann
Status `~/.julia/environments/v1.5/Manifest.toml`
  [4df31cd9] Grassmann v0.7.1

(@v1.5) pkg> st --manifest Makie
Status `~/.julia/environments/v1.5/Manifest.toml`
  [ee78f7c6] Makie v0.9.5
chakravala commented 4 years ago

You are using an outdated unsupported version of Makie, you must upgrade to a newer version of Makie.