JuliaDiff / JuliaDiff/TaylorDiff.jl

Support for LogExpFunctions && better errors

Open
#102 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
83
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Hey,

import TaylorDiff
import LogExpFunctions
t = TaylorDiff.make_seed(1.2, 1.0, Val{3}())
log1p(exp(t))
LogExpFunctions.log1pexp(t)

yields:

julia> import TaylorDiff

julia> import LogExpFunctions

julia> t = TaylorDiff.make_seed(1.2, 1.0, Val{3}())
TaylorScalar{Float64, 3}(1.2, (1.0, 0.0, 0.0))

julia> log1p(exp(t))
TaylorScalar{Float64, 3}(1.4632824673380311, (0.7685247834990176, 0.08894722032340283, -0.015923022053454108))

julia> LogExpFunctions.log1pexp(t)
1.4632824673380311

julia> 

Two questions:

  1. How hard would it be to support LogExpFunctions
  2. Why, why and why dont we error in those cases ? Took me ages to understand what was going on...

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 by reproducing the shown TaylorDiff.make_seed example with log1p(exp(t)) and LogExpFunctions.log1pexp(t), then inspect the relevant TaylorDiff entry points for these operations and their error behavior. Done means LogExpFunctions.log1pexp works with the TaylorScalar example and unsupported cases produce informative errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.