Skip to content

Implement // #232

@ranocha

Description

@ranocha

It would be convenient if // would also be defined for SymEngine.Basic types. For example, I get the following error

julia> using SymEngine

julia> α = SymEngine.symbols("α")
α

julia> 1 // α
ERROR: MethodError: no method matching //(::Int64, ::Basic)
Closest candidates are:
  //(::Integer, ::Integer) at rational.jl:62
  //(::Integer, ::Rational) at rational.jl:68
  //(::Number, ::Complex) at rational.jl:79
  ...
Stacktrace:
 [1] top-level scope
   @ REPL[3]:1

Reported by @ketch in a conversation.

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