Skip to content

isinteger and sincospi not defined for ::Num #1763

@PhyX-Meow

Description

@PhyX-Meow
@variables x
sincospi(x)
ERROR: MethodError: no method matching sincospi(::Num)
This error has been manually thrown, explicitly, so the method may exist but be intentionally marked as unimplemented.

Closest candidates are:
  sincospi(::Real)
   @ Base math.jl:1543
  sincospi(::BigFloat)
   @ Base mpfr.jl:955
  sincospi(::Missing)
   @ Base math.jl:1548
  ...

Stacktrace:
 [1] sincospi(x::Num)
   @ Base.Math ./math.jl:1545
 [2] top-level scope
   @ REPL[10]:1
 [3] top-level scope
   @ REPL:1
@variables y::Complex
sinpi(y)
ERROR: MethodError: no method matching isinteger(::Num)
The function `isinteger` exists, but no method is defined for this combination of argument types.

Closest candidates are:
  isinteger(::BigFloat)
   @ Base mpfr.jl:1113
  isinteger(::Missing)
   @ Base missing.jl:101
  isinteger(::AbstractIrrational)
   @ Base irrationals.jl:181
  ...

Stacktrace:
 [1] sinpi(z::Complex{Num})
   @ Base.Math ./special/trig.jl:948
 [2] top-level scope
   @ REPL[4]:1
 [3] top-level scope
   @ REPL:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions