Skip to content

Math.tan() method bugged #6

@NishkarshRaj

Description

@NishkarshRaj

https://github.com/NishkarshRaj/JavaScript/blob/master/JavaScript%20Basic%20Programs/27_Math/Tan.html

JavaScript Math.tan() method is not giving required results.
In above linked code, tan(90 Deg) = sin(90)/cos(90) = 1/0 == Infinity
But I am getting a value as attached in the Image.

How can we override the method definition to get correct result.
Screenshot (31)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requesthelp wantedExtra attention is neededinvalidThis doesn't seem rightquestionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions