Open islent opened 4 years ago
I'm having the same problem with JuliaPro-1.2.0-2 with Julia 1.2.0 on macOS 10.15.1. Steps:
using Calculus
f(x) = x
f'(0)
ERROR: MethodError: no method matching adjoint(::typeof(f))
It appears as though Julia is mistaking the Calculus package's prime notation operator for the Hermitian adjoint operator in the standard library. julia/stdlib/v1.2/LinearAlgebra/adjtrans.jl
specifically mentions:
Lazy adjoint (conjugate transposition) (also postfix `'`).
Note that `adjoint` is applied recursively to elements.
in a comment at line 105 and 106.
derivative(f, 0)
behaves normally.
Looks like this comes out of https://github.com/JuliaMath/Calculus.jl/issues/133
Example code copied from README not working (julia-1.3.0, Calculus-0.5.1):