Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/02/2005, 13:51
ote
 
Fecha de Ingreso: febrero-2005
Mensajes: 2
Antigüedad: 19 años, 3 meses
Puntos: 0
(a/b)^c=(b/a)^-c

substituye esta línea:
Cita:
Iniciado por pacmann
var pot=Math.pow(parseFloat(c)/12, -parseFloat(d));
por esta otra:

var pot=Math.pow(12/parseFloat(c), parseFloat(d));
matemáticamente es lo mismo y talvezjavascript no admita potencias negativas