2
INSTRUCCION CONDICIONAL You created this PDF from an application that is not licensed to print to novaPDF y f (x) 0 if x 2 2 4 x x 2 otherwise f 2 3 2 2 3 3 CICLO FOR su (x) m x for i 1 5 m m i m su (4) 19 su (e) e 15 sum(x) s 0 for i 1 x s s i s sum(4) 10 sum(5) 15 CICLO WHILE s(x) y x while y 100 y 3 y 5 s(4) 2.621 10

Mathcad programacionaaa

Embed Size (px)

Citation preview

Page 1: Mathcad   programacionaaa

INSTRUCCION CONDICIONAL

You created this PDF from an application that is not licensed to print to novaPDF printer

y

f (x) 0 if x 22

4 x

x 2

otherwise

f 2 3

223

3

CICLO FOR

su (x) m x

for i 15

m m

i m

su (4) 19su (e) e 15

sum(x) s 0

for i 1x

s s

i s

sum(4) 10

sum(5) 15

CICLO WHILE

s(x) y x

while y 100

y 3

y

5s(4) 2.621 10

Page 2: Mathcad   programacionaaa

INSTRUCCIÓN

You created this PDF from an application that is not licensed to print to novaPDF printer

fg(x) y x

while y 100

break if3

x 1

y y

y

fg(2) 512

INSTRUCCIÓN CONTINUE

dcon sum 0

for i 1 6

for j 1

5

continue

if j 3

for k 1 4

sum

sum sum 1

dcon 48

INSTRUCCIÓN RETURN

freturn

freturn 4

x 3

y 4

return y

z 7