JuliaDiff / JuliaDiff/DualNumbers.jl

div() and rem()

Open
#93 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
80
Forks
27
PR merge metrics
No merged PRs in 30d

Description

now div() and rem() are not supported:

julia> x = Dual(1.1, 2.2);

julia> y = Dual(3.3, 4.4);

julia> div(y, x)
ERROR: MethodError: no method matching div(::Dual128, ::Dual128, ::RoundingMode{:ToZero})

julia> rem(y, x)
ERROR: MethodError: no method matching rem(::Dual128, ::Dual128)

how could we handle these functions?
thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the existing arithmetic implementations for div() and rem(), then reproduce the shown Dual128 calls. Determine the intended semantics and required Julia method signatures before making changes; done should include agreed behavior and tests covering both functions.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.