apple / apple/swift-numerics

Convenient name for `AlgebraicField & ElementaryFunctions`

Open
#100 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
Swift
Stars
1.9k
Forks
181
Avg merge
2d 5h
Merged PRs (30d)
6

Description

The natural place to write many generic algorithms is the protocol composition `AlgebraicField & ElementaryFunctions`, as it provides all the basic arithmetic operations including negation and division, as well as powers, roots, and transcendental functions.

To facilitate and encourage this practice, we should provide a convenient name for that composition.

Contributor guide

Open the contributing guide

Research direction

Start by reading the definitions of AlgebraicField and ElementaryFunctions and the existing generic algorithm APIs that use their composition. Determine the proposed convenient name and confirm that it can represent both protocols' operations; done means the named composition is available for use by generic algorithms, with relevant tests passing.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
backend-api-design
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.