Advertisement
eduardoperezl

Respuesta Usando un Script

Sep 7th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.71 KB | None | 0 0
  1. <problem>
  2. <!-- Las siguientes lineas usan espaciado de script Python. Asegurarse de que no está indentado cuando se agregue al componente problema. -->
  3. <script type="loncapa/python">
  4. computed_response = math.sqrt(math.fsum([math.pow(math.pi,2), math.pow(math.e,2)]))
  5. </script>
  6.  
  7.   <legend>TEXTO DEL PROBLEMA</legend>
  8.   <numericalresponse answer="$computed_response">
  9.     <responseparam type="tolerance" default="0.0001" />
  10.     <formulaequationinput label="TEXTO DEL PROBLEMA"/>
  11.     <correcthint>
  12.       Retroalimentación para la respuesta correcta.
  13.     </correcthint>
  14.   </numericalresponse>
  15.   <solution>
  16.     <div class="detailed-solution">
  17.       <p>TEXTO DE SOLUCIÓN</p>
  18.     </div>
  19.   </solution>
  20. </problem>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement