enhance cbrt to work on Complex and to return all cube roots #29
Labels
No labels
design
feature
maintenance
priority
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#30 implement polynomialRoot
StudioInfinity/nanomath
Reference: StudioInfinity/nanomath#29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For now, we will make
cbrt
with return typing strategyfree
orfull
(the default) always return all three cube roots (by analogy withsqrt
's default behavior of returning Complex as necessary), but under typing strategyconservative
on real inputs return just the real cube root.This is the last function needed to implement polynomialRoot.