@problem@
	@problemtype@
		embedded
	@;problemtype@
	@name@
		tutorial_6_numerical_values_continued
	@endname@
	@preamble@
		y = randint(2,9)
		z = randfloat(10,20,1)
	@;preamble@
	@content@
		The 'numericalans' function provides a number of different options to modify the presentation as well as the grading of the answer. For example, the required precision (4 decimal places by default) can be specified using the named argument "tolerance=t" for some value 't'. For example, if the answer to the following question does not differ from the correct answer by more than 0.01, the student will receive the full amount of points.
		@lb;@
		If 3x+1 = @y@, then @numericalans(100,(y-1)/3,tolerance=0.01)@.
		@pb;@
		By default, a student will receive either full points or no points at all for an answer. In some cases, however, a specific alternative answer might be considered worth at least some of the points given out for a correct answer. In such cases, both the points and the answer must be replaced by corresponding lists. For example, in the following question, 100 points are awarded for the correct answer "2", whereas 5 points are given if the answer if "-2". In all other cases, the student will not receive any points.
		@lb;@
		The square root of 4 is @numericalans([100,5],[2,-2])@.
		@pb;@
		For multiple questions, the formatting of the problem content can often be improved by using ordered or unordered lists, as shown in the following examples.
		@lb;@
		@enumerate@
			@item@
				Let y = @y@. Then
				@itemize@
					@item@ 2@y@ = @numericalans(100,2*y)@,@;item@
					@item@ -3@y@ = @numericalans(100,-3*y)@.@;item@
				@;itemize@
			@;item@
			@item@
				Let y = @y@ and z = @num(z,keepFloat=True)@. Then
				@itemize@
					@item@ 2@y@+@num(z,keepFloat=True)@ = @numericalans(100,2*y+z)@,@;item@
					@item@ -3(@y@+@num(z,keepFloat=True)@) = @numericalans(100,-3*(y+z))@.@;item@
				@;itemize@
			@;item@
		@;enumerate@
		This syntax for lists is, of course, based on the "enumerate" and "itemize" environments as used in LaTeX, but will be converted into an appropriate html representation for use in moodle quizzes.
	@;content@
@;problem@