Vous êtes sur la page 1sur 2

Estudiante: Efren Ospino Sanjuanelo

Docente: Adriana Granados

Asignatura: Programacin Numrica

Grupo: CN7

Expresiones Aritmticas

Matemtica
56 x 34 x 2 x
9x2
23 x 5 89 x e 2 x 1
y
2
y

24x e 6 x
12e 67 x x 2 6 x 9
2

z 45xy 3 60 x y y12 x
w

Algoritmo

C++

y = (56*x3+34*x(sqrt(3)*x))/(9*x2)

y=(56*pow(x,3)+34*pow(x,sqrt(3)*x)+2*x)/9*pow(x,2)

y = (23*x5-sqrt(89*x)+e(2*x)-1)/2

y=(23*pow(x,5)-sqrt(89*x)+pow(e,2*x)-1)/2

y=
(sqrt(24*x)+e(6*x))/(12*e(67*x2)+x2+6*x+9)

y=(sqrt(24*x)+pow(e,6*x))/(12*pow(e,67*pow(x,2))+pow(x,2)+6*x+9)

y = 45*x*y3+60*x*sqrt(y)+y(12*x)(1/e(12*x*y))

z=45*x*pow(y,3)+60*x*sqrt(y)+pow(y,12*x)-(1/pow(12*x*y))

w = (123*x*y*z+77*x*z*y292*y*z*x3)/(esqrt(x*y*z)+1)

w=(123*x*y*z+77*x*z*pow(y,2)-92*y*z*pow(x,3))/(pow(e,sqrt(x*y*z))+1)

3x

1
12 xy

123 xyz 77 xzy 2 92 yzx 3


e

xyz

Expresiones Lgicas
Para a = 1; b = 6; c = 3; d = -2; e = -8; f = 0.

Matemtica

Algoritmo

C++

(b+c)<=(d-1)=F

(b+c)<=(d-1)==false

(b><c)Y(d<5)=V

(d!=c)&&(d<5)==true

(b><c)O(d<5)=V

(d!=c)||(d<5)==true

(a d ) (c f e (b d ) F

((a>d)Y(c=f))O(e>=(b-d))=F

((a>d)&&(c==f))||(e>=(b-d))==false

(a d ) (c f e (b d ) T

((a>d)O(c=f))O(e>=(b-d))=V

((a>d)||(c==f))||(e>=(b-d))==true

(b c) (d 1) F
(b c) (d 5) V
(b c) (d 5) V

Vous aimerez peut-être aussi