br.org.agilcoop.cursos.testes.unidade
Class MathHelper

java.lang.Object
  extended by br.org.agilcoop.cursos.testes.unidade.MathHelper

public class MathHelper
extends java.lang.Object


Constructor Summary
MathHelper()
           
 
Method Summary
static long mdc(long a, long b)
           
static long mdcAlgoritmoEuclides(long a, long b)
           
static long mdcAlgoritmoSuperLento(long a, long b)
           
static long potenciaModulo(long num, long exp, long n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathHelper

public MathHelper()
Method Detail

mdcAlgoritmoSuperLento

public static long mdcAlgoritmoSuperLento(long a,
                                          long b)

mdcAlgoritmoEuclides

public static long mdcAlgoritmoEuclides(long a,
                                        long b)

mdc

public static long mdc(long a,
                       long b)

potenciaModulo

public static long potenciaModulo(long num,
                                  long exp,
                                  long n)


Copyright © 2009. All Rights Reserved.