11.10.2015 Views

Divisores

LfDvOp

LfDvOp

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

sobrepasará la capacidad de cálculo de la herramienta que usemos,<br />

especialmente si es una hoja de cálculo. Lo intentamos para Excel:<br />

Public Function smar1(x)<br />

Dim n, f<br />

Dim seguir As Boolean<br />

If x < 3 Then smar1 = x: Exit Function ‘Para x=1,2 S(x)=x<br />

n = 1: f = 1 ‘Recorremos naturales desde 2 hasta x y f es su factorial<br />

seguir = True ‘variable para controlar el WHILE-WEND<br />

While n

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!