Skip to content

Implementation of Al-Kashi's theorem #6

Description

@Kero76

🚀 Feature request

Revelant Package

This request feature is for Mathematics.

Description

Implementation of Al-Kashi's theorem also named Law of Cosinus.
This theorem is a generalization of the Pythagorean theorem for all sort of triangle.

As you can see on the following image, the formula is really easy to implements :
al_kashi_theorem

You can get more information about this algorithm on Wikipedia.

Describe the solution you'd like

Here the signature of the method:
alKashiTheorem(side1: number, side2: number, angle: number): number

This method take 3 parameters as input :

  • side1 : Size of the first side of the triangle ABC.
  • side2 : Size of the second side of the triangle ABC.
  • angle : An angle value opposite to the computed side.

This method return the side of the third size of the triangle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions