-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a51e5db
commit 278ac7a
Showing
1 changed file
with
2 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,2 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="style.css"> | ||
<title>Calcular Velocidad Lineal</title> | ||
</head> | ||
|
||
<body> | ||
<div class="menu"> | ||
<a href="/calculadora_mate/grados/"><span>Grados Decimales->GMS</span></a><br><br> | ||
<a href="/calculadora_mate/gms/"><span>GMS->Grados Decimales</span></a><br><br> | ||
<a href="/calculadora_mate/grds-rad/"><span>Grados->Radianes</span></a><br><br> | ||
<a href="/calculadora_mate/rad-grds/"><span>Radianes->Grados</span></a><br><br> | ||
<a href="/calculadora_mate/arco/"><span>Calcular longitud de arco</span></a><br><br> | ||
<a href="/calculadora_mate/area/"><span>Calcular Área del sector circular</span></a><br><br> | ||
<a href="/calculadora_mate/vangular/"><span>Calcular Velocidad Angular</span></a><br><br> | ||
<a href="/calculadora_mate/vlineal/"><span>Calcular Velocidad Lineal</span></a><br><br> | ||
</div> | ||
<div class="pagina"> | ||
<div class="wrapper"> | ||
|
||
<form action="" method="post"> | ||
<center> | ||
<ul> | ||
<li> | ||
<h1>Ingrese El Radio:</h1> | ||
</li> | ||
<li> | ||
<input type="number" class="input" name="radio" min="0"> | ||
<select name="unidadRadio" class="select"> | ||
<option>Centimetros</option> | ||
<option>Metros</option> | ||
<option>Kilometros</option> | ||
</select> | ||
</li> | ||
</ul> | ||
<ul> | ||
<li> | ||
<h1>Ingrese El Ángulo:</h1> | ||
</li> | ||
<li> | ||
<input type="number" class="input" name="angulo" min="0" step="0.00001"> | ||
<select name="unidadAngulo" class="select"> | ||
<option>Grados</option> | ||
<option>Radianes</option> | ||
</select> | ||
</li> | ||
</ul> | ||
<ul> | ||
<li> | ||
<h1>Ingrese El Tiempo:</h1> | ||
</li> | ||
<li> | ||
<input type="number" class="input" name="tiempo" min="0"> | ||
<select name="unidadTiempo" class="select"> | ||
<option>Segundos</option> | ||
<option>Minutos</option> | ||
<option>Horas</option> | ||
</select> | ||
</li> | ||
</ul> | ||
<input type="submit" value="Calcular" class="submit" name="submit"> | ||
|
||
</center> | ||
</form> | ||
<center> | ||
<br> | ||
<h1> | ||
<?php | ||
if (!empty($_POST['tiempo']) && !empty($_POST['angulo'])) { | ||
$unidadRadio = $_POST['unidadRadio']; | ||
$radio = $_POST['radio']; | ||
$unidad = $_POST['unidadTiempo']; | ||
$tiempo = $_POST['tiempo']; | ||
$unidadGrado = $_POST['unidadAngulo']; | ||
$grados = $_POST['angulo']; | ||
if ($unidadGrado == "Grados") { | ||
$grados = ($grados * M_PI) / 180; | ||
} | ||
$velocidadA = $grados / $tiempo; | ||
$velocidadL = $velocidadA * $radio; | ||
echo "La velocidad angular es: $velocidadA rad/$unidad <br>"; | ||
echo "La velocidad lineal es: $velocidadL $unidadRadio/$unidad"; | ||
} | ||
?> | ||
</h1> | ||
</center> | ||
</div> | ||
</div> | ||
</body> | ||
|
||
</html> | ||
# juanjoystefa.github.io | ||
Calculadora acerca de Angulos |