JuliaDiff / JuliaDiff/FiniteDifferences.jl

bug(?) on round/floor/ceil

Open
#112 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
318
Forks
32
PR merge metrics
No merged PRs in 30d

Description

this is probably edge case but:

julia> central_fdm(5, 1)(ceil, 0.1)
5.833333333333332

julia> central_fdm(5, 1)(ceil, 0.2)
-0.8333333333333333

https://github.com/JuliaDiff/ChainRules.jl/pull/277

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

Reproduce the reported central_fdm(5, 1) calls with ceil at 0.1 and 0.2, then inspect the central_fdm entry point and its handling of round/floor/ceil. The issue names no files or tests and does not define the expected result; use the linked ChainRules.jl pull request for related context before deciding what a fix should satisfy.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.