JuliaDiff / JuliaDiff/DualNumbers.jl
div() and rem()
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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