Skip to content

Fix Newton Raphson - #25

Merged
teensp1rit merged 2 commits into
cedra-library:mainfrom
teensp1rit:fix-newton-raphson
May 11, 2026
Merged

teensp1rit merged 2 commits into
cedra-library:mainfrom
teensp1rit:fix-newton-raphson

Conversation

@teensp1rit

Copy link
Copy Markdown
Contributor
  • better convergence

- better convergence
return right_bound;
}

if (std::signbit(f_left) == std::signbit(f_right)) [[unlikely]] {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be more informative if we would return Expect instead of optional

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But optional is Ok

@teensp1rit
teensp1rit merged commit 7248c9c into cedra-library:main May 11, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants