Skip to content

Commit

Permalink
Adição de funções
Browse files Browse the repository at this point in the history
  • Loading branch information
PvtWendy committed Mar 28, 2024
1 parent 2b0747e commit c949354
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions fontes/bibliotecas/matematica.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,16 @@ export async function cosseno(angulo: number) {

export async function tangente(angulo: number) {
return Promise.resolve(Math.tan(angulo));
}

export async function valor_absoluto(numero: number){
return Promise.resolve(Math.abs(numero));
}

export async function maior_numero(numeroA: number, numeroB: number){
return Promise.resolve(Math.max(numeroA, numeroB));
}

export async function menor_numero(numeroA: number, numeroB: number){
return Promise.resolve(Math.min(numeroA, numeroB));
}

0 comments on commit c949354

Please sign in to comment.