Skip to content

[Feature Request]: Mathematical Built-in function tan() #1968

Closed

Description

@dengn

Is there an existing issue for the same feature request?

  • I have checked the existing issues.

Is your feature request related to a problem?

No response

Describe the feature you'd like

Follow the syntax and behavior of mysql 8.0

TAN(X)

Returns the tangent of X, where X is given in radians.

mysql> SELECT TAN(PI());
-> -1.2246063538224e-16
mysql> SELECT TAN(PI()+1);
-> 1.5574077246549

The function should take different numeric kinds of input datatype as int, float, and return a float64.

Describe implementation you've considered

An easy implementation could be use the Golang math tan() function.

Documentation, Adoption, Use Case, Migration Strategy

Please refer to the tutorial about how to develop a builtin function.

Additional information

Activity

  1. bxiiiiii commented on Mar 25, 2022

    @bxiiiiii
    Contributor

    I could do this.

  2. dengn commented on Mar 25, 2022

    @dengn
    ContributorAuthor

    I could do this.

    Issue assigned. Good luck!

  3. dengn commented on Mar 30, 2022

    @dengn
    ContributorAuthor

    Feature Implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions