elrnv/autodiff

`to_radians` and `to_degrees` methods cause loss of the derivative

Closed this issue · 1 comments

Current implementation:

#[inline]
fn to_degrees(self) -> F<V, D> {
F::cst(Float::to_degrees(self.x))
}
#[inline]
fn to_radians(self) -> F<V, D> {
F::cst(Float::to_radians(self.x))
}

Seems like changing it to proper implementations should be straightforward:

elrnv commented

I absolutely agree thanks for the catch!