NÚMEROS REALES/1 ENTEROS
ENTEROS 1. 1. 1 Evalúa una expresión simple con números enteros
Evalúa la siguiente expresión #z donde #a1«math xmlns="http://www.w3.org/1998/Math/MathML"»«mo»=«/mo»«mi»#b1«/mi»«/math» y #a2«math xmlns="http://www.w3.org/1998/Math/MathML"»«mo»=«/mo»«mi»#b2«/mi»«/math»]]>
Solución:
Si piden evaluar #a1«math xmlns="http://www.w3.org/1998/Math/MathML"»«mo»=«/mo»«mi»#b1«/mi»«/math» y #a2«math xmlns="http://www.w3.org/1998/Math/MathML"»«mo»=«/mo»«mi»#b2«/mi»«/math» en #z, lo que tenemos que hacer es reemplazar en la letra correspondiente los valores señalados.
En este caso la evaluación nos queda:
«math xmlns="http://www.w3.org/1998/Math/MathML"»«mo»=«/mo»«mi»#c1«/mi»«mo»·«/mo»«mi»#d1«/mi»«mo»§nbsp;«/mo»«mi»#z2«/mi»«mo»§nbsp;«/mo»«mi»#e2«/mi»«mo»·«/mo»«mi»#d2«/mi»«mo»§nbsp;«/mo»«mi»#z3«/mi»«mo»§nbsp;«/mo»«mi»#e3«/mi»«/math»
Aplicando prioridad de operaciones obtenemos:
«math xmlns="http://www.w3.org/1998/Math/MathML"»«mo»=«/mo»«mi»#f1«/mi»«mo»§nbsp;«/mo»«mi»#z2«/mi»«mo»§nbsp;«/mo»«mi»#f2«/mi»«mo»§nbsp;«/mo»«mi»#z3«/mi»«mo»§nbsp;«/mo»«mi»#e3«/mi»«/math»
Sumando los dos primeros términos resulta:
«math xmlns="http://www.w3.org/1998/Math/MathML"»«mo»=«/mo»«mi»#f3«/mi»«mo»§nbsp;«/mo»«mi»#z3«/mi»«mo»§nbsp;«/mo»«mi»#e3«/mi»«/math»
]]>
1
1
0
0
0
#sol
¡Muy bien, sigue así! ]]>
#sol2
Revisa tu desarrollo para seguir avanzando. ¡Tú puedes! ]]>
«session lang=¨es¨ version=¨2.0¨»«library closed=¨false¨»«mtext style=¨color:#ffc800¨ xml:lang=¨es¨»variables«/mtext»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»b1«/mi»«mo»=«/mo»«mi»aleatorio«/mi»«mo»(«/mo»«mo»-«/mo»«mn»10«/mn»«mo»,«/mo»«mn»10«/mn»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»c1«/mi»«mo»=«/mo»«mi»aleatorio«/mi»«mo»(«/mo»«mn»1«/mn»«mo»,«/mo»«mn»10«/mn»«mo»)«/mo»«mo»*«/mo»«mi»aleatorio«/mi»«mo»{«/mo»«mo»-«/mo»«mn»1«/mn»«mo»,«/mo»«mn»1«/mn»«mo»}«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»c2«/mi»«mo»=«/mo»«mi»aleatorio«/mi»«mo»(«/mo»«mn»1«/mn»«mo»,«/mo»«mn»10«/mn»«mo»)«/mo»«mo»*«/mo»«mi»aleatorio«/mi»«mo»{«/mo»«mo»-«/mo»«mn»1«/mn»«mo»,«/mo»«mn»1«/mn»«mo»}«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»c3«/mi»«mo»=«/mo»«mi»aleatorio«/mi»«mo»(«/mo»«mn»1«/mn»«mo»,«/mo»«mn»10«/mn»«mo»)«/mo»«mo»*«/mo»«mi»aleatorio«/mi»«mo»{«/mo»«mo»-«/mo»«mn»1«/mn»«mo»,«/mo»«mn»1«/mn»«mo»}«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»c4«/mi»«mo»=«/mo»«mi»aleatorio«/mi»«mo»(«/mo»«mn»1«/mn»«mo»,«/mo»«mn»4«/mn»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»repeat«/csymbol»«mrow»«mi»b2«/mi»«mo»=«/mo»«mi»aleatorio«/mi»«mo»(«/mo»«mo»-«/mo»«mn»10«/mn»«mo»,«/mo»«mn»10«/mn»«mo»)«/mo»«/mrow»«mrow»«mi»b2«/mi»«mo»§ne;«/mo»«mi»b1«/mi»«/mrow»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»if«/csymbol»«mrow»«mi»b1«/mi»«mo»§lt;«/mo»«mn»0«/mn»«/mrow»«mrow»«mi»d1«/mi»«mo»=«/mo»«mfenced close=¨]¨ open=¨[¨»«mi»b1«/mi»«/mfenced»«/mrow»«mrow»«mi»d1«/mi»«mo»=«/mo»«mi»b1«/mi»«/mrow»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»if«/csymbol»«mrow»«mi»b2«/mi»«mo»§lt;«/mo»«mn»0«/mn»«/mrow»«mrow»«mi»d2«/mi»«mo»=«/mo»«mfenced close=¨]¨ open=¨[¨»«mi»b2«/mi»«/mfenced»«/mrow»«mrow»«mi»d2«/mi»«mo»=«/mo»«mi»b2«/mi»«/mrow»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»if«/csymbol»«mrow»«mi»c2«/mi»«mo»§lt;«/mo»«mn»0«/mn»«/mrow»«mrow»«mi»e2«/mi»«mo»=«/mo»«mfenced close=¨]¨ open=¨[¨»«mi»c2«/mi»«/mfenced»«/mrow»«mrow»«mi»e2«/mi»«mo»=«/mo»«mi»c2«/mi»«/mrow»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»if«/csymbol»«mrow»«mo»(«/mo»«mi»c4«/mi»«mo»=«/mo»«mn»1«/mn»«mo»§or;«/mo»«mi»c4«/mi»«mo»=«/mo»«mn»2«/mn»«mo»)«/mo»«/mrow»«mrow»«mi»e3«/mi»«mo»=«/mo»«mo»§quot;«/mo»«mo»§quot;«/mo»«/mrow»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»if«/csymbol»«mrow»«mi»c3«/mi»«mo»§lt;«/mo»«mn»0«/mn»«/mrow»«mrow»«mi»e3«/mi»«mo»=«/mo»«mfenced close=¨]¨ open=¨[¨»«mi»c3«/mi»«/mfenced»«/mrow»«mrow»«mi»e3«/mi»«mo»=«/mo»«mi»c3«/mi»«/mrow»«/apply»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»f1«/mi»«mo»=«/mo»«mi»c1«/mi»«mo»*«/mo»«mi»b1«/mi»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»if«/csymbol»«mrow»«mi»c2«/mi»«mo»*«/mo»«mi»b2«/mi»«mo»§lt;«/mo»«mn»0«/mn»«/mrow»«mrow»«mi»f2«/mi»«mo»=«/mo»«mo»[«/mo»«mi»c2«/mi»«mo»*«/mo»«mi»b2«/mi»«mo»]«/mo»«/mrow»«mrow»«mi»f2«/mi»«mo»=«/mo»«mi»c2«/mi»«mo»*«/mo»«mi»b2«/mi»«/mrow»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»if«/csymbol»«mrow»«mi»c4«/mi»«mo»=«/mo»«mn»1«/mn»«mo»§or;«/mo»«mi»c4«/mi»«mo»=«/mo»«mn»3«/mn»«/mrow»«mrow»«mi»f3«/mi»«mo»=«/mo»«mi»f1«/mi»«mo»+«/mo»«mi»c2«/mi»«mo»*«/mo»«mi»b2«/mi»«/mrow»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»if«/csymbol»«mrow»«mi»c4«/mi»«mo»=«/mo»«mn»2«/mn»«mo»§or;«/mo»«mi»c4«/mi»«mo»=«/mo»«mn»4«/mn»«/mrow»«mrow»«mi»f3«/mi»«mo»=«/mo»«mi»f1«/mi»«mo»-«/mo»«mi»c2«/mi»«mo»*«/mo»«mi»b2«/mi»«/mrow»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«apply»«csymbol definitionURL=¨http://www.wiris.com/XML/csymbol¨»if«/csymbol»«mrow»«mi»c4«/mi»«mo»=«/mo»«mn»1«/mn»«mo»§or;«/mo»«mi»c4«/mi»«mo»=«/mo»«mn»2«/mn»«/mrow»«mtable»«mtr»«mtd»«mi»f4«/mi»«mo»=«/mo»«mo»§quot;«/mo»«mo»§quot;«/mo»«/mtd»«/mtr»«mtr»«mtd»«mi»f5«/mi»«mo»=«/mo»«mo»§quot;«/mo»«mo»§quot;«/mo»«/mtd»«/mtr»«/mtable»«mtable»«mtr»«mtd»«mi»f4«/mi»«mo»=«/mo»«mi»sol«/mi»«/mtd»«/mtr»«mtr»«mtd»«mi»f5«/mi»«mo»=«/mo»«mo»§quot;«/mo»«mo»=«/mo»«mo»§quot;«/mo»«/mtd»«/mtr»«/mtable»«/apply»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»a1«/mi»«mo»=«/mo»«mi»aleatorio«/mi»«mo»{«/mo»«mi»a«/mi»«mo»,«/mo»«mi»m«/mi»«mo»,«/mo»«mi»p«/mi»«mo»,«/mo»«mi»u«/mi»«mo»,«/mo»«mi»r«/mi»«mo»}«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»a2«/mi»«mo»=«/mo»«mi»aleatorio«/mi»«mo»{«/mo»«mi»b«/mi»«mo»,«/mo»«mi»n«/mi»«mo»,«/mo»«mi»q«/mi»«mo»,«/mo»«mi»w«/mi»«mo»,«/mo»«mi»t«/mi»«mo»}«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»R1«/mi»«mo»=«/mo»«mo»{«/mo»«mn»1«/mn»«mo»§rarr;«/mo»«mi»c1«/mi»«mo»*«/mo»«mi»l«/mi»«mo»+«/mo»«mi»c2«/mi»«mo»*«/mo»«mi»j«/mi»«mo»,«/mo»«mn»2«/mn»«mo»§rarr;«/mo»«mi»c1«/mi»«mo»*«/mo»«mi»l«/mi»«mo»-«/mo»«mi»c2«/mi»«mo»*«/mo»«mi»j«/mi»«mo»,«/mo»«mn»3«/mn»«mo»§rarr;«/mo»«mi»c1«/mi»«mo»*«/mo»«mi»l«/mi»«mo»+«/mo»«mi»c2«/mi»«mo»*«/mo»«mi»j«/mi»«mo»+«/mo»«mi»c3«/mi»«mo»,«/mo»«mn»4«/mn»«mo»§rarr;«/mo»«mi»c1«/mi»«mo»*«/mo»«mi»l«/mi»«mo»-«/mo»«mi»c2«/mi»«mo»*«/mo»«mi»j«/mi»«mo»+«/mo»«mi»c3«/mi»«mo»}«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»R2«/mi»«mo»=«/mo»«mo»{«/mo»«mn»1«/mn»«mo»§rarr;«/mo»«mo»§quot;«/mo»«mo»+«/mo»«mo»§quot;«/mo»«mo»,«/mo»«mn»2«/mn»«mo»§rarr;«/mo»«mo»§quot;«/mo»«mo»-«/mo»«mo»§quot;«/mo»«mo»,«/mo»«mn»3«/mn»«mo»§rarr;«/mo»«mo»§quot;«/mo»«mo»+«/mo»«mo»§quot;«/mo»«mo»,«/mo»«mn»4«/mn»«mo»§rarr;«/mo»«mo»§quot;«/mo»«mo»-«/mo»«mo»§quot;«/mo»«mo»}«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»R3«/mi»«mo»=«/mo»«mo»{«/mo»«mn»1«/mn»«mo»§rarr;«/mo»«mo»§quot;«/mo»«mo»§quot;«/mo»«mo»,«/mo»«mn»2«/mn»«mo»§rarr;«/mo»«mo»§quot;«/mo»«mo»§quot;«/mo»«mo»,«/mo»«mn»3«/mn»«mo»§rarr;«/mo»«mo»§quot;«/mo»«mo»+«/mo»«mo»§quot;«/mo»«mo»,«/mo»«mn»4«/mn»«mo»§rarr;«/mo»«mo»§quot;«/mo»«mo»+«/mo»«mo»§quot;«/mo»«mo»}«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»z1«/mi»«mo»=«/mo»«mi»R1«/mi»«mo»(«/mo»«mi»c4«/mi»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»z2«/mi»«mo»=«/mo»«mi»R2«/mi»«mo»(«/mo»«mi»c4«/mi»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»z3«/mi»«mo»=«/mo»«mi»R3«/mi»«mo»(«/mo»«mi»c4«/mi»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»z«/mi»«mo»=«/mo»«mi»evaluar«/mi»«mo»(«/mo»«mi»z1«/mi»«mo»,«/mo»«mo»{«/mo»«mi»l«/mi»«mo»§rarr;«/mo»«mi»a1«/mi»«mo»,«/mo»«mi»j«/mi»«mo»§rarr;«/mo»«mi»a2«/mi»«mo»}«/mo»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«mo»=«/mo»«mi»evaluar«/mi»«mo»(«/mo»«mi»z«/mi»«mo»,«/mo»«mo»{«/mo»«mi»a1«/mi»«mo»§rarr;«/mo»«mi»b1«/mi»«mo»,«/mo»«mi»a2«/mi»«mo»§rarr;«/mo»«mi»b2«/mi»«mo»}«/mo»«mo»)«/mo»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol2«/mi»«mo»=«/mo»«mi»sol«/mi»«mo»+«/mo»«mn»1«/mn»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»test2«/mi»«mo»(«/mo»«mi»x«/mi»«mo»)«/mo»«mo»:«/mo»«mo»=«/mo»«mo»(«/mo»«mi»x«/mi»«mo»§ne;«/mo»«mi»sol«/mi»«mo»)«/mo»«mo»?«/mo»«/math»«/input»«/command»«/group»«/library»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»a«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»a«/mi»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»b«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»b«/mi»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»a1«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»r«/mi»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»a2«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»w«/mi»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»z1«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»2«/mn»«mo»*«/mo»«mi»j«/mi»«mo»-«/mo»«mn»7«/mn»«mo»*«/mo»«mi»l«/mi»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»z«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mo»-«/mo»«mn»7«/mn»«mo»*«/mo»«mi»r«/mi»«mo»+«/mo»«mn»2«/mn»«mo»*«/mo»«mi»w«/mi»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»sol«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»76«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»e3«/mi»«/math»«/input»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»c4«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»1«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»f1«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»56«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»f2«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»20«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»f3«/mi»«/math»«/input»«output»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mn»76«/mn»«/math»«/output»«/command»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mi»f4«/mi»«/math»«/input»«/command»«/group»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«/group»«group»«command»«input»«math xmlns=¨http://www.w3.org/1998/Math/MathML¨/»«/input»«/command»«/group»«/session»testFunctionName%5B1%5D=test2&testFunction%5B658%5D=1