Your Moodle version

Question types: Variable numeric set

qtype_varnumericset
Maintained by Tim at Lone Pine Koala Sanctuary Tim Hunt, Picture of Jamie Pratt Jamie Pratt, Picture of Phil Butcher Phil Butcher
A calculated numeric question type with variable and expression evaluation. All values are precalculated although a question can have several variants with different variable values for each variant.

Sets

This plugin is part of set Open University.

There are working examples in eAssessment with Moodle on our OpenLearn site.

The documentation is in How to create questions in Moodle on that site.

Contributors

Tim at Lone Pine Koala Sanctuary
Tim Hunt (Lead maintainer)
Picture of Jamie Pratt
Jamie Pratt: Developer
Picture of Phil Butcher
Phil Butcher: Question type designer
Picture of Colin Chambers
Colin Chambers: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Jong-Dae Park
    Mon, Jun 16, 2014, 5:07 PM
    Hello,

    I want to make a question with answer 20*log10(a) where a is a variable.

    I cannot save the question with that answer but I can save the equation with answer 20*log(a). The validator for the answer field seems not to recognize log10 function.

    Thanks.

    JD Park
  • Tim at Lone Pine Koala Sanctuary
    Tue, Jun 17, 2014, 12:23 AM
    The documenation is here: http://www.open.edu/openlearnworks/mod/oucontent/view.php?id=52747&section=2.1.2 The list of supported functions is given just after figure 2.9. There is no log10 function. Both log and ln are natural logarithm. You will have to use the equivalence

    log10(x) = log(x)/log(10)

    varnumeric uses the same calculator library as the gradebook. In principle it might be possible to add a log10 function, or just a log(x, base) function of two arguemnts, but this would be a core change so you would need to open a feature request at https://tracker.moodle.org/ if there is not on there already.
Please login to post comments