【发布时间】:2021-10-27 21:04:17
【问题描述】:
我有数学表达式|z - (-1)| < 1,其中z 是Complexes 的元素,相当于以(x,y)=(-1,0) 为中心的半径为1 的圆。
- 如何绘制这个表达式,
- 保留其衍生的数学表达式的结构, 可能吗?
- 应该是一个区域。
到目前为止我尝试了什么:
using ImplicitEquations, Plots
f(a,b) = abs.(a+im*b - (-1))
plot(f<1)
我得到的错误:
ERROR: MethodError: no method matching isless(::typeof(f), ::Int64)
Closest candidates are:
isless(::Union{StatsBase.PValue, StatsBase.TestStat}, ::Real) at /home/buddhilw/.julia/packages/StatsBase/PGTj8/src/statmodels.jl:514
isless(::AbstractGray{T} where T, ::Real) at /home/buddhilw/.julia/packages/ColorTypes/6m8P7/src/operations.jl:31
isless(::ForwardDiff.Dual{Tx, V, N} where {V, N}, ::Integer) where
Tx at /home/buddhilw/.julia/packages/ForwardDiff/UDrkY/src/dual.jl:144
...
Stacktrace:
[1] <(x::Function, y::Int64)
@ Base ./operators.jl:279
[2] top-level scope
@ REPL[62]:1
【问题讨论】:
标签: julia implicit complex-numbers