<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Moodle%3A_Math_Function_untuk_Calculated_Questions</id>
	<title>Moodle: Math Function untuk Calculated Questions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Moodle%3A_Math_Function_untuk_Calculated_Questions"/>
	<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Moodle:_Math_Function_untuk_Calculated_Questions&amp;action=history"/>
	<updated>2026-04-15T15:58:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=Moodle:_Math_Function_untuk_Calculated_Questions&amp;diff=60139&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot;The calculated question type could benefit of the EvalMath module to increase the math functions useable in the Calculated, Simple calculated et Multiple choice calculated que...&quot;</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Moodle:_Math_Function_untuk_Calculated_Questions&amp;diff=60139&amp;oldid=prev"/>
		<updated>2020-03-01T08:00:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The calculated question type could benefit of the EvalMath module to increase the math functions useable in the Calculated, Simple calculated et Multiple choice calculated que...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The calculated question type could benefit of the EvalMath module to increase the math functions useable in the Calculated, Simple calculated et Multiple choice calculated question types.&lt;br /&gt;
==Available functions==&lt;br /&gt;
&lt;br /&gt;
Calculated questions can use more than simple arithmetic operators. &lt;br /&gt;
The following functions are allowed in versions 1.5 and newer.&lt;br /&gt;
In 2,9 we should continue to support the previous functions unless they can be unsafe.&lt;br /&gt;
All functions will use either the EvalMath code or a more specific CalculatedEvalMath code.&lt;br /&gt;
In the following table &lt;br /&gt;
to be improved as ... there is some ambiguity on  columns names (&lt;br /&gt;
  # means that the function exists. &lt;br /&gt;
  new means that the function needs to be created in EvalMath or only in  CalculatedEvalMath. (... to be explained more clearly )&lt;br /&gt;
   OK  will be used in test column to confirm that this property has been coded and testing code have been added in  2.9&lt;br /&gt;
   NO i.e. no more supported in 2,9&lt;br /&gt;
{| width=&amp;quot;97%&amp;quot; border=&amp;quot;1px&amp;quot;&lt;br /&gt;
!Function&lt;br /&gt;
!1,5+&lt;br /&gt;
!Math&lt;br /&gt;
lib&lt;br /&gt;
!Eval&lt;br /&gt;
Math&lt;br /&gt;
!Calc&lt;br /&gt;
!coded&lt;br /&gt;
!tested&lt;br /&gt;
!Explanation&lt;br /&gt;
|-&lt;br /&gt;
|abs&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Absolute value&lt;br /&gt;
|-&lt;br /&gt;
|acos&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Arc cosine -- output in radians.&lt;br /&gt;
|-&lt;br /&gt;
|acosh&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Inverse hyperbolic cosine -- output in radians.&lt;br /&gt;
|-&lt;br /&gt;
|asin&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Arc sine -- output in radians.&lt;br /&gt;
|-&lt;br /&gt;
|asinh&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Inverse hyperbolic sine.-- output in radians.&lt;br /&gt;
|-&lt;br /&gt;
|atan2&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Arc tangent of two variables -- pass in two values like (y, x), and you'll get the atan(y/x), adjusted to the proper quadrant. (Note: The variables are in the reverse order to atan2(x,y) in Excel) Output is radians.&lt;br /&gt;
|-&lt;br /&gt;
|atan&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Arc tangent -- output in radians.   &lt;br /&gt;
|-&lt;br /&gt;
|atanh&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Inverse hyperbolic tangent-- output in radians.&lt;br /&gt;
|-&lt;br /&gt;
|bindec&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Binary to decimal&lt;br /&gt;
|-&lt;br /&gt;
|ceil&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Round fractions up&lt;br /&gt;
|-&lt;br /&gt;
|cos&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Cosine -- in radians!!!  Convert your degree measurement to radians before you take the cos of it.&lt;br /&gt;
|-&lt;br /&gt;
|cosh&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Hyperbolic cosine -- in radians!!!  Convert your degree measurement to radians before you take the cosh of it.&lt;br /&gt;
|-&lt;br /&gt;
|decbin&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Decimal to binary&lt;br /&gt;
|-&lt;br /&gt;
|decoct&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|new&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Decimal to octal&lt;br /&gt;
|-&lt;br /&gt;
|deg2rad&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|new&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Converts the number in degrees to the radian equivalent&lt;br /&gt;
|-&lt;br /&gt;
|exp&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Calculates the exponent of e&lt;br /&gt;
|-&lt;br /&gt;
|expm1&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|new&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Returns exp(number) - 1, computed in a way that is accurate even when the value of number is close to zero&lt;br /&gt;
|-&lt;br /&gt;
|floor&lt;br /&gt;
|&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Round fractions down&lt;br /&gt;
|-&lt;br /&gt;
|fmod&lt;br /&gt;
| #&lt;br /&gt;
|new&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Returns the floating-point modulus of two numbers - i.e. the remainder when the first is divided by the second.&lt;br /&gt;
|-&lt;br /&gt;
|is_finite&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|new&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Finds whether a value is a legal finite number&lt;br /&gt;
|-&lt;br /&gt;
|is_infinite&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|??&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Finds whether a value is infinite&lt;br /&gt;
|-&lt;br /&gt;
|is_nan&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|??&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Finds whether a value is not a number&lt;br /&gt;
|-&lt;br /&gt;
|log10&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|new&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Base-10 logarithm&lt;br /&gt;
|-&lt;br /&gt;
|log1p&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|new&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Returns log(1 + number), computed in a way that is accurate even when the value of number is close to zero&lt;br /&gt;
|-&lt;br /&gt;
|log&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Natural logarithm (''ln'')&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|max&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Find highest value&lt;br /&gt;
|-&lt;br /&gt;
|min&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Find lowest value&lt;br /&gt;
|-&lt;br /&gt;
|octdec&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|new&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Octal to decimal&lt;br /&gt;
|-&lt;br /&gt;
|pi()&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Get value of pi - the function does not take an argument, like in Excel.&lt;br /&gt;
|-&lt;br /&gt;
|pow (numberToRaise, NumberRaisedTo)&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|new &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|power (numberToRaise, NumberRaisedTo)&lt;br /&gt;
|&lt;br /&gt;
| # &lt;br /&gt;
|new&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Exponential expression&lt;br /&gt;
|-&lt;br /&gt;
|rad2deg&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Converts the radian number to the equivalent number in degrees&lt;br /&gt;
|-&lt;br /&gt;
|rand&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|new&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Generate a random integer&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|rand_int&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Generate a random integer&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|rand_float&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Generate a random float&lt;br /&gt;
|-&lt;br /&gt;
|round&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Rounds a float&lt;br /&gt;
|-&lt;br /&gt;
|sin&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Sine -- in radians!!!  Convert your degree measurement to radians before you take the sin of it.&lt;br /&gt;
|-&lt;br /&gt;
|sinh&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Hyperbolic sine -- in radians!!!  Convert your degree measurement to radians before you take the sinh of it.&lt;br /&gt;
|-&lt;br /&gt;
|sqrt&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Square root&lt;br /&gt;
|-&lt;br /&gt;
|tan&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Tangent -- in radians!!!  Convert your degree measurement to radians before you take the tan of it.&lt;br /&gt;
|-&lt;br /&gt;
|tanh&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
| #&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Hyperbolic tangent -- in radians!!!  Convert your degree measurement to radians before you take the tanh of it.&lt;br /&gt;
|}&lt;br /&gt;
to be completed --[[User:Pierre Pichet|Pierre Pichet]] ([[User talk:Pierre Pichet|talk]]) 12:12, 12 December 2014 (AWST)&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>