-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-System.Numerics
Milestone
Description
Background and Motivation
Suggestion for the generic math. The mentioned methods are available in Math and MathF classes. I think it would be nice to add these to the IFloatingPoint interface.
Proposed API
namespace System
{
public interface IFloatingPoint<TSelf>
{
...
+ (TSelf, TSelf) SinCos(TSelf x);
+ TSelf ReciprocalEstimate(TSelf x);
+ TSelf ReciprocalSqrtEstimate(TSelf x);
...
}
}
Oops forgot to add api suggestion label...
Metadata
Metadata
Assignees
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-System.Numerics